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

Re: [Bigsister-general] Pager setup right?


Hi Craig and all,

I've implemented the mods suggested, having (in bb_event_generator.cfg):

*.*     prio=40 down=red up=green delay=5 \
        check="$host.conn and ((not '$router') or $router.conn)" \
        norepeat=20 keep=1 \
        mail=FOO,suppressed \
        repeatprio=10 msgmax=60 \
        maxpermin=20
PAGER{ $mail eq 'FOO' }	pager=/usr/share/bigsister/bin/sendPersonal

The alarm raised and the email was sent (and received) ok.

The messages log looks like:

Apr 24 16:17:00 haiduk bsmon: raising alarm: haiduk.http |>&red
http://dev.mydomain.com/bs_checkfile.php FAI
Apr 24 16:17:00 haiduk bsmon: sending page for haiduk.http with severity 50
via /usr/lib/sendmail to FOO,suppressed: |>&red
http://dev.mydomain.com/bs_checkfile.php FAI

So it logged the same way, and the script was not run, since the log is
still empty.

Sooooo... Still clueless on why the script is not being executed when the
alarm is raised and the page sent.

Help... :P

Nico

-----Mensaje original-----
De: Craig Constantine [mailto:suppressed 
Enviado el: Martes, 24 de Abril de 2007 10:05 a.m.
Para: Nicolas Agnese
CC: suppressed
Asunto: Re: [Bigsister-general] Pager setup right?

--On April 23, 2007 6:32:31 PM -0300 Nicolas Agnese
<suppressed> wrote:

> Also, I check the messages log and it does´t have any error on the 
> file
> execution:
> Apr 23 17:19:24 haiduk bsmon: sending page for haiduk.http with 
> severity 50 via /usr/lib/sendmail to
> /etc/bigsister/sms/sendPersonal:down,sendmail:suppressed: 
> |>&red http://dev. <http://dev.mydomain.com/bs_checkfile.php>
> mydomain.com/bs_checkfile.php FAI
> Apr 23 17:46:38 haiduk bsmon: sending page for haiduk.http with 
> severity 50 via /usr/lib/sendmail to
> /etc/bigsister/sms/sendPersonal:down,sendmail:suppressed:
> |>&green http://dev. <http://dev.mydomain.com/bs_checkfile.php>
> mydomain.com/bs_checkfile.php O

did you get any help with this yet? (i don't recall seeing anyone respond.)

the above logs show the BS was using /usr/lib/sendmail to try to *email* to
both address...

<http://www.joerg.cc/html/bigsis/ch03s02.html>

the 'mail' equate is for listing email addresses the 'pager' equate is used
to specify a different delivery program (instead of the default sendmail)

I *think* you want to use:


mail=FOO,suppressed
PAGER{ $mail eq 'FOO' }  [tab]  pager=/etc/bigsister/sms/sendPersonal


so email goes via sendmail to 'suppressed' and your script is run
"to handle" (in BS's opinion) the email to "FOO".

I haven't used custom scripts though... just trying to help.
-c





Craig Constantine - suppressed
Black Box - www.blkbx.com
ph: 610.966.2699
fx: 610.966.2693



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.