I have this error on my icinga
server, can you help me please to resolve it?
Asked
Active
Viewed 87 times
0

Cristik
- 30,989
- 25
- 91
- 127

mustafa-dev
- 21
- 1
- 1
- 6
2 Answers
1
Its mostly means that the user in which icinga is running as does not have enough privileges to access the mount

jabutee
- 36
- 3
0
You can use sudo in your command by swapping PluginDir
in the command like this:
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$"
}
}
Or in director like:

cflinspach
- 290
- 1
- 4
- 16