SNMP Trap sender issue
Posted: Thu Jul 11, 2019 12:20 pm
Hello Team,
We have seen some snmp trap data missing in servicenow. To investigate further we want to capture the SNMP trap data before sending to service now using below command defnition in /usr/local/nagios/etc/commands.cfg
Please let me know if anything missed out in below command definition as we are not able to capture the snmp trap data
define command{
command_name service_trap_command
command_line echo [ 'date' ] /usr/bin/snmptrap -v 2c -c public '' NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s "$HOSTNAME$" n nSvcDesc s "$SERVICEDESC$" nSvcStateID i "$SERVICESTATEID$" nSvcOutput s "$SERVICEOUTPUT$" >> /opt/snmptrap.log
}
We have seen some snmp trap data missing in servicenow. To investigate further we want to capture the SNMP trap data before sending to service now using below command defnition in /usr/local/nagios/etc/commands.cfg
Please let me know if anything missed out in below command definition as we are not able to capture the snmp trap data
define command{
command_name service_trap_command
command_line echo [ 'date' ] /usr/bin/snmptrap -v 2c -c public '' NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s "$HOSTNAME$" n nSvcDesc s "$SERVICEDESC$" nSvcStateID i "$SERVICESTATEID$" nSvcOutput s "$SERVICEOUTPUT$" >> /opt/snmptrap.log
}