SNMP Trap Notifications not delivered
SNMP Trap Notifications not delivered
Hi,
We are running Nagios XI 2014R2.6 and are currently experiencing an issue - SNMP traps generated are not being delivered as notifications.
The trap messages appear in /var/log/snmptt/snmptt.log however no notifications are sent to contact groups for Critical, Warning or Informational messages. Also, these notifications are not displayed in the status information column for each host in Nagios.
snmpd (pid 30583) is running...
snmptt (pid 1417) is running...
I noticed that after a reboot the snmpd service did not start automatically, this was subsequently started.
Any assistance to resolve this issue is appreciated.
We are running Nagios XI 2014R2.6 and are currently experiencing an issue - SNMP traps generated are not being delivered as notifications.
The trap messages appear in /var/log/snmptt/snmptt.log however no notifications are sent to contact groups for Critical, Warning or Informational messages. Also, these notifications are not displayed in the status information column for each host in Nagios.
snmpd (pid 30583) is running...
snmptt (pid 1417) is running...
I noticed that after a reboot the snmpd service did not start automatically, this was subsequently started.
Any assistance to resolve this issue is appreciated.
Re: SNMP Trap Notifications not delivered
You would want to set snmptt/snmptrapd to start on boot:
If you look in your /etc/snmp/snmptt.conf at one of the traps, what does the EXEC line say?
If you want you can zip up your /etc/snmp directory and PM it to me.
Code: Select all
chkconfig snmptrapd on
chkconfig snmptt on
If you want you can zip up your /etc/snmp directory and PM it to me.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SNMP Trap Notifications not delivered
snmpd does not play a part in SNMP Traps.aap wrote:I noticed that after a reboot the snmpd service did not start automatically, this was subsequently started.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SNMP Trap Notifications not delivered
Thanks ssax,
PM sent.
PM sent.
Re: SNMP Trap Notifications not delivered
Received the files and placed in the shared support directory.
Edit your /etc/snmp/snmptrapd.conf and change:
To:
* Run command "which snmptthandler" to show you the proper location for the code below
Then:
Then is should work for you, let us know if it doesn't.
Edit your /etc/snmp/snmptrapd.conf and change:
Code: Select all
traphandle default /usr/local/sbin/snmptt* Run command "which snmptthandler" to show you the proper location for the code below
Code: Select all
traphandle default /usr/local/sbin/snmptthandlerCode: Select all
service snmptrapd restartRe: SNMP Trap Notifications not delivered
Hello,
Ran the command "which snmptthandler" and the output is
/usr/sbin/snmptthandler
Proceeded to amend the /etc/snmp/snmptrapd.conf and restart snmptrapd. However the notifications are still not coming through.
Your assistance is appreciated.
Ran the command "which snmptthandler" and the output is
/usr/sbin/snmptthandler
Proceeded to amend the /etc/snmp/snmptrapd.conf and restart snmptrapd. However the notifications are still not coming through.
Your assistance is appreciated.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SNMP Trap Notifications not delivered
Is there anything logged in /var/log/snmptt/snmptt.log or /var/log/snmptt/snmpttunknown.log when a trap is sent to the XI server?
When you stop the snmptt service, do traps spool in the /var/spool/snmptt/ directory?
When you stop the snmptt service, do traps spool in the /var/spool/snmptt/ directory?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SNMP Trap Notifications not delivered
Hi,
As I mentioned in my original post, yes, I can see the messages in /var/log/snmptt/snmptt.log. The issue is that the messages are not being transferred as notifications nor do they appear in the Nagios status information for SNMP traps.
As I mentioned in my original post, yes, I can see the messages in /var/log/snmptt/snmptt.log. The issue is that the messages are not being transferred as notifications nor do they appear in the Nagios status information for SNMP traps.
Re: SNMP Trap Notifications not delivered
Please post an example from your snmptt log for one that is not being sent into Nagios so that I can dig further.
Re: SNMP Trap Notifications not delivered
Hi,
Please see example below from the snmptt.log
Mon May 25 22:02:03 2015 enterprises.18494.2.0.1 CRITICAL "Status Events" lnaplnXXXX - The following event was generated via Alliance Access. Communications Server reports Host CREST;L is down
No notification was received for this alert neither was it displayed on the SNMP traps Status information for this host.
Please see example below from the snmptt.log
Mon May 25 22:02:03 2015 enterprises.18494.2.0.1 CRITICAL "Status Events" lnaplnXXXX - The following event was generated via Alliance Access. Communications Server reports Host CREST;L is down
No notification was received for this alert neither was it displayed on the SNMP traps Status information for this host.