0.8.6.d missing hardware address/status/type in data query

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

I was too slow with writing my last post....

As fmangeant stated, removing the last line brings back the page. But still no stats/type...
I'm using snmp.php from 0.8.6c until next week.

Ralf
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Right. Have a good weekend!

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
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

I don't want to confuse anyone...but after using snmp.php from 0.8.6.c again, I got the same results as with snmp.php from 0.8.6d (status/type...).

After hitting the "green button" a few times and changing the snmp.php version 2 or 3 times, using an other browser, I now get the right results again with 0.8.6c snmp.php ! This is something I don't understand. Is there some informaiton that gets cached?

Nice weekend!
Ralf
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hitting the refresh button rebuilds the Cache. However, Cactid/cmd.php will recache based upon your recache method as well. If it is set to "always verify", it will recache every time.

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
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

I tried this for 3 more devices now. I hit the green button on the "New Graphs" page -> no change. I tried this serveral times. Then I hit the green button on the "Devices" -page, after that I followed the "Create Graphs for this Host" link and the status/type/hw info reappeared!

Ok, going back to "Device" -> Verbose Query, status/type/hw info is missing again! "Create Graphs for this Host" only shows the numeric values an no hw address :evil:

I tried this 4 or 5 times, sometimes it worked, sometimes not. I've no idea what this might be. I increased the snmp timeout too, no change.

Ralf
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Perform the following command and e-mail to me:

mysqldump -u root -p cacti > cacti.dump

I will not be able to respond until later this evening. It is 9:07am now.

Thanks,

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
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

TheWitness wrote:Perform the following command and e-mail to me:

mysqldump -u root -p cacti > cacti.dump
done!
I will not be able to respond until later this evening. It is 9:07am now.
No problem. Sit down...have a cup of coffee ;)

Nice weekend (again...)!

Ralf
ironmike
Posts: 23
Joined: Fri Apr 22, 2005 12:12 pm

Post by ironmike »

First, let me state that I am new to Cacti (and not the best programmer in the world either)... so maybe I am all wrong....

I believe am having the same prob too. I get a "1" or "2" (not up or down) for the ifOperStatus and nothing (well, just a '' for the value) for the ifHwAddr, but all the other values (ifSpeed, ifType, etc), have valid info.

I modified the snmp.php file and commented out most of the format_snmp_string function. I was able to get something from the ifHwAddr then:

+ 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='XUýk'] index: 2 [from value]
+ Found item [ifHwAddr='XUýl'] index: 3 [from value]
+ Found item [ifHwAddr='XUýl'] index: 4 [from value]
+ Found item [ifHwAddr='XUýl'] index: 5 [from value]
+ Found item [ifHwAddr='XUýl'] index: 6 [from value]
+ Found item [ifHwAddr='XUýl'] index: 7 [from value]
+ Found item [ifHwAddr='XUýl'] index: 8 [from value]
+ Found item [ifHwAddr='XUým'] index: 9 [from value]
+ Found item [ifHwAddr='XUýl'] index: 10 [from value]
+ Found item [ifHwAddr='XUýl'] index: 11 [from value]
+ Found item [ifHwAddr='XUýl'] index: 12 [from value]

If you need any more info, let me know.

This was on a brand new install of Cacti on Wind2000 SP4, IIS5
php v5.0.4
cacti 0.8.6d

thanks,
Mike
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I would not suggest commenting most of that code out. It will cause you more issues than you know.

Second, what device are you querying that gives you those results?

Can you do an snmpwalk of the same OID from the command line?
[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]
ironmike
Posts: 23
Joined: Fri Apr 22, 2005 12:12 pm

Post by ironmike »

It was more an exercise in trying to see if I could get anything out of the interface. I noticed that there were instances where the string was getting parsed and I just wanted to see what the "raw" string looked like. I have since put the code back in....

I am monitoring a Cisco CSS 11800 (currently using just MRTG).

Here's some walks (one from the generic OID and the second from Cisco specific OID):
snmpwalk -Ov -v2c -c ******** 192.168.100.1 .1.3.6.1.2.1.2.2.1.6
Hex-STRING: 00
Hex-STRING: 00 10 58 55 FD 6B
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6D
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6E
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6D
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6D
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6D
Hex-STRING: 00 10 58 55 FD 6C
Hex-STRING: 00 10 58 55 FD 6C

