ping a remote host from a remote server from Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
alexlacraru
Posts: 13
Joined: Wed Mar 30, 2011 8:12 am

ping a remote host from a remote server from Nagios

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post by mguthrie »

Thanks for the tip! :)
Locked