diff options
-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"; } |