我的icinga
服务器上出现此错误,您能帮我解决一下吗?
答案 0 :(得分:1)
它主要意味着运行icinga的用户没有足够的权限来访问挂载
答案 1 :(得分:0)
您可以通过在命令中交换PluginDir
来在命令中使用sudo,如下所示:
object CheckCommand "ap_status" {
import "plugin-check-command"
command = [
"/usr/bin/sudo",
"/usr/lib/nagios/plugins/check_ap_status.pl"
]
arguments += {
"-C" = "$snmp_community$"
"-H" = "$address$"
"-O" = "$ap_status_ip_oid$"
"-c" = "$ap_status_crit$"
"-o" = "$ap_status_name_oid$"
"-w" = "$ap_status_warn$"
}
}
或者在director之内: