index ec41429e96365ee148005c3d6d12e6fd9d3c382f..ea24a0e7f9f3f6e301e4c04b36c9114969767268 100644 (file)
--- a/plugins/check_ntp_time.c
+++ b/plugins/check_ntp_time.c
result = offset_result = STATE_OK;
+ /* Parse extra opts if any */
+ argv=np_extra_opts (&argc, argv, progname);
+
if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
print_usage();
printf (_(UT_HELP_VRSN));
+ printf (_(UT_EXTRA_OPTS));
printf (_(UT_HOST_PORT), 'p', "123");
printf (" %s\n", "-q, --quiet");
printf (" %s\n", _("Returns UNKNOWN instead of CRITICAL if offset cannot be found"));
printf("\n");
printf("%s\n", _("This plugin checks the clock offset between the local host and a"));
printf("%s\n", _("remote NTP server. It is independent of any commandline programs or"));
- printf("%s\n\n", _("external libraries."));
+ printf("%s\n", _("external libraries."));
+ printf("\n");
printf("%s\n", _("Notes:"));
printf(" %s\n", _("If you'd rather want to monitor an NTP server, please use"));
- printf(" %s\n\n", _("check_ntp_peer."));
-
+ printf(" %s\n", _("check_ntp_peer."));
+ printf("\n");
printf(_(UT_THRESHOLDS_NOTES));
+#ifdef NP_EXTRA_OPTS
+ printf("\n");
+ printf(_(UT_EXTRA_OPTS_NOTES));
+#endif
printf("\n");
printf("%s\n", _("Examples:"));