Hi All,
I am testing nagiosxi snmptrap sender function to send notification to a fault management system. I have tested using snmp version 1 and 2c and it is forwarding the message. When i switch to snmp version 3 it seems that it is not processing the notification. It does not matter which security level I selected. Please advise.
snmptrap sender v3
Re: snmptrap sender v3
What version of XI is this and what version of the snmp trap sender component is this?
Newer versions of the component will have the "enable debug logging" option which, when enabled, will write to /usr/local/nagiosxi/var/components/snmptrapsender.log and show you you the full command that is being run to send a trap. Use this to find the full command and try to run it directly on the XI command line to see if it runs or provides more information as to why it would be failing.
If you do not have this option, please provide a screenshot of the snmp trap sender settings you are using for v3 traps.
Newer versions of the component will have the "enable debug logging" option which, when enabled, will write to /usr/local/nagiosxi/var/components/snmptrapsender.log and show you you the full command that is being run to send a trap. Use this to find the full command and try to run it directly on the XI command line to see if it runs or provides more information as to why it would be failing.
If you do not have this option, please provide a screenshot of the snmp trap sender settings you are using for v3 traps.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
faizaldigi
- Posts: 2
- Joined: Mon Sep 07, 2020 4:36 pm
Re: snmptrap sender v3
Hi,
Sorry for the late reply. Im using Nagios XI version: 5.7.3 on Centos 7. I have found out the cause of the problem. After further testing i found out that host notifications works and take a look at snmptrapsender.inc.php file. I found out for the host notification (line 496) it only check for address string and for service notifications (line 568) it checks for host and community string. As snmp v3 does not have the community string it will skip processing the service notifications. I removed the community string check and it works.
Sorry for the late reply. Im using Nagios XI version: 5.7.3 on Centos 7. I have found out the cause of the problem. After further testing i found out that host notifications works and take a look at snmptrapsender.inc.php file. I found out for the host notification (line 496) it only check for address string and for service notifications (line 568) it checks for host and community string. As snmp v3 does not have the community string it will skip processing the service notifications. I removed the community string check and it works.
Re: snmptrap sender v3
Glad to hear!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.