Home Directory Plugins System Metrics Networking Check Ping - with MTR and custom outputs

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check Ping - with MTR and custom outputs

Current Version
1.5
Last Release Date
2014-06-29
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
  • Nagios Fusion
  • Nagios Reactor
Owner
License
GPL
Hits
28749
Files:
FileDescription
check_ping_L2check_ping_L2
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
An extension of a basic ICMP test script idea.

The check does fairly boring ICM check of a host. On packet loss it can run a MTR ( http://en.wikipedia.org/wiki/MTR_%28software%29 ) check and email the results to the specified address. (Requires that the nagios user have sudo rights to do so.) The is great for companies that have critical network paths without a 24x7 staff of people to look after them.

Check the GitHub link for the latest versions
:L2/L3 Ping Check Instructions::

-h, Display this help information
-H, Specify a host to check
-M, Specify a message to return on failure
-N, Specify a differnet hostname for the output
This is for display in Nagios messages
Example: -H 127.0.0.1 -N loopback
The host 127.0.0.1 will be monitored and
the Nagios message will read:
The host loopback is currently OK.
-O, Specify an originating IP to use (must be on the box)
-w, Less than this % of sucessful pings triggers a warning
Defaults to 40 if not set
-c, Less than this % of sucessful pings triggers a critcal
Defaults to 80 if not set
The first critical alert trigger an MTR check with the
results emailed to the specific address.
-P Number of icmp packets to send
Defaults to 10 if not set
-m, Email address to send the MTR tests
Script written by Noah Guttman and Copyright (C) 2011 Noah Guttman.
This script is released and distributed under the terms of the GNU
General Public License. >>>> http://www.gnu.org/licenses/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
>>>> http://www.gnu.org/licenses/
Reviews (2)
byMajed, December 7, 2017
took me a long time to get it running, but happily i succeded.
sudo needs to be installed.
tried 2 other mtr plugins to no nice results.
The problem is that graphs produced are empty, or is that expected?
Owner's reply

The script should return a single piece of performance data - Packet loss expressed as a percentage.

If the script is not working as needed, please email me and I will help.

byzahid72, August 18, 2016
Kindly share some snapshot or output of plugin run on system to have a visual idea.