summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
authorwaja <waja@users.noreply.github.com>2020-12-08 16:55:04 +0100
committerGitHub <noreply@github.com>2020-12-08 16:55:04 +0100
commit81b99ded7ff0116ebd4b7969d51ffb9e0aba8abc (patch)
treee680f0c5d03e36a24cb875d3a4ce9af4de22c93f /plugins-scripts
parent67877a296ef5a0f2f17efd8c2f069c3b4689ccd0 (diff)
parentaa79ab278ffc9bf3d41207d97bdfb04be35b5c74 (diff)
downloadmonitoring-plugins-81b99ded7ff0116ebd4b7969d51ffb9e0aba8abc.tar.gz
Merge pull request #1650 from sni/fix_check_mailq_options
check_mailq: restore accidentially removed options
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_mailq.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins-scripts/check_mailq.pl b/plugins-scripts/check_mailq.pl
index 32f498d3..aac1310e 100755
--- a/plugins-scripts/check_mailq.pl
+++ b/plugins-scripts/check_mailq.pl
@@ -568,7 +568,9 @@ sub process_arguments(){
568 "w=i" => \$opt_w, "warning=i" => \$opt_w, # warning if above this number 568 "w=i" => \$opt_w, "warning=i" => \$opt_w, # warning if above this number
569 "c=i" => \$opt_c, "critical=i" => \$opt_c, # critical if above this number 569 "c=i" => \$opt_c, "critical=i" => \$opt_c, # critical if above this number
570 "t=i" => \$opt_t, "timeout=i" => \$opt_t, 570 "t=i" => \$opt_t, "timeout=i" => \$opt_t,
571 "s" => \$opt_s, "sudo" => \$opt_s 571 "s" => \$opt_s, "sudo" => \$opt_s,
572 "W=i" => \$opt_W, # warning if above this number
573 "C=i" => \$opt_C, # critical if above this number
572 ); 574 );
573 575
574 if ($opt_V) { 576 if ($opt_V) {
@@ -662,8 +664,8 @@ sub print_help () {
662 print " Feedback/patches to support non-sendmail mailqueue welcome\n\n"; 664 print " Feedback/patches to support non-sendmail mailqueue welcome\n\n";
663 print "-w (--warning) = Min. number of messages in queue to generate warning\n"; 665 print "-w (--warning) = Min. number of messages in queue to generate warning\n";
664 print "-c (--critical) = Min. number of messages in queue to generate critical alert ( w < c )\n"; 666 print "-c (--critical) = Min. number of messages in queue to generate critical alert ( w < c )\n";
665 print "-W (--Warning) = Min. number of messages for same domain in queue to generate warning\n"; 667 print "-W = Min. number of messages for same domain in queue to generate warning\n";
666 print "-C (--Critical) = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n"; 668 print "-C = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n";
667 print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n"; 669 print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n";
668 print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)\n"; 670 print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)\n";
669 print "-s (--sudo) = Use sudo to call the mailq command\n"; 671 print "-s (--sudo) = Use sudo to call the mailq command\n";