summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-02-16 08:25:58 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2003-02-16 08:25:58 +0000
commitdeb6a8e5911bbd588d12a86cd4aa54c58ee2ad56 (patch)
tree10f886f96284f6b9c3e13dbcadb5d14cb0468387 /plugins
parent33139519aaac2a964975c6da5c4efa3fde6f8585 (diff)
downloadmonitoring-plugins-deb6a8e5911bbd588d12a86cd4aa54c58ee2ad56.tar.gz
Coredump if no variable set (reported by Marc C. Poulin)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@327 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_nt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 65c4e693..b9aae1c4 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -505,13 +505,16 @@ int process_arguments(int argc, char **argv){
505 505
506 } 506 }
507 507
508 if (vars_to_check==CHECK_NONE)
509 return ERROR;
510
508 return OK; 511 return OK;
509} 512}
510 513
511 514
512void print_usage(void) 515void print_usage(void)
513{ 516{
514 printf("Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname); 517 printf("Usage: %s -H host -v variable [-p port] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname);
515} 518}
516 519
517 520