[mrtg] Re: threshold syslog
Benjamin Madsen
ben.madsen at virtuallearn.com
Wed Aug 9 19:45:20 MEST 2000
Actually, since MRTG uses PERL, there is a package called Sys::Syslog that
is a very useful little package.
Ben Madsen
Virtual Learn, Inc.
-----Original Message-----
From: Barry Irwin [mailto:bvi-mrtg-list at rucus.ru.ac.za]
Sent: Wednesday, August 09, 2000 9:52 AM
To: slaporte at medis.ca
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: threshold syslog
On Wed 2000-08-09 (10:35), slaporte at medis.ca wrote:
> I need to send a syslog message to a remote computer on my network when a
> percentage of bandwith is in use. Has anybody found a way to do this with
the
> threshold commands. I have MRTG-2.8.12 on a linux REdhat 6.0 box.
my suggestion would be to write a C wrapper program which you have mrtg call
when thresholds are reached. look at the syslog(3) man page. Shouldnt be
too much trouble to have a simple C program that takes some parameters, and
then injects a message into syslog.
I've actually been considering writing something like this for a while.
Barry
--
--------------------------------------------------------------------------
Barry Irwin IRC: balin at zanet (#linux)
bvi at moria.org http://rucus.ru.ac.za/~bvi
Whois BI414 - PMPN8EZ - http://moria.org
--------------------------------------------------------------------------
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list