Page 1 of 1

Don't work new event handler

Posted: Mon Mar 16, 2020 6:24 am
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.

Re: Don't work new event handler

Posted: Mon Mar 16, 2020 10:34 am
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!