Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
Monitor a tunnel to a remote location on a Windows server.
Current Version
Last Release Date
June 15, 2009
Owner
Nagios Exchange
Website
http://www.compudentsystems.com/documentation/check_remote.htm
Compatible With
ping_remote.cmd file
You may wish to monitor the status of a tunnel via NRPE_NT's cmd facility when your NAGIOS server is also remote from the server. Steps to implement this in NAGIOS: 1) Duplicate the nrpe_nt_check_cmd in checkcommands.cfg and change the syntax to nrpe_nt_check_remote. 2) Add this line to your nrpe.cfg file on your Windows server: commandnrpe_nt_check_remote=c:nrpe_ntping_remote.cmd 192.168.2.1 # where 192.168.2.1 is the gateway to the remote LAN. 3) Create a ping_remote.cmd file in the nrpe_nt folder: @ECHO OFF PING -n 1 %1 > NUL IF NOT ERRORLEVEL 1 GOTO REMOTE_FOUND PING -n 1 -w 3000 %1 > NUL IF ERRORLEVEL 1 GOTO REMOTE_DOWN ECHO REMOTE CONNECTION TO %1 IS SLOW EXIT 1 :REMOTE_DOWN ECHO REMOTE CONNECTION TO %1 IS DOWN EXIT 2 :REMOTE_FOUND ECHO REMOTE CONNECTION TO %1 IS UP EXIT 0 REM OK = 0; REM WARNING = 1; REM CRITICAL = 2; REM UNKNOWN = 3;
You must be logged in to submit a review.
To:
From: