[mrtg] Thresholds in 2.15

Martin Rheumer martinr at hotkey.net.au
Fri Dec 22 10:19:34 MET 2006


Peeps,

I just wondered if anyone else was seeing the weird errors
I get from Thresholds in 2.15.


If you have these lines 

ThreshMinI[wally]: 0
ThreshMaxI[wally]: 400
ThreshProgI[wally]: /home/martinr/manage/bin_thresh/new_thresh.pl
ThreshProgOKI[wally]: /home/martinr/manage/bin_thresh/new_threshok.pl

and not these 

ThreshMailSender: help at nohelp.org
ThreshMailAddress[_]: help at nohelp.org
ThreshMailServer: mail

Then you end up with these errors every time mrtg runs from cron ?

Use of uninitialized value in concatenation (.) or string at
/home/martinr/manage/mrtg line 1879.
Use of uninitialized value in concatenation (.) or string at
/home/martinr/manage/mrtg line 1879.
Use of uninitialized value in concatenation (.) or string at
/home/martinr/manage/mrtg line 1879.
Use of uninitialized value in concatenation (.) or string at
/home/martinr/manage/mrtg line 1879.
Use of uninitialized value in concatenation (.) or string at
/home/martinr/manage/mrtg line 1879.
Use of uninitialized value in concatenation (.) or string at
/home/martinr/manage/mrtg line 1879.
Use of uninitialized value in concatenation (.) or string at
/home/martinr/manage/mrtg line 1879.
Use of uninitialized value in concatenation (.) or string at
/home/martinr/manage/mrtg line 1879.





And also the check for the pagetop info could do with these lines 
( or a better way to do this.. Im no perl expert )

       $pagetop =~ s|<h1>.*?</h1>||;
       $pagetop =~ s|<H1>.*?</H1>||;
       $pagetop =~
s|\s*<tr>\s*<td>(.*?)</td>\s*<td>(.*?)</td>\s*</tr>\s*|$1 $2\n|g;
       $pagetop =~
s|\s*<TR>\s*<TD>(.*?)</TD>\s*<TD>(.*?)</TD>\s*</TR>\s*|$1 $2\n|g;

Cause a lot of my pagetop is years old and in caps !!




--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list