Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post support questions that directly relate to Linux/Unix operating systems.
Moderators: Developers , Moderators
laddu
Posts: 6 Joined: Fri Oct 27, 2006 7:21 am
Post
by laddu » Fri Oct 27, 2006 7:24 am
I can`t get the eth statistics. in New Graphs at
Code: Select all
Data Query [SNMP - Interface Statistics]
Reload Associated Query
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
i clicked run this ..... and the query
Code: Select all
Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
but i can`t create any graph for eth`s. any ideea pls !!??
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Fri Oct 27, 2006 1:43 pm
Please check SNMP Version for this host. Then, please run snmpwalk against that host, querying for OID .1.3.6.1.2.1.2.2.1.1
Please post ypour findings
Reinhard
laddu
Posts: 6 Joined: Fri Oct 27, 2006 7:21 am
Post
by laddu » Fri Oct 27, 2006 4:16 pm
Code: Select all
[root@laddu ~]# snmpd -v
NET-SNMP version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net
and
Code: Select all
[root@laddu ~]# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Fri Oct 27, 2006 4:48 pm
Woops, I meant the SNMP protocol version used by the target client. And please tell us your php version. Click the cactus (bottom left on console screens) and report your PHP SNMP Support. Cacti will use php snmp support, if available.
Find function cacti_snmp_walk in ./include/snmp.php. This part of code will be executed running "Verbose Query". And this seems to fail on your installation.
Reinhard
laddu
Posts: 6 Joined: Fri Oct 27, 2006 7:21 am
Post
by laddu » Fri Oct 27, 2006 5:33 pm
Code: Select all
Cacti Variables
Operating System: unix
PHP SNMP Support: no
and
Code: Select all
[root@laddu ~]# php -v
PHP 4.3.9 (cgi) (built: Sep 21 2006 07:08:09)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
no snmp.php in include, it is in ./lib/ and it is very hard for me to understand someone else code. pls tell me what to change in that function
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Sat Oct 28, 2006 3:54 am
I will forward this to a dev.
Reinhard
laddu
Posts: 6 Joined: Fri Oct 27, 2006 7:21 am
Post
by laddu » Sat Oct 28, 2006 7:22 am
so.. no help ??? how can i fix this problem ? pls....
TheWitness
Developer
Posts: 17062 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Sat Oct 28, 2006 9:24 am
Please post a walk of the following oid tree:
".1.3.6.1.2.1.2.2.1"
Thanks,
TheWitness
laddu
Posts: 6 Joined: Fri Oct 27, 2006 7:21 am
Post
by laddu » Sat Oct 28, 2006 1:43 pm
Code: Select all
[root@laddu ~]# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: eth1
IF-MIB::ifDescr.4 = STRING: sit0
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: tunnel(131)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifMtu.4 = INTEGER: 1480
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 100000000
IF-MIB::ifSpeed.3 = Gauge32: 100000000
IF-MIB::ifSpeed.4 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:50:bf:a5:81:6e
IF-MIB::ifPhysAddress.3 = STRING: 0:c1:26:11:92:17
IF-MIB::ifPhysAddress.4 = STRING:
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: up(1)
IF-MIB::ifOperStatus.4 = INTEGER: down(2)
IF-MIB::ifInOctets.1 = Counter32: 53582776
IF-MIB::ifInOctets.2 = Counter32: 2628254038
IF-MIB::ifInOctets.3 = Counter32: 3727794119
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInUcastPkts.1 = Counter32: 126512
IF-MIB::ifInUcastPkts.2 = Counter32: 20585965
IF-MIB::ifInUcastPkts.3 = Counter32: 15560148
IF-MIB::ifInUcastPkts.4 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInDiscards.4 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 4170
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 53585148
IF-MIB::ifOutOctets.2 = Counter32: 4087906355
IF-MIB::ifOutOctets.3 = Counter32: 2162226008
IF-MIB::ifOutOctets.4 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 126544
IF-MIB::ifOutUcastPkts.2 = Counter32: 16140169
IF-MIB::ifOutUcastPkts.3 = Counter32: 18093974
IF-MIB::ifOutUcastPkts.4 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutDiscards.4 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifOutQLen.4 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero
TheWitness
Developer
Posts: 17062 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Sun Oct 29, 2006 10:35 pm
This is as I expected. Can you call the vendor and let them know that your agent is missing the following OID:
1.3.6.1.2.1.2.2.1.1.0 => Number of Indexes.
Thanks,
TheWitness
TheWitness
Developer
Posts: 17062 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Sun Oct 29, 2006 10:36 pm
We might be able to patch this as well.. Seen it before wth HPUX. It was a long time ago though.
TheWitness
laddu
Posts: 6 Joined: Fri Oct 27, 2006 7:21 am
Post
by laddu » Mon Oct 30, 2006 3:15 am
i don`t understant very well. what you want me to do ?? output for that oid is
Code: Select all
[root@laddu ~]# snmpwalk -v 1 -c public localhost 1.3.6.1.2.1.2.2.1.1.0
1.3.6.1.2.1.2.2.1.1.0: Unknown Object Identifier (Index out of range: 0 (ifIndex))
i hope this is what you want!!!!
TheWitness
Developer
Posts: 17062 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Mon Oct 30, 2006 7:15 am
Your hardware supplier is not providing that OID. This can cause the problem I think.
TheWitness
Users browsing this forum: No registered users and 3 guests