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
Nagiosxi trap processing
Nagiosxi trap processing
You do not have the required permissions to view the files attached to this post.
-
danderson
Re: Nagiosxi trap processing
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?
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
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
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
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
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
You do not have the required permissions to view the files attached to this post.
Re: Nagiosxi trap processing
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.
You do not have the required permissions to view the files attached to this post.
Re: Nagiosxi trap processing
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
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
Time to generate a trap ans start from the beginning.
Another question is the trap service the same as the ones that are working?
Another question is the trap service the same as the ones that are working?
Re: Nagiosxi trap processing
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.