summaryrefslogtreecommitdiffstats
path: root/plugins/check_users.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-05-07 10:02:42 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-05-07 10:02:42 (GMT)
commit44f8455b2cf248c6f50c35bfc3510d2946084c5b (patch)
tree26b696c5d61872f1d41466be9fcc650c22d75aeb /plugins/check_users.c
parent4d157889e3018119e07bdcc7f48afde1422f7396 (diff)
downloadmonitoring-plugins-44f8455b2cf248c6f50c35bfc3510d2946084c5b.tar.gz
Added support for --extra-opts in all C plugins (disabled by default, see configure --help)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1991 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_users.c')
-rw-r--r--plugins/check_users.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/check_users.c b/plugins/check_users.c
index c81822b..e4ef681 100644
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
@@ -65,6 +65,9 @@ main (int argc, char **argv)
65 65
66 perf = strdup(""); 66 perf = strdup("");
67 67
68 /* Parse extra opts if any */
69 argv=np_extra_opts (&argc, argv, progname);
70
68 if (process_arguments (argc, argv) == ERROR) 71 if (process_arguments (argc, argv) == ERROR)
69 usage4 (_("Could not parse arguments")); 72 usage4 (_("Could not parse arguments"));
70 73
@@ -213,12 +216,19 @@ print_help (void)
213 print_usage (); 216 print_usage ();
214 217
215 printf (_(UT_HELP_VRSN)); 218 printf (_(UT_HELP_VRSN));
219 printf (_(UT_EXTRA_OPTS));
216 220
217 printf (" %s\n", "-w, --warning=INTEGER"); 221 printf (" %s\n", "-w, --warning=INTEGER");
218 printf (" %s\n", _("Set WARNING status if more than INTEGER users are logged in")); 222 printf (" %s\n", _("Set WARNING status if more than INTEGER users are logged in"));
219 printf (" %s\n", "-c, --critical=INTEGER"); 223 printf (" %s\n", "-c, --critical=INTEGER");
220 printf (" %s\n", _("Set CRITICAL status if more than INTEGER users are logged in")); 224 printf (" %s\n", _("Set CRITICAL status if more than INTEGER users are logged in"));
221 225
226#ifdef NP_EXTRA_OPTS
227 printf ("\n");
228 printf ("%s\n", _("Notes:"));
229 printf (_(UT_EXTRA_OPTS_NOTES));
230#endif
231
222 printf (_(UT_SUPPORT)); 232 printf (_(UT_SUPPORT));
223} 233}
224 234