MRTG/Routers2: Measuring Ping Times

MRTG can also evaluate values from external scripts such as the “mrtg-ping-probe” program which returns the round-trip time from the initiated ping command to the specified destination host. With an additional GraphStyle called “range” from Routers2, these ping times can be displayed in the monitoring system. This graph style shows the “min” and “max” RTT in one vertical line instead of two independent lines.

Since there is not much to say about this process, I will only paste my MRTG/Routers2 config for mrtg-ping-probe and will show a few example graphs here.

If not already done, mrtg-ping-probe must be installed on the monitoring system. For Debian/Ubuntu its: sudo apt-get install mrtg-ping-probe .

MRTG/Routers2 Config

Following is my configuration part for the ping probes to a fictitious host of “1.2.3.4”. You need to change the “foobar” description to the hostname of the monitored machine and the “1.2.3.4” to the real IPv4 address:

 

With this configuration I am pinging all my remote routers/firewalls on the untrust (Internet) interface as well as on the trust (through VPN) interface. This immediately gives knowledge about problems due to network congestion, overloaded devices, routing changes, etc.

Sample Screenshots

Here are two graphs from my monitoring system that show the round-trip times to one of my external locations. The first one is the daily graph while the second one is the weekly graph. It is notable that the RTTs are much lower and continuous through the night while peaking several times through the working day. The weekly graph shows some major steps in the RTTs that reveal different routing paths through the Internet.

fdorf.cfg-fdorf_ping-d-l2

fdorf.cfg-fdorf_ping-w-l2

2 thoughts on “MRTG/Routers2: Measuring Ping Times

Leave a Reply

Your email address will not be published. Required fields are marked *