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

Post by branix »

I did a clean install of cacti, I started the database from scratch, added the server (as device), and I wasn't able to do anything else from there (new screenshot attached).
Same config as in first post:
Mandrake linux 10.1 / Php 4.3.8 / net-snmp 5.1.2 / cacti 0.8.6c + patches (except for config.php).

The device is now marked as snmp v2 in cacti, and enabled in snmpd.conf.
Attachments
test-2-net-snmp.JPG
test-2-net-snmp.JPG (30.01 KiB) Viewed 3568 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's definately a net-snmp issue. If you are using snmpv2, then it's questionable if you are using net-snmp or php_snmp. Do me one more favor, edit the snmp.php and look for a string that goes something like the following. You will find it in two places:

if (... == "WEBUI") {
$version = 1;
}

Delete those three lines and try again.

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 »

Same thing happens. I don't have php compiled with snmp support.

I will try today to change the net-snmp version that I am currently using and see more on that.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The problem may be caused by the following patch:

http://www.cacti.net/downloads/patches/ ... mibs.patch

Please back off and recheck.

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
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um, I didn't have a problem quering interfaces with the data query after I created that patch.

Let me know if backing off this patch resolves the issue.
[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 »

I'm sorry, I get almost the same output after downgrading.
Attachments
net-snmp-patch-downgraded.JPG
net-snmp-patch-downgraded.JPG (36.5 KiB) Viewed 3536 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Doh!

Honestly, I'm glad that wasn't it.... But this is annoying...
[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 »

Upgraded from 5.1.2 to 5.2.1

Code: Select all

[root@zus2 snmp]# snmpget -V
NET-SNMP version: 5.2.1
Same problem here ...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Branix,

We are thinking it may be a php issue with regular expression matching or something like a chomp type command (I don't have the source in front of me). However, when you look at your original post it looked something like:

...ifIndex='ifIndex.1 1'

When it should have read:

...ifIndex='1'.

The way that cacti receives output from php_snmp or net_snmp is as follows:

ifIndex.1 1

It then parses the data to return just "1". This parsing is broken.

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
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please be patient with me. Rony's working as well on this as there appear to multiple problems with FC.

Please run the following and post:

snmpwalk -OfntUe -v 1 -c public localhost

You should get something like:

Code: Select all

.1.3.6.1.2.1.25.6.3.1.5.155 = STRING: 2005-2-27,18:10:18.0
.1.3.6.1.2.1.25.6.3.1.5.156 = STRING: 2005-1-27,21:23:0.0
.1.3.6.1.2.1.25.6.3.1.5.157 = STRING: 2004-6-24,19:12:30.0
.1.3.6.1.2.1.25.6.3.1.5.158 = STRING: 2003-6-15,1:32:2.0
.1.3.6.1.2.1.25.6.3.1.5.159 = STRING: 2003-6-15,1:32:2.0
.1.3.6.1.2.1.25.6.3.1.5.160 = STRING: 2004-6-24,19:12:30.0
.1.3.6.1.2.1.25.6.3.1.5.161 = STRING: 2004-12-5,22:21:6.0
.1.3.6.1.2.1.25.6.3.1.5.162 = STRING: 2004-6-24,19:12:30.0
.1.3.6.1.2.1.25.6.3.1.5.163 = STRING: 2004-10-10,19:36:22.0
.1.3.6.1.2.1.25.6.3.1.5.164 = STRING: 2004-6-24,19:12:30.0
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
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Downloading Mandrake 10.1 and FC3......

Going to install and try them. I want to find out why updating FC3 causes Cacti to break, and why you are having this problem in Mandrake 10.1.
[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
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Very curious, please post the output of

Code: Select all

snmpwalk -OfntUe -v 1 -c public localhost
The device that you are quering, what is it? And what snmp agent is it running?
[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 »

I don't want to rush you guys into anything, as I said above I'm here now to help you with any piece of code/shell you might want.

The device is a pc running net-snmp as snmpd. As for Makndrake linux, I have installed it from the Offcial DVD (that's the 3CDs version), and after tah applied every official update.

I would like to help you guys (I'd go into the code myself), but I will not find the time until next week. I don't want to rush you into anything, because this is not a life/death situation, its just an issue :)

The output from the comand that you asked me to run is in a private message to you.
Here are some lines:

Code: Select all

.1.3.6.1.2.1.55.1.5.1.2.1 lo
.1.3.6.1.2.1.55.1.5.1.2.2 eth0
.1.3.6.1.2.1.55.1.5.1.2.3 eth1
.1.3.6.1.2.1.55.1.5.1.2.4 eth2
.1.3.6.1.2.1.55.1.5.1.2.18 br0
.1.3.6.1.2.1.55.1.5.1.3.1 .0.0
.1.3.6.1.2.1.55.1.5.1.3.2 .0.0
.1.3.6.1.2.1.55.1.5.1.3.3 .0.0
.1.3.6.1.2.1.55.1.5.1.3.4 .0.0
.1.3.6.1.2.1.55.1.5.1.3.18 .0.0
.1.3.6.1.2.1.55.1.5.1.4.1 16436
.1.3.6.1.2.1.55.1.5.1.4.2 1500
.1.3.6.1.2.1.55.1.5.1.4.3 1500
.1.3.6.1.2.1.55.1.5.1.4.4 1500
.1.3.6.1.2.1.55.1.5.1.4.18 1500
.1.3.6.1.2.1.55.1.5.1.8.1
.1.3.6.1.2.1.55.1.5.1.8.2 0:2:44:6a:ec:c9
.1.3.6.1.2.1.55.1.5.1.8.3 0:2:44:6a:ec:cb
.1.3.6.1.2.1.55.1.5.1.8.4 0:2:44:86:b:7b
.1.3.6.1.2.1.55.1.5.1.8.18 0:2:44:6a:ec:c9
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is what we thought we would see. There is definately a problem with net-snmp's argument handling. I would appreciate it if you would send your copy of snmp.php to Rony as I will be away from my computer for about a week and he knows what to do.

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

snmpwalk -OfntUe -v 1 -c public localhost 
... see attachments
Attachments
snmpwalk-23.03.2005.txt
(39.98 KiB) Downloaded 284 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest