Page 1 of 2

Nagiosxi trap processing

Posted: Tue Jul 30, 2024 5:08 am
by vretic
Hello,

I'm having an issue with trap processing.
I'm seing trap getting caught by snmptt but its not displayed in nagiosxi and no email are sent.
I attached a screenshot from snmptt.log file

Re: Nagiosxi trap processing

Posted: Tue Jul 30, 2024 11:23 am
by danderson
Thanks for reaching out @vretic,

Could you provide some more details about the issue you are describing? Which version of XI do you have? Which distro are you installed on? Are there any errors in the PHP/Apache logs?

Re: Nagiosxi trap processing

Posted: Tue Jul 30, 2024 10:00 pm
by Jacobjsdhfg
Review the Nagios XI log files (typically located in /var/log/nagios/) for any errors related to trap processing. This may provide insight into whether the traps are being received but not displayed. papa's games

Re: Nagiosxi trap processing

Posted: Wed Jul 31, 2024 6:53 pm
by kg2857
What is in the status of the trap service for the host? The trap says the state is normal so the trap service should be green and say something about a warmstart.

Re: Nagiosxi trap processing

Posted: Thu Aug 01, 2024 12:42 am
by vretic
Hi,

that is the strange thing.
If I compare it with other hosts (hosts that were allready in the system before the upgrade to 2024R1.1.5) the service was stuck on pending when I created it. I forced an immediate check which made the service turn green. Than there was no next check date so I reconfigured the service and created a check interval of 1min.
So the current status of the service is OK:Trap reset
service.PNG

Re: Nagiosxi trap processing

Posted: Thu Aug 01, 2024 1:09 am
by vretic
danderson wrote: Tue Jul 30, 2024 11:23 am Thanks for reaching out @vretic,

Could you provide some more details about the issue you are describing? Which version of XI do you have? Which distro are you installed on? Are there any errors in the PHP/Apache logs?
Hi,

I'm running nagios 2024R1.1.5 installed on RHEL8.
I checked the /usr/shared/nagiosxi/var/event_handler.log and found the following error, not sure if its related.
event_handler_log.PNG

Re: Nagiosxi trap processing

Posted: Thu Aug 01, 2024 1:49 am
by kg2857
Check under admin unconfigured objects since the trap isn't getting attached to the host. You may also want to see if the IP resolves to the hostname.

Re: Nagiosxi trap processing

Posted: Thu Aug 01, 2024 2:00 am
by vretic
kg2857 wrote: Thu Aug 01, 2024 1:49 am Check under admin unconfigured objects since the trap isn't getting attached to the host. You may also want to see if the IP resolves to the hostname.
Hi,

checked it and yes the service was in the unconfigured list, reconfigured it, now its gone from the unconfigured list but still no notification and I still get the same error in event_handler.log....

Re: Nagiosxi trap processing

Posted: Thu Aug 01, 2024 3:21 am
by kg2857
Time to generate a trap ans start from the beginning.
Another question is the trap service the same as the ones that are working?

Re: Nagiosxi trap processing

Posted: Thu Aug 01, 2024 4:09 am
by vretic
kg2857 wrote: Thu Aug 01, 2024 3:21 am Time to generate a trap ans start from the beginning.
Another question is the trap service the same as the ones that are working?
Hey,

yes the trap service is the same, I'm using the wizard....
I figured it out, I configured the host with host name ex. ups_locna.....
In the snmptt.log I can see the line received trap from ups_locna...
But in nagios.log there a corresponding line but with an ip address and off corse host not found as the host address is the hostname.
Is there a file where I have to bind hostname with ip address?
I did it in /etc/hosts with no difference.