summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplugins-scripts/check_mailq.pl16
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins-scripts/check_mailq.pl b/plugins-scripts/check_mailq.pl
index 3914f4a7..8cc3d0f6 100755
--- a/plugins-scripts/check_mailq.pl
+++ b/plugins-scripts/check_mailq.pl
@@ -567,12 +567,14 @@ exit $state;
567 567
568sub process_arguments(){ 568sub process_arguments(){
569 GetOptions 569 GetOptions
570 ("V" => \$opt_V, "version" => \$opt_V, 570 ("V" => \$opt_V, "version" => \$opt_V,
571 "v" => \$opt_v, "verbose" => \$opt_v, 571 "v" => \$opt_v, "verbose" => \$opt_v,
572 "h" => \$opt_h, "help" => \$opt_h, 572 "h" => \$opt_h, "help" => \$opt_h,
573 "M:s" => \$opt_M, "mailserver:s" => \$opt_M, # mailserver (default sendmail) 573 "M:s" => \$opt_M, "mailserver:s" => \$opt_M, # mailserver (default sendmail)
574 "w=i" => \$opt_w, "warning=i" => \$opt_w, # warning if above this number 574 "w=i" => \$opt_w, "warning=i" => \$opt_w, # warning if above this number
575 "c=i" => \$opt_c, "critical=i" => \$opt_c, # critical if above this number 575 "c=i" => \$opt_c, "critical=i" => \$opt_c, # critical if above this number
576 "W=i" => \$opt_W, "warning-domain=i" => \$opt_W, # Warning if above this number
577 "C=i" => \$opt_C, "critical-domain=i" => \$opt_C, # Critical if above this number
576 "t=i" => \$opt_t, "timeout=i" => \$opt_t, 578 "t=i" => \$opt_t, "timeout=i" => \$opt_t,
577 "s" => \$opt_s, "sudo" => \$opt_s, 579 "s" => \$opt_s, "sudo" => \$opt_s,
578 "d:s" => \$opt_d, "configdir:s" => \$opt_d, 580 "d:s" => \$opt_d, "configdir:s" => \$opt_d,
@@ -671,15 +673,15 @@ sub print_help () {
671 print " Feedback/patches to support non-sendmail mailqueue welcome\n\n"; 673 print " Feedback/patches to support non-sendmail mailqueue welcome\n\n";
672 print "-w (--warning) = Min. number of messages in queue to generate warning\n"; 674 print "-w (--warning) = Min. number of messages in queue to generate warning\n";
673 print "-c (--critical) = Min. number of messages in queue to generate critical alert ( w < c )\n"; 675 print "-c (--critical) = Min. number of messages in queue to generate critical alert ( w < c )\n";
674 print "-W = Min. number of messages for same domain in queue to generate warning\n"; 676 print "-W (--warning-domain) = Min. number of messages for same domain in queue to generate warning\n";
675 print "-C = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n"; 677 print "-C (--critical-domain) = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n";
676 print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n"; 678 print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n";
677 print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)\n"; 679 print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)\n";
678 print "-s (--sudo) = Use sudo to call the mailq command\n"; 680 print "-s (--sudo) = Use sudo to call the mailq command\n";
679 print "-d (--configdir) = Config file or directory\n"; 681 print "-d (--configdir) = Config file or directory\n";
680 print "-h (--help)\n"; 682 print "-h (--help)\n";
681 print "-V (--version)\n"; 683 print "-V (--version)\n";
682 print "-v (--verbose) = debugging output\n"; 684 print "-v (--verbose) = debugging output\n";
683 print "\n\n"; 685 print "\n\n";
684 print "Note: -w and -c are required arguments. -W and -C are optional.\n"; 686 print "Note: -w and -c are required arguments. -W and -C are optional.\n";
685 print " -W and -C are applied to domains listed on the queues - both FROM and TO. (sendmail)\n"; 687 print " -W and -C are applied to domains listed on the queues - both FROM and TO. (sendmail)\n";