mirror of https://github.com/Icinga/icinga2.git
ITL: Add sudo option for mailq CheckCommand
fixes #13435 Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
parent
5f9032ec06
commit
8cb7a54b89
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue