Code

Typo in check_ups
[nagiosplug.git] / plugins / check_ntp.c
index 28a8f89956db0c947e2d16ad4ae69db64cbbd8b0..68c82d1154655907b4b7e8df8221d8b1de1e2594 100644 (file)
@@ -763,6 +763,9 @@ int main(int argc, char *argv[]){
 
        result = offset_result = jitter_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"));
 
@@ -844,6 +847,7 @@ void print_help(void){
 
        print_usage();
        printf (_(UT_HELP_VRSN));
+       printf (_(UT_EXTRA_OPTS));
        printf (_(UT_HOST_PORT), 'p', "123");
        printf (" %s\n", "-w, --warning=THRESHOLD");
        printf ("    %s\n", _("Offset to result in warning status (seconds)"));
@@ -858,21 +862,23 @@ void print_help(void){
 
        printf("\n");
        printf("%s\n", _("Notes:"));
-       printf(" %s\n", _("See:"));
-       printf(" %s\n", ("http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT"));
-       printf(" %s\n", _("for THRESHOLD format and examples."));
+       printf(_(UT_THRESHOLDS_NOTES));
+#ifdef NP_EXTRA_OPTS
+       printf("\n");
+       printf(_(UT_EXTRA_OPTS_NOTES));
+#endif
 
        printf("\n");
        printf("%s\n", _("Examples:"));
        printf(" %s\n", _("Normal offset check:"));
        printf("  %s\n", ("./check_ntp -H ntpserv -w 0.5 -c 1"));
+       printf("\n");
        printf(" %s\n", _("Check jitter too, avoiding critical notifications if jitter isn't available"));
        printf(" %s\n", _("(See Notes above for more details on thresholds formats):"));
        printf("  %s\n", ("./check_ntp -H ntpserv -w 0.5 -c 1 -j -1:100 -k -1:200"));
 
        printf (_(UT_SUPPORT));
 
-       printf("\n");
        printf ("%s\n", _("WARNING: check_ntp is deprecated. Please use check_ntp_peer or"));
        printf ("%s\n\n", _("check_ntp_time istead."));
 }