[Xymon] Testing alert scripts
Ralph Mitchell
ralphmitchell at gmail.com
Sat Dec 9 22:59:21 CET 2017
Put something like:
env > /tmp/alert_env.txt
at the top of the script, then trigger it in Xymon and see how the result
differs from your normal environment. It may not be inheriting the same
$PATH or other environment variables that it gets when you run it by hand.
Ralph Mitchell
On Sat, Dec 9, 2017 at 1:28 PM, Galen Johnson <solitaryr at gmail.com> wrote:
> What's the best way to test an alert script? It runs as expected when I
> run it by hand and feed it the same argument that it should get from Xymon
> but when called by Xymon, it doesn't seem to work properly and I'm not able
> to get any debug out in the logs.
>
> thanks
>
> =G=
>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20171209/b2de2036/attachment.html>
More information about the Xymon
mailing list