Xymon Mailing List Archive search

hobbitd_alert command is not working ( maybe )

list Lars Ebeling
Mon, 23 Oct 2006 19:24:06 +0200
Message-Id: <000a01c6f6c8$0af04b50$user-3d687caac052@xymon.invalid>

When I changed user (to root) I got the same as you:

# ./hobbitd_alert --test leopg9 msgs

00017560 2006-10-23 19:22:00 send_alert leopg9:msgs state Paging

00017560 2006-10-23 19:22:00 Matching host:service:page 'leopg9:msgs:'
against r
ule line 115

00017560 2006-10-23 19:22:00 *** Match with 'HOST=leopg9' ***

00017560 2006-10-23 19:22:00 Matching host:service:page 'leopg9:msgs:'
against r
ule line 116

00017560 2006-10-23 19:22:00 *** Match with 'MAIL hobbit REPEAT=1h COLOR=red
REC
OVERED' ***

00017560 2006-10-23 19:22:00 Mail alert with command '/var/mail/root "Hobbit
[12
345] leopg9:msgs CRITICAL (RED)" hobbit'

-----Ursprungligt meddelande-----
Från: Michael A. Price [mailto:user-2a9e3c790857@xymon.invalid] Skickat: den 23 oktober 2006 19:05
Till: user-ae9b8668bcde@xymon.invalid
Ämne: Re: SV: SV: [hobbit] hobbitd_alert command is not working ( maybe )


I think your on to something here, I am looking around for the problem now :-)

thanx, michael


Lars Ebeling wrote:
When I run hobbitd_alert I get this:

$ ./hobbitd_alert --test leopg9 msgs

00016117 2006-10-23 19:00:20 send_alert leopg9:msgs state Paging

00016117 2006-10-23 19:00:20 Matching host:service:page 'leopg9:msgs:' > against r ule line 115

00016117 2006-10-23 19:00:20 *** Match with 'HOST=leopg9' ***

00016117 2006-10-23 19:00:20 Matching host:service:page 'leopg9:msgs:' > against r ule line 116

00016117 2006-10-23 19:00:20 *** Match with 'MAIL hobbit REPEAT=1h > COLOR=red REC OVERED' ***

00016117 2006-10-23 19:00:20 Mail alert with command 'mail -s "Hobbit > [12345] le opg9:msgs CRITICAL (RED)" hobbit'

-----Ursprungligt meddelande-----
Från: Michael A. Price [mailto:user-2a9e3c790857@xymon.invalid]
Skickat: den 23 oktober 2006 18:53
Till: user-ae9b8668bcde@xymon.invalid
Ämne: Re: SV: [hobbit] hobbitd_alert command is not working ( maybe )


Lars,

Mine is defined as the following.

MAILC="mail"                                   # Command used >> to send an
e-mail
 with no subject

MAIL="$MAILC -s"                                # Command >> used to send an
e-mail
 with a subject


If that was messed up, wouldnt it prevent my alerts not
working at all, >> because they work now. Its just I cant get them to work when >> I use the >> hobbitd_alert command.


thanx, michael


Lars Ebeling wrote:
Från: Michael A. Price [mailto:user-2a9e3c790857@xymon.invalid]
Skickat: den 23 oktober 2006 18:02
Till: user-ae9b8668bcde@xymon.invalid
Ämne: [hobbit] hobbitd_alert command is not working ( maybe )


Hello,

My hobbit-alert.cfg file has the following line in it:

HOST=*
        MAIL user-2a9e3c790857@xymon.invalid
Hi
00003217 2006-10-23 11:59:07 *** Match with 'HOST=*' *** 00003217 >>>> 2006-10-23 11:59:07 Mail alert with command '/var/spool/mail/hobbit >>>> "Hobbit [12345] v43mgt:conn
CRITICAL (RED)"
user-2a9e3c790857@xymon.invalid'
The command to send the mail look very odd. What have you
as MAILC=??
in hobbitserver.cfg? Should be like # For the hobbitd_alert module
MAILC="mailx"                                   # Command >>>       >> used to send an
e-mail
 with no subject
MAIL="$MAILC -s"                                # Command >>>       >> used to send an
e-mail
 with a subject

Lars