9 Dec
2017
9 Dec
'17
9:59 p.m.
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