I’m attempting to configure check_snmp commands for a host. I’ve defined a check in the commands and services configuration files and applied them to the host. After configuring, the plugin output on the web interface for this check is the following:
External command error: /usr/share/snmp/mibs/SONICWALL-FIREWALL-TRAP-MIB.MIB: Permission denied
/usr/share/snmp/mibs/SW-SMI.MIB: Permission denied
/usr/share/snmp/mibs/SNWL-COMMON-MIB.MIB: Permission denied
/usr/share/snmp/mibs/SONICWALL-FIREWALL-IP-STATISTICS-MIB.MIB: Permission denied
/usr/share/snmp/mibs/SONICWALL-SMI.MIB: Permission denied
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.2.6.257.1.3.2.1.4.0
The OID in question shows up just fine when running an snmpwalk for the host on my icinga server. I have the associated MIBs installed on the server as well.
The check command is defined in my commands.conf file as such:
object CheckCommand “PS2-Status” {
import “plugin-check-command”
command = [ PluginDir + “/check_snmp” ]
arguments = {
“-H” = “$address$”
“-C” = “$community$”
“-o” = “.1.3.6.1.4.1.2.6.257.1.3.2.1.4.0”
“-w” = “3”
}
vars.community = “$community$”
}
The service for this command is defined in my services.conf file as such:
apply Service “Chassis-PS2-Status” {
import “generic-service”
check_command = “PS2-Status”
display_name = “Chassis Power Supply 2 Status”
assign where host.name == “Dell-EMC-ML3-TapeLibrary”
}
What could be causing this error and how do I resolve it?