Xymon Mailing List Archive search

Testing alert scripts

list Ralph Mitchell
Sat, 9 Dec 2017 16:59:21 -0500
Message-Id: <CAAEjoCX9boK4ZqoVWGWnq+8LA0LQ=-kLkm7iq=user-56811fcb5a5a@xymon.invalid>

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 <user-fc632e705d24@xymon.invalid> 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=