nrpe sudo

This commit is contained in:
Kameron Kenny 2024-12-30 15:56:55 -05:00
parent 74d63fc861
commit aa2df6307b
3 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ services:
build:
dockerfile: Dockerfile
container_name: nagios
image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:241230.0.8
image: docker-registry1.in.thelinuxpro.net:5000/tlp/nagios:241230.0.9
networks:
infra_dev_net:
ipv4_address: 10.99.23.36

View File

@ -33,7 +33,7 @@
command[check_proc_docker]=/usr/lib/nagios/plugins/check_procs -c 1:1 -C dockerd
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /
command[check_disk_docker]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/docker/volumes
command[check_disk_docker]=sudo /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /var/lib/docker/volumes
command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
command[check_procs]=/usr/lib/nagios/plugins/check_procs -w 275 -c 350
command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 1 -c 10 -s Z

View File

@ -10,6 +10,7 @@ apt install -y nagios-nrpe-server monitoring-plugins-basic monitoring-plugins-co
[[ ! -d "/etc/nagios/nrpe.d" ]] && mkdir -p /etc/nagios/nrpe.d
cp -v etc/sudoers.d/* /etc/sudoers.d/
cp -v etc/nagios/nrpe.cfg /etc/nagios/
cp -rv etc/nagios/nrpe.d/* /etc/nagios/nrpe.d/
cp -rv usr/lib/nagios/plugins/* /usr/lib/nagios/plugins/