Page 1 of 1

SNMP - Please help!

Posted: Sat Mar 10, 2012 8:42 am
by aap
Hi,

I'm running Nagios XI 2.1 and currently having some problems with SNMP traps received by the Nagios Server. I have implemented SNMP using the Nagios document Integrating SNMP Traps. I currently can see all the traps generted in the /var/log/snmptt/snmptt.log file however I do not receive any notifications for these traps even though some of them are CRITICAL alerts.

I have adjusted serveral trap severities in the /etc/snmp/snmptt.conf file.

I appreciate anyone's assistance.

Thanks.

Re: SNMP - Please help!

Posted: Mon Mar 12, 2012 7:45 am
by scottwilkerson
Do these traps have the EXEC line listed for them in the /etc/snmp/snmptt.conf ?

Did you restart snmptt after adjusting /etc/snmp/snmptt.conf ?

Re: SNMP - Please help!

Posted: Mon Mar 12, 2012 9:27 am
by aap
Hi,

Thanks for your reply. I have double-checked and the traps all have the EXEC line - please see sample below..

EVENT itaAlertSystemUp .1.3.6.1.4.1.674.10900.1.0.1000 "Status Events" CRITICAL
FORMAT Server Battery Failure: $3
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Server Battery Failure: $3"
SDESC
System up message from IT Assistant. Sent when IT Assistant detects a node has come online.

I have also restarted the snmptt service and this has not rectified the issue.

On the Nagios XI server the status information for the host is "Waiting for trap..."

Is there anything I need to check on the /usr/local/bin/snmptraphandling.py file? The first line of that file reads..

#!/usr/bin/env python. Is this correct?

Thanks again.

Re: SNMP - Please help!

Posted: Mon Mar 12, 2012 10:56 am
by aap
Please mark this post as fixed.

I found the offending option in /etc/snmp/snmptt.ini -

strip_domain was set to 1 so was stripping the FQDN. Now working ok.

Thanks for your help.

Re: SNMP - Please help!

Posted: Mon Mar 12, 2012 11:38 am
by scottwilkerson
Excellent.