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
ping a remote host from a remote server from Nagios
-
alexlacraru
- Posts: 13
- Joined: Wed Mar 30, 2011 8:12 am
Re: ping a remote host from a remote server from Nagios
Thanks for the tip! 