Nagios, nrdp, pihole
Posted: Sun Apr 12, 2020 7:23 am
Hi,
I've been searching all around but I wasn't able to find a proper answer. I have a proper Nagios setup monitoring my network (internal and external) but now I want to monitor the available disk space in my pi-hole.
As the pi-hole is a raspberry pi 1b+, it and has very limited resources. I though about using nrdp with passive monitoring in Nagios but I'm struggling.
I've configured Nagios as nrdp_server and configured check_dummy. It works.
my command configuration in Nagios machine is as follows:
and the service is:
but if I try to evoke it from the pi-hole using:
I get this error
Can you help me? what configuration should I use to be able to report if the disk usage is over 80% as warning and over 90% as critical?
thanks in advance.
I've been searching all around but I wasn't able to find a proper answer. I have a proper Nagios setup monitoring my network (internal and external) but now I want to monitor the available disk space in my pi-hole.
As the pi-hole is a raspberry pi 1b+, it and has very limited resources. I though about using nrdp with passive monitoring in Nagios but I'm struggling.
I've configured Nagios as nrdp_server and configured check_dummy. It works.
my command configuration in Nagios machine is as follows:
Code: Select all
define command {
command_name check_dummy
command_line $USER1$/check_dummy $ARG1$ $ARG2$
}Code: Select all
define service {
use generic-service ; Name of service template to use
host_name pi-hole
service_description Disk Usage
check_command check_dummy
}Code: Select all
php send_nrdp.php --url=http://xxxxx/nrdp/ --token=xxxx --host=pi-hole --service=check_dummy --state=2 --output="everything is nok".check_dummy: Could not parse arguments
Can you help me? what configuration should I use to be able to report if the disk usage is over 80% as warning and over 90% as critical?
thanks in advance.