Can't send host alerts via snmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Can't send host alerts via snmp

Post by andrewatmacys »

I am having a problem with sending host alerts via snmp traps, but it's sending service alerts just fine. Host alerts are enabled, but aren't showing up at all. Any help is welcome, and thank you in advance! I can PM cfg files if needed!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't send host alerts via snmp

Post by scottwilkerson »

Did you configure,
Admin -> Manage Components -> SNMP Trap Sender ?

Could you send a screenshot of that page.

Also, you should be able to run the following after forcing a host to go down and see the trap being sent to your configured trap host

Code: Select all

tail -f /usr/local/nagiosxi/var/eventman.log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Can't send host alerts via snmp

Post by andrewatmacys »

I will as soon as I am able, thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't send host alerts via snmp

Post by scottwilkerson »

andrewatmacys wrote:I will as soon as I am able, thanks.
sounds good, update us after. Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: Can't send host alerts via snmp

Post by andrewatmacys »

I've sent you a PM, please let me know if that's what you wanted. Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't send host alerts via snmp

Post by scottwilkerson »

andrewatmacys wrote:I've sent you a PM, please let me know if that's what you wanted. Thanks!
Responded, SNMP Trap Sender setup was missing port. By default that should be 162
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't send host alerts via snmp

Post by scottwilkerson »

This turned into a ticket and wanted to report the cause. Hosts were not sending traps but services were.

Upon further investigation the hosts on the server had the following set in their configurations

Code: Select all

event_handler_enabled     0
Once enabled user reported they were working correctly.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked