Page 1 of 1

Run arbitrary scripts/commands from web UI

Posted: Thu Aug 18, 2016 2:52 am
by swhu
Hi, I have this idea/problem: I need to run scripts from the Nagios web UI; these scripts should be able to be anything, like turning on a KVM machine.

E.g. I have a dormant developer machine and I need to turn it on (ie virsh start dev-machine) or I have an Ansible playbook and I want to run it.

I know that Nagios is not really supposed to be used like this, but still, if there was a solution I'd be happy to hear it.

Re: Run arbitrary scripts/commands from web UI

Posted: Thu Aug 18, 2016 9:25 am
by tmcdonald
If you were using XI you could possibly use something like this:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

But in Core I don't believe there is anything that will do what you need from the UI. You can get somewhat close with event handlers and passive services, but that's quite the workaround.