1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00

Ping plugin: updated info, fixed labels, new image

This commit is contained in:
Artem Sheremet 2012-07-25 10:03:40 +03:00
parent dca361d029
commit ec431eb37e
3 changed files with 5 additions and 5 deletions

View file

@ -24,19 +24,19 @@ ping - Plugin to monitor ping times
Configuration example
[ping]
[ping*]
env.hosts mail.example.org,6:www.example.org,AAAA:search.example.org
env.names Mail,Web,Search
env.fork yes
Configuration example for Solaris
[multiping]
[ping*]
env.host www.example.org mail.example.org
env.ping_args -s
env.ping_args2 56 2
You can also append plugin name with '_packetloss' to get packet loss statistics.
You can also append '_packetloss' to the plugin filename for packet loss statistics.
=head1 AUTHOR
@ -90,7 +90,7 @@ my $config_mode = ($ARGV[0] and $ARGV[0] eq 'config');
if ($config_mode) {
print "graph_title " . ($packetloss_mode ? "Ping packet loss" : "Ping times") . "\n";
print "graph_args --base 1000 -l 0\n";
print "graph_vlabel " . ($packetloss_mode ? "packets" : "seconds") . "\n";
print "graph_vlabel " . ($packetloss_mode ? "%" : "seconds") . "\n";
print "graph_category network\n";
print "graph_info This graph shows ping " . ($packetloss_mode ? "packet loss" : "RTT") . " statistics.\n";
}
@ -142,7 +142,7 @@ for (my $host_i = 0; $host_i < @host_addrs; ++$host_i) {
my @h_addrs = ($host_addrs[$host_i]);
my $h_ping = $host_ping[$host_i];
my $h_resolv = $host_resolv[$host_i];
my $h_name = $host_names[$host_i];
my $h_name = ($host_names[$host_i] or $h_addrs[0]);
if ($h_resolv) {
# we have to resolve the host to (probably multiple) addresses

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB