mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
Ping plugin: updated info, fixed labels, new image
This commit is contained in:
parent
dca361d029
commit
ec431eb37e
3 changed files with 5 additions and 5 deletions
|
@ -24,19 +24,19 @@ ping - Plugin to monitor ping times
|
||||||
|
|
||||||
Configuration example
|
Configuration example
|
||||||
|
|
||||||
[ping]
|
[ping*]
|
||||||
env.hosts mail.example.org,6:www.example.org,AAAA:search.example.org
|
env.hosts mail.example.org,6:www.example.org,AAAA:search.example.org
|
||||||
env.names Mail,Web,Search
|
env.names Mail,Web,Search
|
||||||
env.fork yes
|
env.fork yes
|
||||||
|
|
||||||
Configuration example for Solaris
|
Configuration example for Solaris
|
||||||
|
|
||||||
[multiping]
|
[ping*]
|
||||||
env.host www.example.org mail.example.org
|
env.host www.example.org mail.example.org
|
||||||
env.ping_args -s
|
env.ping_args -s
|
||||||
env.ping_args2 56 2
|
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
|
=head1 AUTHOR
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ my $config_mode = ($ARGV[0] and $ARGV[0] eq 'config');
|
||||||
if ($config_mode) {
|
if ($config_mode) {
|
||||||
print "graph_title " . ($packetloss_mode ? "Ping packet loss" : "Ping times") . "\n";
|
print "graph_title " . ($packetloss_mode ? "Ping packet loss" : "Ping times") . "\n";
|
||||||
print "graph_args --base 1000 -l 0\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_category network\n";
|
||||||
print "graph_info This graph shows ping " . ($packetloss_mode ? "packet loss" : "RTT") . " statistics.\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_addrs = ($host_addrs[$host_i]);
|
||||||
my $h_ping = $host_ping[$host_i];
|
my $h_ping = $host_ping[$host_i];
|
||||||
my $h_resolv = $host_resolv[$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) {
|
if ($h_resolv) {
|
||||||
# we have to resolve the host to (probably multiple) addresses
|
# we have to resolve the host to (probably multiple) addresses
|
||||||
|
|
BIN
plugins/network/ping/ping-day.png
Normal file
BIN
plugins/network/ping/ping-day.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Binary file not shown.
Before Width: | Height: | Size: 25 KiB |
Loading…
Add table
Add a link
Reference in a new issue