diff options
Diffstat (limited to 'parse-nagios')
-rwxr-xr-x | parse-nagios | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parse-nagios b/parse-nagios index 4a2036c..d51f581 100755 --- a/parse-nagios +++ b/parse-nagios @@ -96,13 +96,13 @@ $type =~ tr/A-Z/a-z/; $service = $host unless defined $service; if ($state =~ m/CRITICAL|DOWN|UNREACHABLE/ ) { - $hosttype = "4$host"; -} elsif ($state =~ m/WARNING/) { $hosttype = "5$host"; +} elsif ($state =~ m/WARNING/) { + $hosttype = "7$host"; } elsif ($state =~ m/OK|UP/ ) { $hosttype = "3$host"; } elsif ($state =~ m/UNKNOWN/) { - $hosttype = "6$host"; + $hosttype = "10$host"; } else { $hosttype = "$type\@$host"; } |