snmptrap sender v3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
faizaldigi
Posts: 2
Joined: Mon Sep 07, 2020 4:36 pm

snmptrap sender v3

Post by faizaldigi »

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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: snmptrap sender v3

Post by cdienger »

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.
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

Post by faizaldigi »

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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: snmptrap sender v3

Post by cdienger »

Glad to hear!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked