We were originally doing everything Active with NRPE, but alot of these clients have crappy DSL links that constantly drop out, so I went passive.jdalrymple wrote:You could potentially modify PHP in the component to achieve what you want. I could think of a far better way to handle this if your solution doesn't need to be passive.
Create an nrpe.cfg for all of your remote monitoring hosts with a command something like:
then create a service to apply to all of your cameras (defined as new hosts) using a command that expands like:Code: Select all
[check_ipcam]=/path/to/your/check_ping -H $ARG1$
To make it a step slicker remote monitoring host could be a host custom object. This would be more flexible for future additional checks in case you wanted to monitor some other metrics that the IP Cams had to offer.Code: Select all
check_nrpe -H <remote monitoring host> -c check_ipcam -a '$HOSTADDRESS$'
I have one last question:
I added a new host with a few services using the NRDP config manager. The SERVICE that is set to ping a few devices works great, no issue. But the host itself keeps showing CRITICAL DOWN with /bin/ping6 -n -U -w 10 -c 1 localhost
If I run the cronjob manually:
Code: Select all
root@raspberrypi:/var/log# /usr/local/nrdp/clients/nrds/nrds.pl -H 'EmpireTestPi' 2>&1
ERROR: STDIN must be either 3 or 4 fields long, I found 1
Sent 2 checks to http://nagios.empiresip.com/nrdp/
[code]
Then the Host shows OK: No data received yet. for 5-10 sec, then goes to Critical with /bin/ping6 -n -U -w 10 -c 1 localhost
How the heck do I get the host to show up?