diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2008-06-07 10:15:54 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2008-06-07 10:15:54 +0000 |
commit | 2abe4be214da0581ca573ba7e8cbb734f49c8c08 (patch) | |
tree | a9e562e2110d4bccb2bf15aa60e7c996bd22b5d9 /munin-plugin | |
parent | 72de6a9cfbbe42e785cf817be2aa207a5b45cca6 (diff) | |
download | sitesummary-2abe4be214da0581ca573ba7e8cbb734f49c8c08.tar.gz sitesummary-2abe4be214da0581ca573ba7e8cbb734f49c8c08.tar.bz2 sitesummary-2abe4be214da0581ca573ba7e8cbb734f49c8c08.tar.xz |
Add magic markers.
Diffstat (limited to 'munin-plugin')
-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") { |