diff options
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-x | sitesummary-nodes | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes index 1f91226..2431680 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -201,14 +201,15 @@ sub print_nagios_service_check { my $cmd; if ($remote) { if (is_ssh_host($hostname)) { - $cmd = "check_ssh!$check"; + $cmd = "check_by_ssh!$check"; } else { $cmd = "check_nrpe!$check"; } if (defined $check_args) { + $cmd .= " -a" if (!is_ssh_host($hostname)); $check_args =~ s/!/ /g; - $cmd .= " -a $check_args"; + $cmd .= " $check_args"; } } else { $cmd = "$check"; |