<div dir="ltr">Put something like:<div><br></div><div>   env > /tmp/alert_env.txt</div><div><br></div><div>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.</div><div><br></div><div>Ralph Mitchell</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 9, 2017 at 1:28 PM, Galen Johnson <span dir="ltr"><<a href="mailto:solitaryr@gmail.com" target="_blank">solitaryr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div><br></div><div>thanks</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>=G=</div><div><br></div></font></span></div>
<br>______________________________<wbr>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/<wbr>mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>