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

[Bigsister-general] Pager script


Just wondering if someone can post a sample pager script and the line in bb_event_generator.cfg that trigger the script.
It is just not working for me. I can see the script being call in the messages file, but it wouldn't do anything. The script work as expected  if I invoke it from the command line.

# /var/log/messages
Mar 20 15:29:27 ihsbs01 bsmon: sending page for smtp01.msgs with severity 50 via /usr/local/sbin/page_bmc to alarm: mail loop

# adm/bb_event_generator.cfg
*.*     pager=/usr/local/sbin/page_bmc delay=0 repeat=5

# cat /usr/local/sbin/page_bmc
#!/usr/bin/perl
open (LOG, ">>/tmp/bmc.log");
print LOG "Start here\n";
close (LOG);

Patrick Woo

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.