Page 2 of 2
Re: NRDS Config Manger - Non-x86 devices
Posted: Tue Oct 20, 2015 1:55 pm
by derekb
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:
Code: Select all
[check_ipcam]=/path/to/your/check_ping -H $ARG1$
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_nrpe -H <remote monitoring host> -c check_ipcam -a '$HOSTADDRESS$'
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.
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.
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?
Re: NRDS Config Manger - Non-x86 devices
Posted: Wed Oct 21, 2015 10:02 am
by lmiltchev
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
Can you show us the command definitions for both, the host and the service check? What is the path to the plugins directory that is defined under the "Additional Settings" ("Edit NRDS Config" page)?
Re: NRDS Config Manger - Non-x86 devices
Posted: Wed Oct 21, 2015 7:33 pm
by Box293
derekb wrote:I'm just asking that when we select "Linux", that there be an option that changes the default path that is specified in that 'commands' section so I don't have to change it every time.
I think this is a great feature request. Being able to define the Operating System list and the template.
Re: NRDS Config Manger - Non-x86 devices
Posted: Wed Oct 21, 2015 7:39 pm
by derekb
Box293 wrote:derekb wrote:I'm just asking that when we select "Linux", that there be an option that changes the default path that is specified in that 'commands' section so I don't have to change it every time.
I think this is a great feature request. Being able to define the Operating System list and the template.
Thanks! I hoping someone notices and passes it on to development...
Re: NRDS Config Manger - Non-x86 devices
Posted: Thu Oct 22, 2015 9:22 am
by lmiltchev
Thanks! I hoping someone notices and passes it on to development...
I filed an internal feature request (TASK ID 6706) for adding this functionality. Thank you!
Re: NRDS Config Manger - Non-x86 devices
Posted: Thu Oct 22, 2015 9:25 am
by derekb
Awesome!
Also, I fixed my other issue -- I had an active check set on the host
All good now! Thanks guys!
Re: NRDS Config Manger - Non-x86 devices
Posted: Thu Oct 22, 2015 11:21 am
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!