snmpwalk -v2c -c ******** 192.168.100.1 .1.3.6.1.4.1.2467.1.44.3.1.6
iso.3.6.1.4.1.2467.1.44.3.1.6.1 = Hex-STRING: 00
iso.3.6.1.4.1.2467.1.44.3.1.6.2 = Hex-STRING: 00 10 58 55 FD 6B
iso.3.6.1.4.1.2467.1.44.3.1.6.3 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.4 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.5 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.6 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.7 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.8 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.9 = Hex-STRING: 00 10 58 55 FD 6D
iso.3.6.1.4.1.2467.1.44.3.1.6.10 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.11 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.12 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.13 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.14 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.15 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.16 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.17 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.18 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.19 = Hex-STRING: 00 10 58 55 FD 6E
iso.3.6.1.4.1.2467.1.44.3.1.6.20 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.21 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.22 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.23 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.24 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.25 = Hex-STRING: 00 10 58 55 FD 6D
iso.3.6.1.4.1.2467.1.44.3.1.6.26 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.27 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.28 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.29 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.30 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.31 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.32 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.33 = Hex-STRING: 00 10 58 55 FD 6D
iso.3.6.1.4.1.2467.1.44.3.1.6.34 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.35 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.36 = Hex-STRING: 00 10 58 55 FD 6D
iso.3.6.1.4.1.2467.1.44.3.1.6.37 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.38 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.4.1.2467.1.44.3.1.6.1012 = Hex-STRING: 00
iso.3.6.1.4.1.2467.1.44.3.1.6.1013 = Hex-STRING: 00
iso.3.6.1.4.1.2467.1.44.3.1.6.1014 = Hex-STRING: 00
iso.3.6.1.4.1.2467.1.44.3.1.6.1015 = Hex-STRING: 00 00 00 00 09 02
iso.3.6.1.4.1.2467.1.44.3.1.6.1016 = Hex-STRING: 00 00 00 00 00 00
iso.3.6.1.4.1.2467.1.44.3.1.6.1017 = Hex-STRING: 00 00 00 00 09 01
iso.3.6.1.4.1.2467.1.44.3.1.6.1018 = Hex-STRING: 00 00 00 00 00 00
iso.3.6.1.4.1.2467.1.44.3.1.6.1019 = Hex-STRING: 00
iso.3.6.1.4.1.2467.1.44.3.1.6.1020 = Hex-STRING: 00 00 00 00 07 01
iso.3.6.1.4.1.2467.1.44.3.1.6.1021 = Hex-STRING: 00 00 00 00 06 02
iso.3.6.1.4.1.2467.1.44.3.1.6.1022 = Hex-STRING: 00 00 00 00 00 00
iso.3.6.1.4.1.2467.1.44.3.1.6.1023 = Hex-STRING: 00 00 00 00 06 01
iso.3.6.1.4.1.2467.1.44.3.1.6.1024 = Hex-STRING: 00 00 00 00 00 00

thanks,
Mike
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Remove the -Ov option and repost please.
[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]
ironmike
Posts: 23
Joined: Fri Apr 22, 2005 12:12 pm

Post by ironmike »

Here is the "generic" OID-walk:

snmpwalk -v2c -c ******** 192.168.100.1 .1.3.6.1.2.1.2.2.1.6
iso.3.6.1.2.1.2.2.1.6.1 = Hex-STRING: 00
iso.3.6.1.2.1.2.2.1.6.2 = Hex-STRING: 00 10 58 55 FD 6B
iso.3.6.1.2.1.2.2.1.6.3 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.4 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.5 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.6 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.7 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.8 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.9 = Hex-STRING: 00 10 58 55 FD 6D
iso.3.6.1.2.1.2.2.1.6.10 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.11 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.12 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.13 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.14 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.15 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.16 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.17 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.18 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.19 = Hex-STRING: 00 10 58 55 FD 6E
iso.3.6.1.2.1.2.2.1.6.20 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.21 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.22 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.23 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.24 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.25 = Hex-STRING: 00 10 58 55 FD 6D
iso.3.6.1.2.1.2.2.1.6.26 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.27 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.28 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.29 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.30 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.31 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.32 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.33 = Hex-STRING: 00 10 58 55 FD 6D
iso.3.6.1.2.1.2.2.1.6.34 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.35 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.36 = Hex-STRING: 00 10 58 55 FD 6D
iso.3.6.1.2.1.2.2.1.6.37 = Hex-STRING: 00 10 58 55 FD 6C
iso.3.6.1.2.1.2.2.1.6.38 = Hex-STRING: 00 10 58 55 FD 6C


thanks,
Mike
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Sorry for the disjoined questions.... :(

Help me to understand you installation...

What version of the following:

NET-SNMP
PHP

Also, are you using the PHP SNMP module? You can check for snmp.so in the php.ini file. If you installation of PHP uses module directories, you will have to look for that file in the module load directory, which is defined in you php.ini.
[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]
ironmike
Posts: 23
Joined: Fri Apr 22, 2005 12:12 pm

Post by ironmike »

net-snmp is v5.2.1
php is version 5.0.4
I am pretty sure I am using the php_snmp.dll module (see below). I don't know a ton about PHP, but I have been reading a lot of info from this forum...

php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib

[Zend Modules]


I am sure that the snmp is working, as I am currnetly playing around and (successfully) monitoring a Pix firewall and a windows xp machint's network interfaces...
elnino
Cacti User
Posts: 205
Joined: Tue Mar 08, 2005 9:51 pm

Post by elnino »

I had the same problem as pirx with the descriptions not coming up. I replaced snmp.php with the one from 0.8.6c and it seems to be working now
Post Reply

Who is online

Users browsing this forum: xugmu and 2 guests