[mrtg] Re: threshold syslog

Barry Irwin bvi-mrtg-list at rucus.ru.ac.za
Thu Aug 10 15:33:22 MEST 2000

> On Wed 2000-08-09 (18:52), Barry Irwin wrote:
> > 
> > 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.
 Not sure what this application is called under linux, but on FreeBSD there
 is a util called logger(1) which can be used in shell scripts to log
 information via syslog.  So you could have a shell script to process the
 information received form the threshold, adn then use logger to log to

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