summaryrefslogtreecommitdiff
path: root/parse-nagios
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-04-13 09:43:47 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2008-04-13 09:43:47 +0000
commit1c6a324bce91385329397738826a2604223ff7b1 (patch)
tree347700b449c7c74d9c8614ccd6ea3ff4a59a851d /parse-nagios
parent4f8b890f581e545c4ee3b189cbd494cc5de656dc (diff)
Add unknown, change colors
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@338 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'parse-nagios')
-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";
}