diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-07 11:51:12 +0000 |
commit | 9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709 (patch) | |
tree | cb5831f4c018edc441686b2fe7715eb91de4ffee /plugins/check_by_ssh.c | |
parent | 7f1bb2a782a008b55b0ef657ec01d7fbdb637fd4 (diff) | |
download | monitoring-plugins-9e17dab6c3e4b4e7142f3ea5b2a60fcd488dc709.tar.gz |
replace "terminate" with "die" for shorter name and better readability
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@656 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_by_ssh.c')
-rw-r--r-- | plugins/check_by_ssh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index ae19253f..1211daa3 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c | |||
@@ -349,9 +349,9 @@ process_arguments (int argc, char **argv) | |||
349 | c = optind; | 349 | c = optind; |
350 | if (hostname == NULL) { | 350 | if (hostname == NULL) { |
351 | if (c <= argc) { | 351 | if (c <= argc) { |
352 | terminate (STATE_UNKNOWN, _("%s: You must provide a host name\n"), progname); | 352 | die (STATE_UNKNOWN, _("%s: You must provide a host name\n"), progname); |
353 | } else if (!is_host (argv[c])) | 353 | } else if (!is_host (argv[c])) |
354 | terminate (STATE_UNKNOWN, _("%s: Invalid host name %s\n"), progname, argv[c]); | 354 | die (STATE_UNKNOWN, _("%s: Invalid host name %s\n"), progname, argv[c]); |
355 | hostname = argv[c++]; | 355 | hostname = argv[c++]; |
356 | } | 356 | } |
357 | 357 | ||
@@ -385,10 +385,10 @@ validate_arguments (void) | |||
385 | return ERROR; | 385 | return ERROR; |
386 | 386 | ||
387 | if (passive && commands != services) | 387 | if (passive && commands != services) |
388 | terminate (STATE_UNKNOWN, _("%s: In passive mode, you must provide a service name for each command.\n"), progname); | 388 | die (STATE_UNKNOWN, _("%s: In passive mode, you must provide a service name for each command.\n"), progname); |
389 | 389 | ||
390 | if (passive && host_shortname == NULL) | 390 | if (passive && host_shortname == NULL) |
391 | terminate (STATE_UNKNOWN, _("%s: In passive mode, you must provide the host short name from the nagios configs.\n"), progname); | 391 | die (STATE_UNKNOWN, _("%s: In passive mode, you must provide the host short name from the nagios configs.\n"), progname); |
392 | 392 | ||
393 | return OK; | 393 | return OK; |
394 | } | 394 | } |