Unable to create interface graphs

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Unable to create interface graphs

Post by branix »

Hello all!

I have just set-up a cacti install (from scratch. I created memory/load graphs for my local machine, but when I try to make the network graphs I get this weird looking page, and whatever I choose I just can't make a network graph.

Same happens on a cacti updated through some versions (currently at 0.8.6c) running on the same environment. It happens both on the local snmp machine and on a remote snmp-enabled host.

Mandrake linux 10.1 / Php 4.3.8 / net-snmp 5.1.2 / cacti 0.8.6c

Any help on this?

Data Query:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/spool/www/tools/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'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='ifIndex.1 1'] index: ifIndex.1 1 [from value]
+ Found item [ifIndex='ifIndex.2 2'] index: ifIndex.2 2 [from value]
+ Found item [ifIndex='ifIndex.3 3'] index: ifIndex.3 3 [from value]
+ Found item [ifIndex='ifIndex.4 4'] index: ifIndex.4 4 [from value]
+ Found item [ifIndex='ifIndex.5 5'] index: ifIndex.5 5 [from value]
+ Found item [ifIndex='ifIndex.6 6'] index: ifIndex.6 6 [from value]
+ Found item [ifIndex='ifIndex.7 7'] index: ifIndex.7 7 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='ifOperStatus.1 1'] index: ifOperStatus.1 1 [from value]
+ Found item [ifOperStatus='ifOperStatus.2 1'] index: ifOperStatus.2 1 [from value]
+ Found item [ifOperStatus='ifOperStatus.3 1'] index: ifOperStatus.3 1 [from value]
+ Found item [ifOperStatus='ifOperStatus.4 1'] index: ifOperStatus.4 1 [from value]
+ Found item [ifOperStatus='ifOperStatus.5 1'] index: ifOperStatus.5 1 [from value]
+ Found item [ifOperStatus='ifOperStatus.6 2'] index: ifOperStatus.6 2 [from value]
+ Found item [ifOperStatus='ifOperStatus.7 1'] index: ifOperStatus.7 1 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='ifDescr.1 lo'] index: ifDescr.1 lo [from value]
+ Found item [ifDescr='ifDescr.2 eth0'] index: ifDescr.2 eth0 [from value]
+ Found item [ifDescr='ifDescr.3 eth1'] index: ifDescr.3 eth1 [from value]
+ Found item [ifDescr='ifDescr.4 eth2'] index: ifDescr.4 eth2 [from value]
+ Found item [ifDescr='ifDescr.5 eth3'] index: ifDescr.5 eth3 [from value]
+ Found item [ifDescr='ifDescr.6 sit0'] index: ifDescr.6 sit0 [from value]
+ Found item [ifDescr='ifDescr.7 br0'] index: ifDescr.7 br0 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ifType.1 24'] index: ifType.1 24 [from value]
+ Found item [ifType='ifType.2 6'] index: ifType.2 6 [from value]
+ Found item [ifType='ifType.3 6'] index: ifType.3 6 [from value]
+ Found item [ifType='ifType.4 6'] index: ifType.4 6 [from value]
+ Found item [ifType='ifType.5 6'] index: ifType.5 6 [from value]
+ Found item [ifType='ifType.6 131'] index: ifType.6 131 [from value]
+ Found item [ifType='ifType.7 6'] index: ifType.7 6 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='ifSpeed.1 10000000'] index: ifSpeed.1 10000000 [from value]
+ Found item [ifSpeed='ifSpeed.2 100000000'] index: ifSpeed.2 100000000 [from value]
+ Found item [ifSpeed='ifSpeed.3 100000000'] index: ifSpeed.3 100000000 [from value]
+ Found item [ifSpeed='ifSpeed.4 100000000'] index: ifSpeed.4 100000000 [from value]
+ Found item [ifSpeed='ifSpeed.5 100000000'] index: ifSpeed.5 100000000 [from value]
+ Found item [ifSpeed='ifSpeed.6 0'] index: ifSpeed.6 0 [from value]
+ Found item [ifSpeed='ifSpeed.7 10000000'] index: ifSpeed.7 10000000 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr='ifPhysAddress.1'] index: 1 [from value]
+ Found item [ifHwAddr='IFPHYSADDRESS.2:00:02:44:30:96:4E'] index: ifPhysAddress.2 0:2:44:30:96:4e [from value]
+ Found item [ifHwAddr='IFPHYSADDRESS.3:00:02:44:97:8F:3D'] index: ifPhysAddress.3 0:2:44:97:8f:3d [from value]
+ Found item [ifHwAddr='IFPHYSADDRESS.4:00:02:44:97:8F:6A'] index: ifPhysAddress.4 0:2:44:97:8f:6a [from value]
+ Found item [ifHwAddr='IFPHYSADDRESS.5:00:02:44:97:8F:4B'] index: ifPhysAddress.5 0:2:44:97:8f:4b [from value]
+ Found item [ifHwAddr='IFPHYSADDRESS.6:00:00:00:00:8F:4B'] index: ifPhysAddress.6 0:0:0:0:8f:4b [from value]
+ Found item [ifHwAddr='IFPHYSADDRESS.7:00:02:44:97:8F:4B'] index: ifPhysAddress.7 0:2:44:97:8f:4b [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='ipAdEntIfIndex.10.0.0.3 3'] index: 1 [from regexp oid parse]
+ Found item [ifIP='ipAdEntIfIndex.127.0.0.1 1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='ipAdEntIfIndex.172.16.0.1 2'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
Attachments
net-error.JPG
net-error.JPG (36.13 KiB) Viewed 7467 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Wow! I will watch this one. It would appear there there is a bad character somewhere. Please run from the command line the following:

snmpwalk -v <yourversion> -c <yourcommunity> <your_ip> if-mib

Post your results.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

Code: Select all

[branix@obs6 branix]$ snmpwalk -v 1 -c public 127.0.0.1 if-mib
2005-03-19 22:26:25 if-mib: Unknown Object Identifier (Sub-id not found: (top) -> if-mib)

[branix@obs6 branix]$ snmpwalk -v 2c -c public 127.0.0.1 if-mib
2005-03-19 22:27:52 if-mib: Unknown Object Identifier (Sub-id not found: (top) -> if-mib)
[branix@obs6 branix]$
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Do this one instead.

.1.3.6.1.2.1.2.2.1

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

Code: Select all

[root@obs6 branix]# snmpwalk -v 1 -c public 127.0.0.1 .1.3.6.1.2.1.2.2.1
ifIndex.1 1
ifIndex.2 2
ifIndex.3 3
ifIndex.4 4
ifIndex.5 5
ifIndex.6 6
ifIndex.7 7
ifDescr.1 lo
ifDescr.2 eth0
ifDescr.3 eth1
ifDescr.4 eth2
ifDescr.5 eth3
ifDescr.6 sit0
ifDescr.7 br0
ifType.1 24
ifType.2 6
ifType.3 6
ifType.4 6
ifType.5 6
ifType.6 131
ifType.7 6
ifMtu.1 16436
ifMtu.2 1500
ifMtu.3 1500
ifMtu.4 1500
ifMtu.5 1500
ifMtu.6 1480
ifMtu.7 1500
ifSpeed.1 10000000
ifSpeed.2 100000000
ifSpeed.3 100000000
ifSpeed.4 100000000
ifSpeed.5 100000000
ifSpeed.6 0
ifSpeed.7 10000000
ifPhysAddress.1
ifPhysAddress.2 0:2:44:30:96:4e
ifPhysAddress.3 0:2:44:97:8f:3d
ifPhysAddress.4 0:2:44:97:8f:6a
ifPhysAddress.5 0:2:44:97:8f:4b
ifPhysAddress.6 0:0:0:0:8f:4b
ifPhysAddress.7 0:2:44:97:8f:4b
ifAdminStatus.1 1
ifAdminStatus.2 1
ifAdminStatus.3 1
ifAdminStatus.4 1
ifAdminStatus.5 1
ifAdminStatus.6 2
ifAdminStatus.7 1
ifOperStatus.1 1
ifOperStatus.2 1
ifOperStatus.3 1
ifOperStatus.4 1
ifOperStatus.5 1
ifOperStatus.6 2
ifOperStatus.7 1
ifInOctets.1 112964134
ifInOctets.2 793192136
ifInOctets.3 579976856
ifInOctets.4 520490650
ifInOctets.5 800640695
ifInOctets.6 0
ifInOctets.7 2822355
ifInUcastPkts.1 1137060
ifInUcastPkts.2 4765323
ifInUcastPkts.3 5295045
ifInUcastPkts.4 4177383
ifInUcastPkts.5 4816199
ifInUcastPkts.6 0
ifInUcastPkts.7 49896
ifInDiscards.1 0
ifInDiscards.2 0
ifInDiscards.3 0
ifInDiscards.4 0
ifInDiscards.5 0
ifInDiscards.6 0
ifInDiscards.7 0
ifInErrors.1 0
ifInErrors.2 1
ifInErrors.3 0
ifInErrors.4 0
ifInErrors.5 0
ifInErrors.6 0
ifInErrors.7 0
ifOutOctets.1 112968279
ifOutOctets.2 520494500
ifOutOctets.3 1240637719
ifOutOctets.4 797114616
ifOutOctets.5 520482480
ifOutOctets.6 0
ifOutOctets.7 378
ifOutUcastPkts.1 1137116
ifOutUcastPkts.2 4177419
ifOutUcastPkts.3 5025183
ifOutUcastPkts.4 4819367
ifOutUcastPkts.5 4177309
ifOutUcastPkts.6 0
ifOutUcastPkts.7 5
ifOutDiscards.1 0
ifOutDiscards.2 0
ifOutDiscards.3 0
ifOutDiscards.4 0
ifOutDiscards.5 0
ifOutDiscards.6 0
ifOutDiscards.7 0
ifOutErrors.1 0
ifOutErrors.2 0
ifOutErrors.3 0
ifOutErrors.4 0
ifOutErrors.5 0
ifOutErrors.6 0
ifOutErrors.7 0
ifOutQLen.1 0
ifOutQLen.2 0
ifOutQLen.3 0
ifOutQLen.4 0
ifOutQLen.5 0
ifOutQLen.6 0
ifOutQLen.7 0
ifSpecific.1 zeroDotZero
ifSpecific.2 zeroDotZero
ifSpecific.3 zeroDotZero
ifSpecific.4 zeroDotZero
ifSpecific.5 zeroDotZero
ifSpecific.6 zeroDotZero
ifSpecific.7 zeroDotZero
[root@obs6 branix]#
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Are you using a fully patched version of Cacti 0.8.6c? Also, are you using net-snmp for this host or builtin snmp? Have you modified snmp.php? The reason I ask is that your output should have looked more like this:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:\wwwroot\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'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='16777219'] index: 16777219 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 16777219 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='MS TCP Loopback interface'] index: 1 [from value]
+ Found item [ifDescr='Network Teaming Intermediate Driver (NTID)'] index: 16777219 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 16777219 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='100000000'] index: 16777219 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:08:02:DE:8C:96'] index: 16777219 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='148.98.150.187'] index: 16777219 [from regexp oid parse]
+ Found data query XML file at 'C:\wwwroot\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\wwwroot\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\wwwroot\cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:\wwwroot\cacti/resource/snmp_queries/interface.xml'
TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

