ping_remote.bat ( with check_nrpe + nsclient) (Visit this link)

rating from 0 votes
Basically it takes the ping stats (between nsclient + desired ip) then forwards the
info to nagios svr.

when testing this on the nsclient, ensure to "rem" out the "@exit" lines
to test it or you will not see the results when it exits using the "@exit" cmd.

C:\>ping_remote 192.168.0.1 5 200,1 400,10
this command above will ping "192.168.0.1" with 5 packets and
gives the warning value if RTA is "200", Packet Loss 1% or above
gives the Critical value if RTA is "400", Packet Loss 10% or above

C:\Program Files\NSClient++\scripts>ping_remote.bat
Usage:ping_remote , ,

example: /usr/local/nagios/libexec/check_nrpe -H 172.19.4.1 -c ping_remote -t 90 -a 172.19.40.30 65 450,1 700,5 (From Nagios SVR.)
: ping_remote 192.168.0.1 5 200,1 400,10 (From a local win wks where
ping_remote.bat resides)
: (wpl\cpl are in percent, without the "%" symbol!!)

also ensure you add the following in
the C:\Program Files\NSClient++\NSC.ini under [NRPE Handlers]
"ping_remote=scripts\ping_remote.bat $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$"
and in nagios.
i have 2 cfg files one for the nagios commands "commands.cfg" and
one for each host

commands.cfg:
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c ping_remote $ARG1$
and in nagios windows.cfg
check_command ping_remote! -t 90 -a 172.11.38.6 65 450,2 700,5

Submitted by: mds2100
Hits: 1578
Overall downloads: 248
Added: 2009-07-02 00:00:00
Last Modified: 2009-12-16 16:34:38

Filename Preview Size Description DL
ping_remote.bat 2 kb Unknown Tag: 'ping_remote.bat' 427

Comments


Be the first to comment this project.

Leave a reply

If you just want to rate the project leave the other field empty.
Even though it would be nice if you would drop a line.

Allowed tags: blockquote, strong, a, b, i, u, code

Captcha Reload Image


  • check_interface_table_v2.pl

    rating3 from 1 votes
    As stated on the original check complete interface table page this plugin allows you to monitor one network device (e.g. router, switch, server) without knowing each interface in detail. Only the hostname (or ip address) and the snmp community string are required. But additional to the original this 2nd version gives you performance data for all the interfaces if you wish. And furthermore it calculates the interface load and informs you on configured VLANs. Check Live-Demo here: http://nagios.demo.netways.de/nagios/cgi-bin/status.cgi?host=f1-switch
  • check_netstat

    rating5 from 1 votes
    This plugin checks number of open tcp connections and can send warnings or critical alert of there are too many or too few. Can run either directly on the box or use SNMP.
  • Check Ethernet-Interface

    rating from 0 votes
    A simple network-interface status check-plugin (based on bash and mii-tool)
  • check_apache_status

    rating3 from 3 votes
    [perl] Yet Another (more generic) parser for Apache's server-status handler. Fetches the server-status page of an apache, extracts some information and evaluates them. Tested with Apache 2.0 - not (yet) working with Apache 1.x
  • SMB Share checker

    rating3 from 2 votes
    Simple sh script to check if smb shares are "up"
  • check_stp_bridges.sh

    rating from 0 votes
    Checks network bridges using STP (Spanning Tree Protocol) for network path redundancy.
  • check_xmpp

    rating from 0 votes
    This plugin tests for XMPP-Server on a given host and optional tests if login with given user/pass is possible
  • check_openvpn

    rating4 from 1 votes
    i modified the plugin from "http://www.nagiosexchange.org/cgi-bin/pages/Detailed/2371.html" to make it useable with OpenVPN 2.0.9
  • check_nfs_mounts

    rating from 0 votes
    this is working in my net with little effort
  • check_networkload

    rating from 0 votes
    Auto discovery of all interfaces on a linux host, with detailed performance metrics.
Catalot 1.3.0 (appkit/v0.9.0-dev, Agavi/1.0.0) | www.netways.de | Legal
© 2009 NETWAYS GmbH. The Program is provided AS IS, without warranty. Licensed under GPLv3.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.