<div dir="ltr">Thanks, Ralph.  I had thought about redirecting to a separate file.  Of course, right after I sent this, I found the alert.log file (I was focusing on notifications.log).  I had hoped that there was a way to run the alert similar to how one would test a custom script.  I finally found what I needed to get it working.<div><br></div><div>=G=</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 9, 2017 at 4:59 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@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">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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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="m_-2868838466773670929HOEnZb"><font color="#888888"><div><br></div><div>=G=</div><div><br></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman<wbr>/listinfo/xymon</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>