Don't work new event handler

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
parisa
Posts: 62
Joined: Tue Sep 25, 2018 3:18 am

Don't work new event handler

Post by parisa »

Hello
I have around 1500 hosts and the hosts have around 20-30 service ( based on host type), the services are passive (SNMP Trap is used), the services have event- handler to run a script for process of the service after receiving a trap.
I have no problem about the event-handlers, but I wanted to set an event-handler for a new service but the event handler was not run, I don't know why?
1) I defined related command
2) I defined related service and I activated event-handler for it and selected related command for it
3) Now the service state is changed when trap is received

- but the scrip that has been defined in command is not run. ( I created debug log for it)
- the script works correctly in another place
- the permission of files is correct


are there any limitation about it?

I would be grateful if you could help me in this filed.
You do not have the required permissions to view the files attached to this post.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Don't work new event handler

Post by jdunitz »

There are a few things that would help us to troubleshoot this issue:

1) can you run your TRS_port_exc_traffic_2.1.sh script from the command line and show me the ouptut?
2) can you post the script, too?
3) In addition to those, can you tail the /usr/local/nagiosxi/var/eventman.log and /usr/local/nagiosxi/var/event_handler.log logs while you try to run the script, so we can see if anything happens on the XI side?

Thanks!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked