Display the event handler output to nagios display

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
padu_3891
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Display the event handler output to nagios display

Post 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 .
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Display the event handler output to nagios display

Post 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
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Display the event handler output to nagios display

Post by dwhitfield »

Thanks for the assist @mcapra!
Locked