ITL: Add sudo option for mailq CheckCommand

fixes #13435

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
Jean-Louis Dupond 2016-10-24 14:56:38 +02:00 committed by Michael Friedrich
parent 5f9032ec06
commit 8cb7a54b89
2 changed files with 5 additions and 0 deletions

View File

@ -719,6 +719,7 @@ mailq_domain_warning | **Optional.** Min. number of messages for same domain in
mailq_domain_critical | **Optional.** Min. number of messages for same domain in queue to generate critical alert ( W < C ).
mailq_timeout | **Optional.** Plugin timeout in seconds (default = 15).
mailq_servertype | **Optional.** [ sendmail \| qmail \| postfix \| exim \| nullmailer ] (default = autodetect).
mailq_sudo | **Optional.** Use sudo to execute the mailq command.
### <a id="plugin-check-command-mysql"></a> mysql

View File

@ -1989,6 +1989,10 @@ object CheckCommand "mailq" {
value = "$mailq_servertype$"
description = "[ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)"
}
"-s" = {
set_if = "$mailq_sudo$"
description = "Use sudo for mailq command"
}
}
}