Windows 2008R2 Drives in TB & PB don't graph correctly

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

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

Re: Windows 2008R2 Drives in TB & PB don't graph correctly

Post by TheWitness »

Can you please look at the ss_host_disk.php from current svn (branches/0.8.7h) and let us know if this issue is already resolved. Somehow, I am thinking that it's not adequate, but wanted to check.

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?
candlerb
Posts: 10
Joined: Tue Nov 16, 2010 6:38 am

Re: Windows 2008R2 Drives in TB & PB don't graph correctly

Post by candlerb »

The fix in branches/0.8.7 is wrong. It says:

Code: Select all

                        if($snmp_data<0){
                                        return (abs($snmp_data) + 2147483647) * $sau;
                        } else {
                                        return $snmp_data * $sau;
                        }
The correct way to fix the value is to add 2**32, i.e.

Code: Select all

                        if($snmp_data<0){
                                        return ($snmp_data + 4294967296) * $sau;
                        } else {
                                        return $snmp_data * $sau;
                        }
That's just how two's complement arithmetic works.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Windows 2008R2 Drives in TB & PB don't graph correctly

Post by TheWitness »

Can you please install the hmib plugin and perform an audit for me?

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?
candlerb
Posts: 10
Joined: Tue Nov 16, 2010 6:38 am

Re: Windows 2008R2 Drives in TB & PB don't graph correctly

Post by candlerb »

TheWitness wrote:Can you please install the hmib plugin and perform an audit for me?
Unfortunately I can't.

I'm using the stock Cacti 0.8.7e from Ubuntu 10.04 - it doesn't have the PIA installed, and my colleague tells me that if you try to apply the PIA patches you get merge conflicts with Debian's local changes to Cacti. So this would entail a full reinstall of Cacti from source.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Windows 2008R2 Drives in TB & PB don't graph correctly

Post by TheWitness »

You would not have to reinstall the whole package. Just audit the global.php and config.php. You would have to move a few things from config.php.dist to /etc/cacti/debian.php as well. My test boxes are Debian and run the PIA just fine.

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 1 guest