Re: Status not changed for SNMP monitor
Posted: Wed Oct 10, 2018 8:39 pm
Basically I have like close to 40 OID for this device in the snmptt.conf file, so I am looking to configure a single Service Check in Nagios XI for eg. the 2 OID I shared previously.
Does that mean I should change the name of the service check in the EXEC to the following:
EXEC /usr/local/bin/snmptraphandling.py "$r" "System Config SNMP" "$s" "$@" "$-*" "$N $s - System configuration reload resulted in unexpected errors or warnings which $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "System Config SNMP" "$s" "$@" "$-*" "$N $s - System configuration reloaded successfully. $*"
How should the Nagios XI side be configured to listen out for these 2 specific traps instead of all traps sent from the remote host?
I currently use the xiwizard_snmptrap_service template on the remote host and have the description as "SNMP Traps", would configuring a seperate service check with description "System Config SNMP" work?
Does that mean I should change the name of the service check in the EXEC to the following:
EXEC /usr/local/bin/snmptraphandling.py "$r" "System Config SNMP" "$s" "$@" "$-*" "$N $s - System configuration reload resulted in unexpected errors or warnings which $*"
EXEC /usr/local/bin/snmptraphandling.py "$r" "System Config SNMP" "$s" "$@" "$-*" "$N $s - System configuration reloaded successfully. $*"
How should the Nagios XI side be configured to listen out for these 2 specific traps instead of all traps sent from the remote host?
I currently use the xiwizard_snmptrap_service template on the remote host and have the description as "SNMP Traps", would configuring a seperate service check with description "System Config SNMP" work?