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: 1811
Overall downloads: 286
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' 465

Comments


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 Ethernet-Interface

    rating from 0 votes
    A simple network-interface status check-plugin (based on bash and mii-tool)
  • 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_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_icmp - ICMP with Type of Service Bit

    rating from 0 votes
    This plugin works like the normal check_icmp, but has an additional option to set the type of service bits. Handy if you want to check heavy loaded links.
  • check_arp.sh

    rating from 0 votes
    This will check for duplicate MAC entries in your ARP table on your nagios/linux box. If it finds any, it MAY mean your being attacked via arp spoofing / poisoning.
  • check_snmp_faktor

    rating from 0 votes
    Calculate the requested snmp value with a factor (usefull for temperatur meassurement). To check Fans or Temperatures you can choose "low" or "high" messure.
  • check_openvpn_clients

    rating from 0 votes
    check for openvpn clients
  • check_dns.sh

    rating from 0 votes
    Plugin to monitor changes of the IP address stored in the A record of a DNS resource.
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.