I have explicitly downloaded the full cacti 0.8.6c package from the cacti website, and did a fresh install.

I bealive that the net-snmp binary is used, as I have provided it durring cacti setup, and I haven't messed up with anything related to source code (either net-snmp or cacti :).

I will try switching to ucd-snmp and see what that gives me.
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

ucd-snmp works fine. I tried to add cpu statistics (net/ucd-snmp enabled host), but at the first polling the snmpd deamon died on me. Probably a ucd-snmp issue.

Current data query:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/spool/www/tools/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'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Found item [ifIndex='7'] index: 7 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Found item [ifOperStatus='Up'] index: 4 [from value]
+ Found item [ifOperStatus='Up'] index: 5 [from value]
+ Found item [ifOperStatus='Down'] index: 6 [from value]
+ Found item [ifOperStatus='Up'] index: 7 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='lo'] index: 1 [from value]
+ Found item [ifDescr='eth0'] index: 2 [from value]
+ Found item [ifDescr='eth1'] index: 3 [from value]
+ Found item [ifDescr='eth2'] index: 4 [from value]
+ Found item [ifDescr='eth3'] index: 5 [from value]
+ Found item [ifDescr='sit0'] index: 6 [from value]
+ Found item [ifDescr='br0'] index: 7 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 3 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 4 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 5 [from value]
+ Found item [ifType='tunnel(131)'] index: 6 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 7 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='10000000'] index: 2 [from value]
+ Found item [ifSpeed='10000000'] index: 3 [from value]
+ Found item [ifSpeed='10000000'] index: 4 [from value]
+ Found item [ifSpeed='10000000'] index: 5 [from value]
+ Found item [ifSpeed='0'] index: 6 [from value]
+ Found item [ifSpeed='10000000'] index: 7 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:02:44:30:96:4E'] index: 2 [from value]
+ Found item [ifHwAddr='00:02:44:97:8F:3D'] index: 3 [from value]
+ Found item [ifHwAddr='00:02:44:97:8F:6A'] index: 4 [from value]
+ Found item [ifHwAddr='00:02:44:97:8F:4B'] index: 5 [from value]
+ Found item [ifHwAddr='00:00:00:00:8F:4B'] index: 6 [from value]
+ Found item [ifHwAddr='00:02:44:97:8F:4B'] index: 7 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='0.0.0.0'] index: 4 [from regexp oid parse]
+ Found item [ifIP='10.0.0.3'] index: 3 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='194.102.61.170'] index: 2 [from regexp oid parse]
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/spool/www/tools/cacti/resource/snmp_queries/interface.xml'
If I can provide any more help I'm here :) I still have 2 more hosts with net-snmp and the same problem :)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Run the following and post the output:

