如何解决icinga2上的服务问题?

时间:2017-12-11 10:48:47

标签: icinga2

我的icinga服务器上出现此错误,您能帮我解决一下吗? enter image description here

2 个答案:

答案 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之内:

https://imgur.com/KWAAYry