Compare commits

...

2 Commits

Author SHA1 Message Date
Kameron Kenny aa2df6307b nrpe sudo 2024-12-30 15:56:55 -05:00
Kameron Kenny 74d63fc861 nrpe will need sudo. 2024-12-30 15:55:22 -05:00
4 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,7 @@ services:
build: build:
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: nagios 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: networks:
infra_dev_net: infra_dev_net:
ipv4_address: 10.99.23.36 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_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]=/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_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_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 command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 1 -c 10 -s Z

View File

@ -0,0 +1 @@
nagios ALL=(ALL) NOPASSWD: ALL

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 [[ ! -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 -v etc/nagios/nrpe.cfg /etc/nagios/
cp -rv etc/nagios/nrpe.d/* /etc/nagios/nrpe.d/ cp -rv etc/nagios/nrpe.d/* /etc/nagios/nrpe.d/
cp -rv usr/lib/nagios/plugins/* /usr/lib/nagios/plugins/ cp -rv usr/lib/nagios/plugins/* /usr/lib/nagios/plugins/