[mrtg] Re: threshold syslog

Barry Irwin bvi-mrtg-list at rucus.ru.ac.za
Wed Aug 9 18:52:17 MEST 2000

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 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

More information about the mrtg mailing list