[mrtg] Hack for "did not eval into defined data" messages

David Landgren david at landgren.net
Mon May 17 15:10:36 MEST 2004


Hello list,

I recently upgraded to 2.10.13 (on FreeBSD 5.2 RELEASE) and noticed a 
flurry of "did not eval into defined data" messages, and of course my 
graphs were not being updated.

I looked at what was happening by adding a print here and there, and I 
get the feeling that there is something not quite right with the code 
that has been introduced to deal with IP6 addresses. Sorry, but right 
now I don't have time to investigate this in more detail.

Anyway, the closest I could get to pinpointing the problem in shortest 
amount of time is in the snmpopen function in SNMP_util.pm, there's the 
line:

   $v4onlystr = "" unless defined $v4onlystr;

When I ran with EnableIPv6 set to yes or no, or commented out, I had 
troubles acquiring data. When I changed the above line to

   $v4onlystr = ""; # unless defined $v4onlystr;

I.e. always set the string to empty, all of sudden I'm once again 
getting values back, with no timeouts at all.

Hope this helps,
David Landgren

-- 
Commercial OS breeds commerce, whereas free OS breeds freedom,
the only thing more dangerous and confusing than commerce.
                   -- Michael R. Jinks, redhat-list, circa 1997

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