Service Check Using SNMPv3
Posted: Thu May 02, 2024 5:03 am
I've successfully managed to interogate our Sophos XG 230 firewall to get CPU Load information using snmpwalk from the Nagios XI server CLI. However when configured and run, the service within Nagios XI produces the following error:
No valid data returned (No Such Instance currently exists at this OID)
The snmpwalk command used is:
snmpwalk -v3 -l authPriv -u <snmp-user> -a MD5 -A 'MD5Pass' -x DES -X 'DESPass' <IPAddress> 1.3.6.1.2.1.25.3.3.1.2
Returning (2 CPU Firewall): HOST-RESOURCES-MIB::hrProcessorLoad.196608 = INTEGER: 19
HOST-RESOURCES-MIB::hrProcessorLoad.196609 = INTEGER: 20
In terms of the Nagios service configuration:
check_xi_service_snmp! -p 161 -o '1.3.6.1.2.1.25.3.3.1.2' -P 3 --seclevel=authPriv --secname=<snmp-user> --authproto=MD5 --authpasswd='MD5Pass' --privpasswd='DESPass' -x des -m SFOS-FIREWALL-MIB -w 80 -c 95
Can someone point me in the right direction in terms of why I'm getting the error within Nagios XI or is there already a plugin I can use that would return the correct data from the firewall?
TIA.
No valid data returned (No Such Instance currently exists at this OID)
The snmpwalk command used is:
snmpwalk -v3 -l authPriv -u <snmp-user> -a MD5 -A 'MD5Pass' -x DES -X 'DESPass' <IPAddress> 1.3.6.1.2.1.25.3.3.1.2
Returning (2 CPU Firewall): HOST-RESOURCES-MIB::hrProcessorLoad.196608 = INTEGER: 19
HOST-RESOURCES-MIB::hrProcessorLoad.196609 = INTEGER: 20
In terms of the Nagios service configuration:
check_xi_service_snmp! -p 161 -o '1.3.6.1.2.1.25.3.3.1.2' -P 3 --seclevel=authPriv --secname=<snmp-user> --authproto=MD5 --authpasswd='MD5Pass' --privpasswd='DESPass' -x des -m SFOS-FIREWALL-MIB -w 80 -c 95
Can someone point me in the right direction in terms of why I'm getting the error within Nagios XI or is there already a plugin I can use that would return the correct data from the firewall?
TIA.