[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]

 

     Re: [snips-users] notifier problem recognising only "default"

On Thu, Sep 11, 2003 at 02:48:13PM +0000, Jan Zorz wrote:
> 
> Hi list.
> 
> I have a small, but quite annoying problem. If I run notifier.pl from crontab, 
> everything works fine and all entries in notifier-config are recognised and 
> mails are sent to appropriate adresses, depending on failed machine. 
> 
> If I run notifier.pl from snipslogd, only on default entry is sent 
> notofication, despite the fact, that I want it to be sent on host specific 
> addresses, written in notifier-config... 
> 
> Any tips or tricks?
> 
> Best regards, /jan.zorz

Hi Jan...

Personally, I use notifier in the crontab -- running it out of snipslogd
it will take input from stdin for the event in-question (so you only get
alerted when something goes up/down).

You might try tweaking the entry in snipslogd to cat the event log
through notifier or to just redirect stdin to /dev/null and then
reinvoke the notifier script on its own (ie. no stdin) -- HOWEVER, I do
not know if this works or is "supported," persay (ie. YMMV).

There may be further tips in the top of the script (notifier.pl) that
may be of use to you:

-- begin
#  [...]
# Run this script every 5-10 minutes from crontab. Adjust $crontime
# accordingly.
# You can also run this script from snipslogd, so that you get notified as
# soon as a device comes up or goes down. In this mode, it reads stdin for
# eventlog format data, and the time of the event is set to -1 sec. In
# this mode, it notifies for all the events read from stdin (i.e. all
# severities). e.g.
#  [...]
-- end

Hope this somehow helps...

Russell


-- 
Russell M. Van Tassell
russell at loosenut com

 "The streets are safe in Philadelphia, it's only the people who make
  them unsafe."                                     -- Mayor Frank Rizzo

Zyrion Traverse Network Monitoring & Network Management Software