Page 1 of 1

snmptrap sender v3

Posted: Tue Sep 08, 2020 5:28 pm
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.

Re: snmptrap sender v3

Posted: Wed Sep 09, 2020 4:12 pm
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.

Re: snmptrap sender v3

Posted: Sun Sep 13, 2020 10:07 am
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.

Re: snmptrap sender v3

Posted: Mon Sep 14, 2020 2:32 pm
by cdienger
Glad to hear!