[mrtg] Re: FreeBSD Ports: MRTG + Nagios + Net-SNMP + p5-*

Brian A. Seklecki lavalamp at spiritual-machines.org
Wed Mar 8 04:48:53 MET 2006


On Tue, 7 Mar 2006, Dmitry Sivachenko wrote:

> I observed the same problem on my FreeBSD box.
>
> Recently I setup a fresh box with Solaris 10 (it has perl 5.8.4)
> and mrtg-2.10.15 from sunfreeware.
>
> The problem still there...
>
> Thus I suspect it is not FreeBSD-related problem.

Yea actually my assesment was entirely wrong on Monday (go figure, i'm not 
drinking coffee recently).  I had the malfunctioning entries commented 
out during my brief testing period.

here's the deal:

$ snmpget -v2c localhost hrProcessorLoad.768
HOST-RESOURCES-MIB::hrProcessorLoad.768 = INTEGER: 1

But if I call it from MRTG:

Target[system.cpualt]: 
hrProcessorLoad.768&hrProcessorLoad.768:blah at 127.0.0.1

I get:

$ sudo -u mrtg /usr/local/bin/mrtg 
/usr/local/etc/mrtg/mrtg-ravage.admin.conf
Unknown SNMP var hrProcessorLoad.768
  at /usr/local/bin/mrtg line 1980
Unknown SNMP var hrProcessorLoad.768
  at /usr/local/bin/mrtg line 1980
WARNING: Expected a number but got '3 days, 12:01:36'
WARNING: Expected a number but got 'ravage'
ERROR: Target[skyhopper.cpualt][_IN_] ' $target->[1]{$mode} ' did not eval 
into defined data
ERROR: Target[skyhopper.cpualt][_OUT_] ' $target->[1]{$mode} ' did not 
eval into defined data


Which is completely different than if I just call MRTG with the wrong 
string.  So as you can see here, the Error is happening much much earlier 
than the actual SNMP get in the code.  Something really supid is going on.

~BAS


Unknown SNMP var hrProcessorLoad.768
  at /usr/local/bin/mrtg line 1980
Unknown SNMP var hrProcessorLoad.768
  at /usr/local/bin/mrtg line 1980
SNMP Error:
no response received
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
                   community: "blah"
                  request ID: 873584830
                 PDU bufsize: 8000 bytes
                     timeout: 2s
                     retries: 5
                     backoff: 1)
  at /usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 490
SNMPGET Problem for hrProcessorLoad.768 hrProcessorLoad.768 sysUptime 
sysName on blah at 127.0.0.1::::::v4only
  at /usr/local/bin/mrtg line 1980
WARNING: skipping because at least the query for hrProcessorLoad.768 on 
127.0.0.1 did not succeed
WARNING: no data for hrProcessorLoad&hrProcessorLoad:blah at 127.0.0.1. 
Skipping further queries for Host 127.0.0.1 in this round.
ERROR: Target[skyhopper.cpualt][_IN_] ' $target->[1]{$mode} ' did not eval 
into defined data
ERROR: Target[skyhopper.cpualt][_OUT_] ' $target->[1]{$mode} ' did not 
eval into defined data



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