summaryrefslogtreecommitdiffstats
path: root/plugins/check_cluster.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_cluster.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_cluster.c')
-rw-r--r--plugins/check_cluster.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c
index ac3eece..d493149 100644
--- a/plugins/check_cluster.c
+++ b/plugins/check_cluster.c
@@ -74,6 +74,9 @@ int main(int argc, char **argv){
74 bindtextdomain (PACKAGE, LOCALEDIR); 74 bindtextdomain (PACKAGE, LOCALEDIR);
75 textdomain (PACKAGE); 75 textdomain (PACKAGE);
76 76
77 /* Parse extra opts if any */
78 argv=np_extra_opts(&argc, argv, progname);
79
77 if(process_arguments(argc,argv)==ERROR) 80 if(process_arguments(argc,argv)==ERROR)
78 usage(_("Could not parse arguments")); 81 usage(_("Could not parse arguments"));
79 82
@@ -236,6 +239,7 @@ print_help(void)
236 239
237 printf("\n"); 240 printf("\n");
238 printf("%s\n", _("Options:")); 241 printf("%s\n", _("Options:"));
242 printf(_(UT_EXTRA_OPTS));
239 printf (" %s\n", "-s, --service"); 243 printf (" %s\n", "-s, --service");
240 printf (" %s\n", _("Check service cluster status")); 244 printf (" %s\n", _("Check service cluster status"));
241 printf (" %s\n", "-h, --host"); 245 printf (" %s\n", "-h, --host");
@@ -257,6 +261,10 @@ print_help(void)
257 printf("\n"); 261 printf("\n");
258 printf("%s\n", _("Notes:")); 262 printf("%s\n", _("Notes:"));
259 printf(_(UT_THRESHOLDS_NOTES)); 263 printf(_(UT_THRESHOLDS_NOTES));
264#ifdef NP_EXTRA_OPTS
265 printf ("\n");
266 printf (_(UT_EXTRA_OPTS_NOTES));
267#endif
260 268
261 printf(_(UT_SUPPORT)); 269 printf(_(UT_SUPPORT));
262} 270}