diff options
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-x | sitesummary-nodes | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes index 3c439a9..ab2ecf1 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -51,8 +51,8 @@ if ($opts{'h'}) { if (open(my $fh, $nagiosignorefile)) { while (<$fh>) { chomp; - my ($hostname, $nagioscheck) = split(/:/); - $nagios_ignore{"$hostname:$nagioscheck"} = 1; + my ($hostname, $nagioscheck) = split(/ /, $_, 2); + $nagios_ignore{"$hostname $nagioscheck"} = 1; } close $fh; } @@ -185,7 +185,7 @@ sub print_nagios_service_check { my ($remote, $hostname, $description, $check, $check_args) = @_; my $template = "server-service"; - return if exists $nagios_ignore{"$hostname:$check"}; + return if exists $nagios_ignore{"$hostname $description"}; my $cmd; if ($remote) { $cmd = "check_nrpe!$check"; |