Xymon Mailing List Archive search

Generating alerts by non-xymon shell scripts

list Deepak Deore
Mon, 22 Sep 2014 20:34:10 -0700
Message-Id: <CABpN7iS1E2daPKR=user-6a17b6ca34f9@xymon.invalid>

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 <user-6e4f7a3bb37f@xymon.invalid>
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 | user-46c89e614701@xymon.invalid- 973/972.0922 (2x0922)
||  \\  Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark
    `'

On Sep 22, 2014, at 18:05, deepak deore <user-7b03b2a1ee70@xymon.invalid> 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