From f14ae4b99a9835edf6aa3c39c2949cdd056dcee2 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 27 Feb 2014 19:06:56 +0100 Subject: check_mailq: document autodetection in the usage output --- plugins-scripts/check_mailq.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins-scripts/check_mailq.pl') 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 () { print "-W (--Warning) = Min. number of messages for same domain in queue to generate warning\n"; print "-C (--Critical) = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n"; print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n"; - print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = sendmail)\n"; + print "-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)\n"; print "-h (--help)\n"; print "-V (--version)\n"; print "-v (--verbose) = debugging output\n"; @@ -659,6 +659,8 @@ sub print_help () { print "Note: -w and -c are required arguments. -W and -C are optional.\n"; print " -W and -C are applied to domains listed on the queues - both FROM and TO. (sendmail)\n"; print " -W and -C are applied message not yet preproccessed. (qmail)\n"; + print " This plugin tries to autodetect which mailserver you are running,\n"; + print " you can override the autodetection with -M.\n"; print " This plugin uses the system mailq command (sendmail) or qmail-stat (qmail)\n"; print " to look at the queues. Mailq can usually only be accessed by root or \n"; print " a TrustedUser. You will have to set appropriate permissions for the plugin to work.\n"; -- cgit v1.2.3