[Xymon] Generating alerts by non-xymon shell scripts

deepak deore deepakdeore2004 at gmail.com
Tue Sep 23 05:34:10 CEST 2014


Do we need to source xymonclient.cfg into normal shell scripts so that $BB
$BBDISP $MACHINE etc. variables will work?

On Mon, Sep 22, 2014 at 4:23 PM, Novosielski, Ryan <novosirj at ca.rutgers.edu>
wrote:

> 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).
>
> --
> ____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
> || \\UTGERS      |---------------------*O*---------------------
> ||_// Biomedical | Ryan Novosielski - Senior Technologist
> || \\ and Health | novosirj at rutgers.edu- 973/972.0922 (2x0922)
> ||  \\  Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark
>     `'
>
> On Sep 22, 2014, at 18:05, deepak deore <deepakdeore2004 at gmail.com> wrote:
>
> Hi,
>
> I have one shell script which generates apache allow,deny host file
> weekly, tests the syntaxt by "apachectl -t", sends email if syntax errors.
>
> If no syntax errors then push the file and to apache graceful restart and
> then send success email.
>
> 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.
>
> 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.
>
> Thanks,
> Deepak
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140922/a8ac6eb8/attachment.html>


More information about the Xymon mailing list