Code: Select all

snmpget -v 2>&1 | head -10
I want to know what version of NET-SNMP you are running. UCD-SNMP has been replaced with NET-SNMP, and you should be using that. :)

Also, if you don't mind, can you send me your snmpd.conf file? Email or PM will do.

This is an interesting problem, to say the least.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

As I mentioned in my first post: net-snmp 5.1.2

Code: Select all

[root@venus branix]# snmpget -v 2>&1 | head -10
snmpget: option requires an argument -- v
USAGE: snmpget [OPTIONS] AGENT OID [OID]...

  Version:  5.1.2
  Web:      http://www.net-snmp.org/
  Email:    net-snmp-coders@lists.sourceforge.net

OPTIONS:
  -h, --help            display this help message
  -H                    display configuration file directives understood
[root@venus branix]# cat /etc/snmp/snmpd.conf
###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  public 127.0.0.1
[root@venus branix]#

User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

One more thing: I confess I don't know that much about SNMP :), but the output looks kind-of weird with the NET-SNMP snmpwalk.

SNMP-server: UCD-snmp version: 4.2.3

Remote host:

Code: Select all

[root@zus2 snmp]# snmpwalk -V
NET-SNMP version: 5.1.2
[root@zus2 snmp]# snmpwalk 1.2.3.4 -c public
IPV6-MIB::ipv6IfPhysicalAddress.1
IPV6-MIB::ipv6IfPhysicalAddress.2 0:2:44:30:96:4e
IPV6-MIB::ipv6IfPhysicalAddress.3 0:2:44:97:8f:3d
IPV6-MIB::ipv6IfPhysicalAddress.4 0:2:44:97:8f:6a
IPV6-MIB::ipv6IfPhysicalAddress.5 0:2:44:97:8f:4b
IPV6-MIB::ipv6IfPhysicalAddress.8 0:2:44:97:8f:4b
IPV6-MIB::ipv6IfAdminStatus.1 1
IPV6-MIB::ipv6IfAdminStatus.2 1
IPV6-MIB::ipv6IfAdminStatus.3 1
IPV6-MIB::ipv6IfAdminStatus.4 1
IPV6-MIB::ipv6IfAdminStatus.5 1
IPV6-MIB::ipv6IfAdminStatus.8 1
IPV6-MIB::ipv6IfOperStatus.1 1
IPV6-MIB::ipv6IfOperStatus.2 1
IPV6-MIB::ipv6IfOperStatus.3 1
IPV6-MIB::ipv6IfOperStatus.4 1
IPV6-MIB::ipv6IfOperStatus.5 1
IPV6-MIB::ipv6IfOperStatus.8 1
Local host:

