[Xymon] Trigger a script from xymon webpage

J.C. Cleaver cleaver at terabithia.org
Wed Dec 16 16:27:35 CET 2015



On Tue, December 15, 2015 11:20 pm, Raunak Kothari wrote:
> Hi everyone,
>
> Let me explain what I am trying to do. Let's say we have some monitoring
> on
> our servers in xymon which can alert us when something goes wrong. The
> corrective action for such events is normally to have our support team
> restart some service or follow some remedial procedure, most of which
> could
> be automated.
> The issue many a time is the access into the system during non office
> hours. The support staff may not be able to access the system immediately
> and so would like to explore if there is any way to trigger any scripts
> etc
> from the xymon webpages. Sort of like clicking any buttons on the webpage
> could be enabled to trigger a customer script ? Is it possible to do this
> using xymon, do share if someone has any experience with this. Thanks.
>
> Regards,
> Raunak


Hi Raunak,

There's no direct, built-in functionality for executing arbitrary actions
against a host at this time. The closest I think you'd be able to come
with the default CGIs would be the "notify" message generated by enabling
and disabling a test, which could have a 'NOTICE' filter set in your
alerts.cfg file which executes an arbitrary script as a result. This was
intended as an arbitrary "send a message to the admin for this host/svc"
framework, but it could be used for any further processing you need for
it.

The problem is that this is inherently a one-way message -- there's no way
for a user to know the effect of their message or, indeed, if it was even
received.

If you already have a web-accessible method of performing actions, it
might be easier to simply integrate at the web layer by modifying the
default header and footer templates with actions calling out to other
destinations or, at worst, iframes.


HTH,
-jc




More information about the Xymon mailing list