Page 1 of 1
Display the event handler output to nagios display
Posted: Mon Sep 11, 2017 7:37 am
by padu_3891
Hi Team,
Please let me nkow the feasibility to display the event handler output to the service front end display so that user can view the action of the event handler completd or now .
Re: Display the event handler output to nagios display
Posted: Mon Sep 11, 2017 8:51 am
by mcapra
There's nothing on the front-end of Nagios Core for tracking the "progress" of event handlers, but you could set up a dummy
passive check then update it's status in various stages of your event handler using the
external commands file. Specifically, commands like
PROCESS_HOST_CHECK_RESULT and
PROCESS_SERVICE_CHECK_RESULT could be used to update this "dummy" checks status at various stages of your event handler's execution. Say your event handler has 4 stages:
- Starting event handler
- Restarting service
- Checking service status
- Finished at 09/11/2017
You could update this "dummy" check's status for each of those stages.
A full list of all available external commands:
https://old.nagios.org/developerinfo/ex ... ndlist.php
Re: Display the event handler output to nagios display
Posted: Mon Sep 11, 2017 4:02 pm
by dwhitfield
Thanks for the assist
@mcapra!