From 2abe4be214da0581ca573ba7e8cbb734f49c8c08 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sat, 7 Jun 2008 10:15:54 +0000 Subject: Add magic markers. --- munin-plugin | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'munin-plugin') 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") { -- cgit v1.2.3