summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xparse-nagios6
1 files changed, 4 insertions, 2 deletions
diff --git a/parse-nagios b/parse-nagios
index 4834a39..a0d3e97 100755
--- a/parse-nagios
+++ b/parse-nagios
@@ -98,9 +98,11 @@ $service = $host unless defined $service;
if ($state =~ m/CRITICAL/) {
$hosttype = "$type\@4$host";
} elsif ($state =~ m/WARNING/) {
- $hosttype = "$type\@8$host";
+ $hosttype = "$type\@5$host";
} elsif ($state =~ m/OK/) {
- $hosttype = "$type\@9$host";
+ $hosttype = "$type\@3$host";
+} elsif ($state =~ m/UNKNOWN/) {
+ $hosttype = "$type\@6$host";
} else {
$hosttype = "$type\@$host";
}