icinga2
Run a command through sudo:
object CheckCommand "sudo_mailq" {
import "mailq"
command = [
"/usr/bin/sudo",
"/usr/lib/nagios/plugins/check_mailq"
]
}
Run a command through sudo:
object CheckCommand "sudo_mailq" {
import "mailq"
command = [
"/usr/bin/sudo",
"/usr/lib/nagios/plugins/check_mailq"
]
}