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


Remember Me

Directory Tree

Check Ping - with MTR and custom outputs

Current Version
Last Release Date
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
  • Nagios Fusion
  • Nagios Reactor
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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 -N loopback
The host 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
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.