custom Host Commands

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
lumirl
Posts: 3
Joined: Tue Mar 27, 2018 3:32 pm

custom Host Commands

Post by lumirl »

Hello,
is there a way how to add a custom command to the webinterface under the host commands?
There is locate host on the map, Disable active checks of this host etc. I need to add there a command.
I have it defined as a bash command and it works fine as event handler - its actually rebooting a machine through an resetter.
I would like to reset the machine via this webinterface.
Any ideas?
Thanks,
Lumir
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: custom Host Commands

Post by scottwilkerson »

lumirl wrote:Hello,
is there a way how to add a custom command to the webinterface under the host commands?
There is locate host on the map, Disable active checks of this host etc. I need to add there a command.
I have it defined as a bash command and it works fine as event handler - its actually rebooting a machine through an resetter.
I would like to reset the machine via this webinterface.
Any ideas?
Thanks,
Lumir
No, this is not available through the WebUI, only through adding the command to a configuration file.

This is available in the Web UI of Nagios XI
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
lumirl
Posts: 3
Joined: Tue Mar 27, 2018 3:32 pm

Re: custom Host Commands

Post by lumirl »

Maybe I can edit source files. What component is calling scripts in libexec or defined commands?
This is the only feature Im missing. for now... :)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: custom Host Commands

Post by scottwilkerson »

That is the job of the Nagios Core engine.
https://github.com/NagiosEnterprises/nagioscore

But it is the cfg files that specify what commands are run
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked