[mrtg] Threshold Errors - No Response Use of uninitialized value in system at /home/manage/mrtg/mrtg line 1518.

Martin Rheumer martinr at hotkey.net.au
Wed Jul 16 00:26:23 MEST 2003


Sorry for posting this again, I really think this is a bug with mrtg
though.

system @exec if defined $$rcfg{'threshprog'.$dir}{$router};

I was guessing this is something thats not defined in my config,
but alas I have the Threshdir, ThreshProg etc all set.

Anyone ?




Have been using thresholds quite extensively, but have had to keep with
mrtg 2.9.25 because of an error that has crept in from that version.
When a threshold is triggered ( In this example Ethernet Traffic )
mrtg responds with a
Use of uninitialized value in system at /home/manage/mrtg/mrtg line 1518.
This is with mrtg 2.10.pre3 at the minute.

The Config is as follows.

WorkDir: /home/manage/public_html/mrtg
ThreshDir: /tmp
IconDir: /mrtg/gifs/

PathAdd: /home/manage/mrtg/bin/
LibAdd: /home/manage/mrtg/lib/
LogFormat: rrdtool

XSize[_]: 600

Target[localhost.eth0]: 2:public at localhost
MaxBytes[localhost.eth0]: 1250000
Options[localhost.eth0]: growright, bits
Title[localhost.eth0]: Ethernet Traffic - eth0
ThreshMaxI[localhost.eth0]: 200000
ThreshProgI[localhost.eth0]: /home/manage/mrtg/bin_thresh/new_thresh.pl
ThreshProgOKI[localhost.eth0]: /home/manage/mrtg/bin_thresh/new_threshok.pl
SetEnv[localhost.eth0]: CFG_NAME="loadavg"
                                TYPE="ETH0"
PageTop[localhost.eth0]: <H1>Ethernet Traffic - eth0</H1>
 <TABLE>
   <TR><TD>System:</TD><TD>localhost</TD></TR>
   <TR><TD>Interface:</TD><TD>Ethernet (eth0)</TD></TR>
   <TR><TD>Max Memory:</TD><TD>100 MBits/s (ethernet)</TD></TR>
  </TABLE>

The new_thresh is quite an extensive file so I wont post. It uses the
environment
variables to email various people on different config segments. ie
TYPE="ETH0"
comes to me as I am network. but TYPE="LOAD" goes to the Web admin etc.
The ThreshDir is just /tmp as every user is allowed to write files there.
( One of the fixes was to make sure the Threshdir was writable ).

Any ideas ?

Thanks in Advance.
Martin

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