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.
SNMP - Please help!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: SNMP - Please help!
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 ?
Did you restart snmptt after adjusting /etc/snmp/snmptt.conf ?
Re: SNMP - Please help!
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.
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!
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: SNMP - Please help!
Excellent.