Those telnet commands is the equivalent of you opening up Outlook/Thunderbird and writing a message, then clicking send/receive.  The message was stored in queue and now sendmail is trying to get it out to its destination.  Try looking at your mail logs and seeing if it is having some sort of problems.
<br><br>Since the message did not go through when you issued those telnet commands, you need to fix your mail server before trying alerts!<br><br>Josh<br><br><div><span class="gmail_quote">On 11/7/07, <b class="gmail_sendername">
Paul Ehrenreich</b> <<a href="mailto:paulehr@gmail.com">paulehr@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ooo ok, I thought the test actually would trigger the email to go out.<br>If that is the case then I'll force a failure and see if the email<br>gets generated.<br><br>Thanks for the help!<br><br><br><br>On 11/7/07, Gary Baluha <
<a href="mailto:gumby3203@gmail.com">gumby3203@gmail.com</a>> wrote:<br>> On 11/7/07, Paul Ehrenreich <<a href="mailto:paulehr@gmail.com">paulehr@gmail.com</a>> wrote:<br>> ><br>> > Hi everyone,<br>
> ><br>> > Long time listener, first time caller (or maybe second time ;) ). I seem<br>> > to be having a weird issue with hobbit not sending out email alerts. I<br>> have<br>> > the following rules set up (emails changed to protect the innocent). I did
<br>> > have macros setup for this and I thought it was part of the problem, but<br>> it<br>> > was not.<br>> ><br>> > PAGE=oracle<br>> >         MAIL <a href="mailto:email1@test.com">email1@test.com
</a>  SERVICE=conn,oracle,disk COLOR=red<br>> > REPEAT=15m RECOVERED<br>> >         MAIL <a href="mailto:email2@test.com">email2@test.com</a> SERVICE=conn,oracle,disk COLOR=red REPEAT=15m<br>> > RECOVERED
<br>><br>><br>> Looks okay.  This won't fix the problem, but you can shorten the individual<br>> MAIL lines by removing "RECOVERED" and adding it to the end of<br>> "PAGE=oracle".  Same with "SERVICE" and "COLOR"
<br>><br>> "REPEAT=15m" will have to be on each MAIL line.<br>><br>> You can also do "MAIL <a href="mailto:email1@test.com">email1@test.com</a>,<a href="mailto:email2@test.com">email2@test.com</a>
".<br>><br>> So in the end, you get:<br>> PAGE=oracle SERVICE=conn,oracle,disk RECOVERED<br>>      MAIL <a href="mailto:email1@test.com">email1@test.com</a>,<a href="mailto:email2@test.com">email2@test.com
</a> REPEAT=15m<br>><br>>  I sent out a test alert using bbcmd hobbitd_alerts --test atgtier2app1<br>> > oracle which is a host on  my oracle page  and it shows that the rules<br>> match<br>> > and that it sends on the emails
<br>> ><br>> > 2007-11-07 15:42:52 Using default environment file<br>> > /usr/lib/hobbit/server/etc/hobbitserver.cfg<br>> > 00030883 2007-11-07 15:42:52 send_alert atgtier2app1:oracle state Paging<br>
> > 00030883 2007-11-07 15:42:52 Matching host:service:page<br>> > 'atgtier2app1:oracle:oracle' against rule line 131<br>> > 00030883 2007-11-07 15:42:52 *** Match with 'PAGE=oracle' ***<br>
> > 00030883 2007-11-07 15:42:52 Matching host:service:page<br>> > 'atgtier2app1:oracle:oracle' against rule line 132<br>> > 00030883 2007-11-07 15:42:52 *** Match with 'MAIL <a href="mailto:email1@test.com">
email1@test.com</a><br>> > SERVICE=conn,oracle,disk COLOR=red REPEAT=15m RECOVERED' ***<br>> > 00030883 2007-11-07 15:42:52 Mail alert with command 'mailx -s "Hobbit<br>> > [12345] atgtier2app1:oracle CRITICAL (RED)" 
<a href="mailto:email1@test.com">email1@test.com</a>'<br>> > 00030883 2007-11-07 15:42:52 Matching host:service:page<br>> > 'atgtier2app1:oracle:oracle' against rule line 133<br>> > 00030883 2007-11-07 15:42:52 *** Match with 'MAIL
<br>> email2@test.comSERVICE=conn,oracle,disk COLOR=red REPEAT=15m RECOVERED' ***<br>> > 00030883 2007-11-07 15:42:52 Mail alert with command 'mailx -s "Hobbit<br>> > [12345] atgtier2app1:oracle CRITICAL (RED)" 
<a href="mailto:email2@test.com">email2@test.com</a>'<br>> ><br>> ><br>> > I verified that my server can send mail out by sending a test message<br>> > using mailx to myself and I did receive it. I even took my troubleshooting
<br>> a<br>> > step further and ran tcpdump on the network interface looking for anything<br>> > going to the remote mail server and saw SMTP traffic when i sent my test<br>> > message, but not my hobbitd_alert --test message. At this point I am
<br>> > scratching my head. Is there is anything in hobbit to debug why messages<br>> are<br>> > not being sent out? I tried looking at some of the hobbit and postfix<br>> logs,<br>> > but nothing really indicated any problems.
<br>><br>><br>> "hobbitd_alert --test" won't actually execute the alert rules.  It will just<br>> run through all of the alert rules and show you what matches and doesn't.<br>><br>> Check the 
notifications.log file in your Hobbit log directory.  If Hobbit is<br>> doing what it should, you will see messages that say emails were sent out.<br>> If you see this and you aren't getting the emails, then it wouldn't be a
<br>> problem with Hobbit that is causing it, and the problem is probably<br>> somewhere else.<br>><br>><br>> The hobbit server is running Linux (ubuntu 7.04 server) and hobbit 4.2.0<br>> ><br>> > Thanks for the help!
<br>> ><br>> > -Paul<br>> ><br>> ><br>> ><br>> ><br>><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk
</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Josh Luthman<br>Office: 937-552-2340<br>Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br><br>Those who don't understand UNIX are condemned to reinvent it, poorly.
<br>--- Henry Spencer