diff options
author | Evgeni Golov <evgeni@golov.de> | 2014-02-27 19:06:56 +0100 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-02-27 20:33:35 +0100 |
commit | f14ae4b99a9835edf6aa3c39c2949cdd056dcee2 (patch) | |
tree | f10fc63381f917753ba0a8adfbc5f812620249ca | |
parent | be9aa5aba24640b15205060cda442d02f7be799c (diff) | |
download | monitoring-plugins-f14ae4b.tar.gz |
check_mailq: document autodetection in the usage output
-rwxr-xr-x | plugins-scripts/check_mailq.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins-scripts/check_mailq.pl b/plugins-scripts/check_mailq.pl index cc040ebb..2cb54b63 100755 --- a/plugins-scripts/check_mailq.pl +++ b/plugins-scripts/check_mailq.pl | |||
@@ -651,7 +651,7 @@ sub print_help () { | |||
651 | print "-W (--Warning) = Min. number of messages for same domain in queue to generate warning\n"; | 651 | print "-W (--Warning) = Min. number of messages for same domain in queue to generate warning\n"; |
652 | print "-C (--Critical) = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n"; | 652 | print "-C (--Critical) = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n"; |
653 | print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n"; | 653 | print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n"; |
654 | print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = sendmail)\n"; | 654 | print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)\n"; |
655 | print "-h (--help)\n"; | 655 | print "-h (--help)\n"; |
656 | print "-V (--version)\n"; | 656 | print "-V (--version)\n"; |
657 | print "-v (--verbose) = debugging output\n"; | 657 | print "-v (--verbose) = debugging output\n"; |
@@ -659,6 +659,8 @@ sub print_help () { | |||
659 | print "Note: -w and -c are required arguments. -W and -C are optional.\n"; | 659 | print "Note: -w and -c are required arguments. -W and -C are optional.\n"; |
660 | print " -W and -C are applied to domains listed on the queues - both FROM and TO. (sendmail)\n"; | 660 | print " -W and -C are applied to domains listed on the queues - both FROM and TO. (sendmail)\n"; |
661 | print " -W and -C are applied message not yet preproccessed. (qmail)\n"; | 661 | print " -W and -C are applied message not yet preproccessed. (qmail)\n"; |
662 | print " This plugin tries to autodetect which mailserver you are running,\n"; | ||
663 | print " you can override the autodetection with -M.\n"; | ||
662 | print " This plugin uses the system mailq command (sendmail) or qmail-stat (qmail)\n"; | 664 | print " This plugin uses the system mailq command (sendmail) or qmail-stat (qmail)\n"; |
663 | print " to look at the queues. Mailq can usually only be accessed by root or \n"; | 665 | print " to look at the queues. Mailq can usually only be accessed by root or \n"; |
664 | print " a TrustedUser. You will have to set appropriate permissions for the plugin to work.\n"; | 666 | print " a TrustedUser. You will have to set appropriate permissions for the plugin to work.\n"; |