[mrtg] Threshold Program Help

Naman Latif naman.latif at inamed.com
Sat May 24 03:16:08 MEST 2003

I have a perl script that I want to run, when a certain Threshold Value
is reached. My Config file looks like

ThreshMaxI[sb-cr_13]: 60
ThreshMaxO[sb-cr_13]: 60

The script runs fine from Command line as "perl cr-bw.pl whatever 56

However through mrtg I get this error
Can't exec "/export/home/nlatif/scripts/cr-bw.pl": No such file or
directory at /usr/local/mrtg-2/bin/mrtg line 1468.
Can't exec "/export/home/nlatif/scripts/cr-bw.pl": No such file or
directory at /usr/local/mrtg-2/bin/mrtg line 1468.

Script is something like

open (SENDMAIL, "|/usr/lib/sendmail -oi -t") or die "die\n";
print SENDMAIL <<"EOF";
From: syslog\@xxx
To: aaa\@xxx
Subject: Cr-Sb BW Saturated 
Current Value for $objectname is $curthresh kbps.
close (sendmail);

Any help ?

\\ Naman

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