Code

support for Large swap sizes
[nagiosplug.git] / plugins / check_nt.c
index 4d57077cd4e56c7109297bd69f12e8d7e98daf21..b9aae1c41329d7c1a5fc522dfb4640fc2aafa5ac 100644 (file)
@@ -7,6 +7,8 @@
  * Copyright (c) 2000-2002 Yves Rubin (rubiyz@yahoo.com)
  *
  * Description:
+ * 
+ * This requires NSClient software to run on NT (http://nsclient.ready2run.nl/)
  *
  * License Information:
  *
@@ -480,7 +482,7 @@ int process_arguments(int argc, char **argv){
                                        return ERROR;
                                break;
                        case 'l': /* value list */
-                               asprintf(&value_list,optarg);
+                               asprintf(&value_list,"%s",optarg);
                                check_value_list=TRUE;
                                break;
                        case 'w': /* warning threshold */
@@ -503,13 +505,16 @@ int process_arguments(int argc, char **argv){
 
        }
 
+       if (vars_to_check==CHECK_NONE)
+               return ERROR;
+
        return OK;
 }
 
 
 void print_usage(void)
 {
-       printf("Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname);
+       printf("Usage: %s -H host -v variable [-p port] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname);
 }