diff options
-rwxr-xr-x | munin-plugin | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/munin-plugin b/munin-plugin index 0034e20..6c5291f 100755 --- a/munin-plugin +++ b/munin-plugin @@ -1,7 +1,10 @@ #!/usr/bin/perl # -# Generate list of nodes to load from /etc/munin/munin.conf to check -# all the machines reporting to sitesummary. +# Graph site counts from SiteSummary +# +# Magick markers (optional): +#%# family=auto +#%# capabilities=autoconf use strict; use warnings; @@ -12,7 +15,9 @@ my %sitelabels; if (!defined $ARGV[0]) { for_all_hosts(\&handle_host); - for my $sitelabel (sort keys %sitelabels) { + # List values in the opposit order of the configuration order, to + # try to get the same order on the graphs and the values. + for my $sitelabel (sort { $b cmp $a } keys %sitelabels) { print "$sitelabel.value ", $sitelabels{$sitelabel}, "\n"; } } elsif ($ARGV[0] eq "config") { |