2
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

jenkins_: Reformat status mapping for better readability

This commit is contained in:
Dominic Hargreaves 2015-09-10 14:23:35 +01:00
parent b78552673e
commit cf88bc6c41

View file

@ -66,7 +66,18 @@ my $wgetBin = "/usr/bin/wget";
my $type = basename($0); my $type = basename($0);
$type =~ s/jenkins_//; $type =~ s/jenkins_//;
my %states = ('blue' =>'stable', 'blue_anime' =>'stable', 'yellow'=>'unstable', 'yellow_anime'=>'unstable', 'red'=>'failing', 'red_anime'=>'failing', 'disabled'=>'disabled', 'notbuilt_anime' =>'disabled', 'aborted'=>'failing', 'aborted_anime'=>'failing' ); my %states = (
'blue' =>'stable',
'blue_anime' =>'stable',
'yellow'=>'unstable',
'yellow_anime'=>'unstable',
'red'=>'failing',
'red_anime'=>'failing',
'disabled'=>'disabled',
'notbuilt_anime' =>'disabled',
'aborted'=>'failing',
'aborted_anime'=>'failing'
);
my %counts = ('blue' => 0, 'yellow'=>0, 'red'=>0, 'disabled'=>0); my %counts = ('blue' => 0, 'yellow'=>0, 'red'=>0, 'disabled'=>0);
if ( exists $ARGV[0] and $ARGV[0] eq "config" ) { if ( exists $ARGV[0] and $ARGV[0] eq "config" ) {