Page 1 of 1

ping a remote host from a remote server from Nagios

Posted: Thu Jun 02, 2011 1:00 pm
by alexlacraru
for whoever is interested, I had to do this to check the status of a vpn tunnel that my Nagios can't reach:
1. install nsclient on the remote server (make sure nrpe is enabled in the install options screen), set it up in nagiosxi
2. adjust nrpe section in nsc:

port=5666
allow_arguments=1
allow_nasty_meta_chars=1

net stop/start nsclientpp

3. create a service in nagios xi front end:
- check command - select check_nrpe
- in $arg1$ type:

CheckWMIValue -a MinCrit=0.1 MaxCrit=120 MaxWarn=80 MinWarn=1 'Query=select ResponseTime from Win32_PingStatus where Address="192.168.1.1"' Check:ResponseTime=ResponseTime

- add a name, description and display name, select active, select the remote host on which you want to run the remote host check
- in the check settings tab add all the mandatory fields, enable process perf data
- setup your allerts settings

Re: ping a remote host from a remote server from Nagios

Posted: Thu Jun 02, 2011 3:06 pm
by mguthrie
Thanks for the tip! :)