summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-01-29 04:28:37 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2003-01-29 04:28:37 (GMT)
commit455e7c1a52ea8ea7322f783d86569e59b84cf0a5 (patch)
tree2094ba0377c72d68fdf1152f3855366472b6075a /plugins
parent4ad2c31c4e157d6392e9846debdfaf38e1cdda30 (diff)
downloadmonitoring-plugins-455e7c1a52ea8ea7322f783d86569e59b84cf0a5.tar.gz
Error when no params passed, better invalid params message (652086 - Ton Voon)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@262 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_vsz.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/check_vsz.c b/plugins/check_vsz.c
index 767abf4..e6132a0 100644
--- a/plugins/check_vsz.c
+++ b/plugins/check_vsz.c
@@ -63,7 +63,7 @@ main (int argc, char **argv)
63 char proc_name[MAX_INPUT_BUFFER]; 63 char proc_name[MAX_INPUT_BUFFER];
64 char *message = ""; 64 char *message = "";
65 65
66 if (!process_arguments (argc, argv)) { 66 if (process_arguments (argc, argv) == ERROR) {
67 printf ("%s: failure parsing arguments\n", progname); 67 printf ("%s: failure parsing arguments\n", progname);
68 print_help (progname); 68 print_help (progname);
69 return STATE_UNKNOWN; 69 return STATE_UNKNOWN;
@@ -166,7 +166,6 @@ process_arguments (int argc, char **argv)
166 166
167 switch (c) { 167 switch (c) {
168 case '?': /* help */ 168 case '?': /* help */
169 printf ("%s: Unknown argument: %s\n\n", progname, optarg);
170 print_usage (progname); 169 print_usage (progname);
171 exit (STATE_UNKNOWN); 170 exit (STATE_UNKNOWN);
172 case 'h': /* help */ 171 case 'h': /* help */