Run arbitrary scripts/commands from web UI

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
swhu
Posts: 1
Joined: Thu Aug 18, 2016 2:19 am

Run arbitrary scripts/commands from web UI

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Run arbitrary scripts/commands from web UI

Post 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.
Former Nagios employee
Locked