<div dir="ltr">Do we need to source xymonclient.cfg into normal shell scripts so that $BB $BBDISP $MACHINE etc. variables will work?</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 22, 2014 at 4:23 PM, Novosielski, Ryan <span dir="ltr"><<a href="mailto:novosirj@ca.rutgers.edu" target="_blank">novosirj@ca.rutgers.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Sure. All custom tests basically do this by sending the correct line of text over to the Xymon server. Take a look at one. You also probably want to send a status lifetime to keep the test from turning purple in between executions (otherwise by default, the message is stale at 30m). <br><br>--<br><span style="background-color:rgba(255,255,255,0)">____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*<br>|| \\UTGERS      |---------------------*O*---------------------<br>||_// Biomedical | Ryan Novosielski - Senior Technologist<br>|| \\ and Health | <a href="mailto:novosirj@rutgers.edu" target="_blank">novosirj@rutgers.edu</a>- 973/972.0922 (2x0922)<br>||  \\  Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark<br>    `'</span></div><div><div class="h5"><div><br>On Sep 22, 2014, at 18:05, deepak deore <<a href="mailto:deepakdeore2004@gmail.com" target="_blank">deepakdeore2004@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi,<div><br></div><div>I have one shell script which generates apache allow,deny host file weekly, tests the syntaxt by "apachectl -t", sends email if syntax errors.</div><div><br></div><div>If no syntax errors then push the file and to apache graceful restart and then send success email.</div><div><br></div><div>Is there a way I can generate xymon alert instead of sending emails. Upon success xymon status will be green and failure will generate red/ yellow.</div><div><br></div><div>I can do this by xymon scripts but wanted to check if there is simple way to generate xymon alerts based on normal shell scripts which will avoid emails and everything would be centralized to xymon.</div><div><br></div><div>Thanks,</div><div>Deepak</div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Xymon mailing list</span><br><span><a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a></span><br><span><a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a></span><br></div></blockquote></div></blockquote></div><br></div>