diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-04-13 09:44:19 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2008-04-13 09:44:19 +0000 |
commit | a64b04ba7dac0881071dfc897661577133c016ae (patch) | |
tree | 333d8147ec7f0e5a846a4917b746e93ecb1461e5 | |
parent | 1c6a324bce91385329397738826a2604223ff7b1 (diff) |
When we have colors, do not say recovery or problem
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@339 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | parse-nagios | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/parse-nagios b/parse-nagios index a0d3e97..56c6502 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/) { - $hosttype = "$type\@4$host"; + $hosttype = "4$host"; } elsif ($state =~ m/WARNING/) { - $hosttype = "$type\@5$host"; + $hosttype = "5$host"; } elsif ($state =~ m/OK/) { - $hosttype = "$type\@3$host"; + $hosttype = "3$host"; } elsif ($state =~ m/UNKNOWN/) { - $hosttype = "$type\@6$host"; + $hosttype = "6$host"; } else { $hosttype = "$type\@$host"; } |