Unable to create interface graphs
Moderators: Developers, Moderators
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.
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 (30.01 KiB) Viewed 3573 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
The problem may be caused by the following patch:
http://www.cacti.net/downloads/patches/ ... mibs.patch
Please back off and recheck.
Larry
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?
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?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Doh!
Honestly, I'm glad that wasn't it.... But this is annoying...
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]
[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]
Upgraded from 5.1.2 to 5.2.1
Same problem here ...
Code: Select all
[root@zus2 snmp]# snmpget -V
NET-SNMP version: 5.2.1
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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:
TheWitness
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
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?
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?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Very curious, please post the output of
The device that you are quering, what is it? And what snmp agent is it running?
Code: Select all
snmpwalk -OfntUe -v 1 -c public localhost
[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]
[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]
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:
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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
Code: Select all
snmpwalk -OfntUe -v 1 -c public localhost
- Attachments
-
- snmpwalk-23.03.2005.txt
- (39.98 KiB) Downloaded 285 times
Who is online
Users browsing this forum: No registered users and 0 guests