Code: Select all

[root@obs6 snmp]# snmpwalk -V
UCD-snmp version: 4.2.3
[root@obs6 snmp]# snmpwalk 127.0.0.1 public
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfPhysicalAddress.1 =
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfPhysicalAddress.2 = 0:2:44:30:96:4e
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfPhysicalAddress.3 = 0:2:44:97:8f:3d
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfPhysicalAddress.4 = 0:2:44:97:8f:6a
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfPhysicalAddress.5 = 0:2:44:97:8f:4b
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfPhysicalAddress.8 = 0:2:44:97:8f:4b
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfAdminStatus.1 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfAdminStatus.2 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfAdminStatus.3 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfAdminStatus.4 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfAdminStatus.5 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfAdminStatus.8 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfOperStatus.1 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfOperStatus.2 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfOperStatus.3 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfOperStatus.4 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfOperStatus.5 = up(1)
ipv6MIB.ipv6MIBObjects.ipv6IfTable.ipv6IfEntry.ipv6IfOperStatus.8 = up(1)
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

If you guys don't need more research on this I will switch to ucd-snmp soon :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Did you apply the patches on the web site to 0.8.6c?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
branix
Posts: 39
Joined: Sun Mar 14, 2004 10:38 am

Post by branix »

Yes, except for: config_php_include_order.patch, because after I also patched that file I got this error:

Code: Select all

[root@venus tools]# php /www/tools/cacti/poller.php

Fatal error: Call to undefined function:  db_connect() in /var/spool/www/tools/cacti/lib/database.php on line 111
[root@venus tools]#
And yes, after patching I still get the same output when I try to create a network interface graph.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Did you apply those patches before the problem started? Also, is the device that you are having problems with a snmpv2 device?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests