Networking Forums

Networking Forums > Computer Networking > Linux Networking > Error :MRTG + SNMP

Reply
Thread Tools Display Modes

Error :MRTG + SNMP

 
 
NeCrOS
Guest
Posts: n/a

 
      02-26-2004, 05:31 PM
NET-SNMP version: 5.0.6

../mrtg /home/www/mrtg/mrtg.cfg

SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.2.1.2.2.1.16.1)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 2083050321
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 487
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on
public@localhost::::::v4only
at ./mrtg line 1835
ERROR: Target[eth0][_IN_] ' $target->[0]{$mode} ' did not eval into
defined data
ERROR: Target[eth0][_OUT_] ' $target->[0]{$mode} ' did not eval into
defined data



Fichero .cfg :

EnableIPv6: no
WorkDir:/home/www/mrtg
Options[_]: bits,growright

### INTERFICIE DE RED ###
Target[Eth0]: 1ublic@localhost
MaxBytes[Eth0]: 1000000000
Title[Eth0]: mec-router.rediris.es (mec-router.mec.es): Ethernet0
PageTop[Eth0]: <H1>Tráfico de Red<BR>
<TABLE>
......


--
--------------------------
FreE wOrlD = FrEe cOdE
By NeCrOS.
-------------------------
---------------------
------------------
---------------
------------
--------
-----
--
 
Reply With Quote
 
 
 
 
Mats Karlsson
Guest
Posts: n/a

 
      02-28-2004, 12:38 AM
NeCrOS wrote:
> NET-SNMP version: 5.0.6
>
> ./mrtg /home/www/mrtg/mrtg.cfg
>
> SNMP Error:
> Received SNMP response with error code
> error status: noSuchName
> index 2 (OID: 1.3.6.1.2.1.2.2.1.16.1)
> SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
> community: "public"
> request ID: 2083050321
> PDU bufsize: 8000 bytes
> timeout: 2s
> retries: 5
> backoff: 1)
> at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 487
> SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on
> public@localhost::::::v4only
> at ./mrtg line 1835
> ERROR: Target[eth0][_IN_] ' $target->[0]{$mode} ' did not eval into
> defined data
> ERROR: Target[eth0][_OUT_] ' $target->[0]{$mode} ' did not eval into
> defined data
>
>
>
> Fichero .cfg :
>
> EnableIPv6: no
> WorkDir:/home/www/mrtg
> Options[_]: bits,growright
>
> ### INTERFICIE DE RED ###
> Target[Eth0]: 1ublic@localhost
> MaxBytes[Eth0]: 1000000000
> Title[Eth0]: mec-router.rediris.es (mec-router.mec.es): Ethernet0
> PageTop[Eth0]: <H1>Tráfico de Red<BR>
> <TABLE>
> .....


Change snmp.conf to allow snmp requests from 127.0.0.1

/Mats


 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-28-2004, 01:17 AM
NeCrOS <(E-Mail Removed)> wrote:
> NET-SNMP version: 5.0.6
>
> ./mrtg /home/www/mrtg/mrtg.cfg
>
> SNMP Error:
> Received SNMP response with error code
> error status: noSuchName
> index 2 (OID: 1.3.6.1.2.1.2.2.1.16.1)
> SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
> community: "public"
> request ID: 2083050321
> PDU bufsize: 8000 bytes
> timeout: 2s
> retries: 5
> backoff: 1)
> at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 487
> SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on
> public@localhost::::::v4only


It seems the first query (ifInOctets.1) is working, but the second
(ifOutOctets.1) is not.

What does the following command produce

snmpget -v1 -c public localhost 1.3.6.1.2.1.2.2.1.16.1

Also, you don't want to be using .1 most likely, as its usually
associated with the loopback interface, as shown below. The number for
the interface you want will be different on your system.

$ snmptable -v1 -c public belgarath ifTable | cut -b-33
SNMP table: IF-MIB::ifTable

ifIndex ifDescr ifType
1 lo softwareLoopback
2 eth0 ethernetCsmacd
3 eth1 ethernetCsmacd
4 eth2 ethernetCsmacd
5 sit0 tunnel
6 ppp0 ppp
7 sit1 tunnel
8 tun6to4 tunnel

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
Greg
Guest
Posts: n/a

 
      03-04-2004, 08:56 AM
I think you are having the same problem that I am trying to chase
down.

I have two routers side by side running HSRP... I am summing the
bandwidth from interfaces on each router using MRTG with two targets
being added. No biggy. Unless you shut one router off!!

Once you shutdown one of the interfaces being summed. The sum stops
displaying proper data. It is as if there is no initialization taking
place.

Target[greg_sum]: 21:nope@192.168.10.44 + 2:nope192.168.10.175

Line 487 in SNMP_util.pm dies in MRTG 2.0.12. The only thing I can
figure to do is rewrite SNMP_util.pm such that it doesn't die when an
evaluated expression does not render defined data for each component
of the expression. The only way to do this would be to somehow
initialize the expression.


WARNING: skipping because at least the query for ifInOctets.2 on
192.168.10.175 did not succeed
WARNING: no data for ifInOctets&ifOutOctets:nope@192.168.10.175.
Skipping further queries for Host 192.168.10.175 in this round.
ERROR: Target[192.168.10.175_2][_IN_] ' $target->[1]{$mode} ' did not
eval into defined data
ERROR: Target[192.168.10.175_2][_OUT_] ' $target->[1]{$mode} ' did not
eval into defined data
ERROR: Target[greg_sum][_IN_] ' $target->[0]{$mode} +
$target->[1]{$mode} ' (warn): Use of uninitialized value in addition
(+) at (eval 12) line 1.
ERROR: Target[greg_sum][_OUT_] ' $target->[0]{$mode} +
$target->[1]{$mode} ' (warn): Use of uninitialized value in addition
(+) at (eval 13) line 1.


In reference to the loopback respone. In the ISP world you always
want to query the loopback address because it represents the router-id
for the most part. It is the thing that will always be reachable if
the router is reachable at all.

Regards,

Greg


Cameron Kerr <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> NeCrOS <(E-Mail Removed)> wrote:
> > NET-SNMP version: 5.0.6
> >
> > ./mrtg /home/www/mrtg/mrtg.cfg
> >
> > SNMP Error:
> > Received SNMP response with error code
> > error status: noSuchName
> > index 2 (OID: 1.3.6.1.2.1.2.2.1.16.1)
> > SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
> > community: "public"
> > request ID: 2083050321
> > PDU bufsize: 8000 bytes
> > timeout: 2s
> > retries: 5
> > backoff: 1)
> > at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 487
> > SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on
> > public@localhost::::::v4only

>
> It seems the first query (ifInOctets.1) is working, but the second
> (ifOutOctets.1) is not.
>
> What does the following command produce
>
> snmpget -v1 -c public localhost 1.3.6.1.2.1.2.2.1.16.1
>
> Also, you don't want to be using .1 most likely, as its usually
> associated with the loopback interface, as shown below. The number for
> the interface you want will be different on your system.
>
> $ snmptable -v1 -c public belgarath ifTable | cut -b-33
> SNMP table: IF-MIB::ifTable
>
> ifIndex ifDescr ifType
> 1 lo softwareLoopback
> 2 eth0 ethernetCsmacd
> 3 eth1 ethernetCsmacd
> 4 eth2 ethernetCsmacd
> 5 sit0 tunnel
> 6 ppp0 ppp
> 7 sit1 tunnel
> 8 tun6to4 tunnel

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Net snmp + mrtg calico Linux Networking 0 03-07-2006 09:17 AM
MRTG Error awie@eksadata.com Linux Networking 3 02-04-2006 05:20 PM
NT 4 question about SNMP and error 7024 Mikael Oskarsson Windows Networking 0 04-17-2005 10:54 AM
[W2K3] mrtg snmp mib's and oid's Guillaume Groen Windows Networking 0 03-02-2004 08:15 PM
does MagicLAN AP play with mrtg? / SNMP Nelson Castillo Wireless Internet 0 07-21-2003 09:12 AM



1 2 3 4 5 6 7 8 9 10 11