[hobbit] hobbit not sending on email alerts
Josh Luthman
josh at imaginenetworksllc.com
Wed Nov 7 22:22:54 CET 2007
Paul,
Can you use your SMTP agent to make mails manually?
I'm lazy and old fashioned, try telnet'ing on port 25 and follow this:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost ESMTP Sendmail 8.13.5.20060308/8.13.5/Debian-3ubuntu1.1;
Fri, 26 Jan 2007 19:15:30 -0500; (No UCE/UBE) logging access from:
localhost(OK)-localhost [127.0.0.1]
helo me
250 localhost Hello localhost [127.0.0.1], pleased to meet you
mail from: <>
250 2.1.0 <>... Sender ok
rcpt to: paulehr at gmail.com
250 2.1.5 paulehr at gmail.com... Recipient ok
data
354 Enter mail, end with "." on a line by itself
subject: test
hello
.
250 2.0.0 l0R0FUx5001380 Message accepted for delivery
quit
221 2.0.0 localhost closing connection
Connection closed by foreign host.
On 11/7/07, Paul Ehrenreich <paulehr at gmail.com> wrote:
>
> Hi everyone,
>
> Long time listener, first time caller (or maybe second time ;) ). I seem
> to be having a weird issue with hobbit not sending out email alerts. I have
> the following rules set up (emails changed to protect the innocent). I did
> have macros setup for this and I thought it was part of the problem, but it
> was not.
>
> PAGE=oracle
> MAIL email1 at test.com SERVICE=conn,oracle,disk COLOR=red
> REPEAT=15m RECOVERED
> MAIL email2 at test.com SERVICE=conn,oracle,disk COLOR=red REPEAT=15m
> RECOVERED
>
> I sent out a test alert using bbcmd hobbitd_alerts --test atgtier2app1
> oracle which is a host on my oracle page and it shows that the rules match
> and that it sends on the emails
>
> 2007-11-07 15:42:52 Using default environment file
> /usr/lib/hobbit/server/etc/hobbitserver.cfg
> 00030883 2007-11-07 15:42:52 send_alert atgtier2app1:oracle state Paging
> 00030883 2007-11-07 15:42:52 Matching host:service:page
> 'atgtier2app1:oracle:oracle' against rule line 131
> 00030883 2007-11-07 15:42:52 *** Match with 'PAGE=oracle' ***
> 00030883 2007-11-07 15:42:52 Matching host:service:page
> 'atgtier2app1:oracle:oracle' against rule line 132
> 00030883 2007-11-07 15:42:52 *** Match with 'MAIL email1 at test.com
> SERVICE=conn,oracle,disk COLOR=red REPEAT=15m RECOVERED' ***
> 00030883 2007-11-07 15:42:52 Mail alert with command 'mailx -s "Hobbit
> [12345] atgtier2app1:oracle CRITICAL (RED)" email1 at test.com'
> 00030883 2007-11-07 15:42:52 Matching host:service:page
> 'atgtier2app1:oracle:oracle' against rule line 133
> 00030883 2007-11-07 15:42:52 *** Match with 'MAIL email2 at test.comSERVICE=conn,oracle,disk COLOR=red REPEAT=15m RECOVERED' ***
> 00030883 2007-11-07 15:42:52 Mail alert with command 'mailx -s "Hobbit
> [12345] atgtier2app1:oracle CRITICAL (RED)" email2 at test.com'
>
>
> I verified that my server can send mail out by sending a test message
> using mailx to myself and I did receive it. I even took my troubleshooting a
> step further and ran tcpdump on the network interface looking for anything
> going to the remote mail server and saw SMTP traffic when i sent my test
> message, but not my hobbitd_alert --test message. At this point I am
> scratching my head. Is there is anything in hobbit to debug why messages are
> not being sent out? I tried looking at some of the hobbit and postfix logs,
> but nothing really indicated any problems.
>
> The hobbit server is running Linux (ubuntu 7.04 server) and hobbit 4.2.0
>
> Thanks for the help!
>
> -Paul
>
>
>
>
--
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20071107/28eea171/attachment.html>
More information about the Xymon
mailing list