Nagiosxi trap processing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vretic
Posts: 9
Joined: Wed Jul 01, 2020 8:12 am

Nagiosxi trap processing

Post 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
You do not have the required permissions to view the files attached to this post.
danderson

Re: Nagiosxi trap processing

Post 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?
Jacobjsdhfg
Posts: 9
Joined: Tue Nov 07, 2023 1:57 am

Re: Nagiosxi trap processing

Post 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
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: Nagiosxi trap processing

Post 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.
vretic
Posts: 9
Joined: Wed Jul 01, 2020 8:12 am

Re: Nagiosxi trap processing

Post 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
You do not have the required permissions to view the files attached to this post.
vretic
Posts: 9
Joined: Wed Jul 01, 2020 8:12 am

Re: Nagiosxi trap processing

Post 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
You do not have the required permissions to view the files attached to this post.
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: Nagiosxi trap processing

Post 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.
vretic
Posts: 9
Joined: Wed Jul 01, 2020 8:12 am

Re: Nagiosxi trap processing

Post 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....
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: Nagiosxi trap processing

Post 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?
vretic
Posts: 9
Joined: Wed Jul 01, 2020 8:12 am

Re: Nagiosxi trap processing

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