Add bash configuration files for NRPE
This commit is contained in:
parent
09aa4defe6
commit
10d065871a
23
conf/etc/nagios/nrpe.d/check_nrpe.conf
Normal file
23
conf/etc/nagios/nrpe.d/check_nrpe.conf
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
################################################################################
|
||||||
|
# BSD 3-Clause License
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019, Alban Vidal <alban.vidal@zordhak.fr>
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Please see license file on root of this directory
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# !! GIT FILE !!
|
||||||
|
# https://framagit.org/zorval/scripts/check-nrpe
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# without sudo
|
||||||
|
|
||||||
|
command[check_available_conntrack] = /usr/local/bin/check_available_conntrack
|
||||||
|
|
||||||
|
# with sudo
|
||||||
|
|
||||||
|
command[check_reboot] = sudo /usr/sbin/needrestart -p -k
|
||||||
|
command[check_restart] = sudo /usr/sbin/needrestart -p -l
|
||||||
|
|
19
conf/etc/sudoers.d/50-check_nrpe
Normal file
19
conf/etc/sudoers.d/50-check_nrpe
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
################################################################################
|
||||||
|
# BSD 3-Clause License
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019, Alban Vidal <alban.vidal@zordhak.fr>
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Please see license file on root of this directory
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# !! GIT FILE !!
|
||||||
|
# https://framagit.org/zorval/scripts/check-nrpe
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# sudo rules for nagios (NRPE)
|
||||||
|
|
||||||
|
nagios ALL=(root:adm) NOPASSWD: \
|
||||||
|
/usr/sbin/needrestart, \
|
||||||
|
/usr/local/sbin/check_*
|
Loading…
Reference in New Issue
Block a user