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
custom Host Commands
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: custom Host Commands
No, this is not available through the WebUI, only through adding the command to a configuration file.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
This is available in the Web UI of Nagios XI
Re: custom Host Commands
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...
This is the only feature Im missing. for now...
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: custom Host Commands
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
https://github.com/NagiosEnterprises/nagioscore
But it is the cfg files that specify what commands are run