Exponential Data Not Working with 0.8.6a

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

Moderators: Developers, Moderators

Post Reply
basf_audio
Posts: 40
Joined: Thu Feb 26, 2004 10:30 am
Location: Saint Louis

Exponential Data Not Working with 0.8.6a

Post by basf_audio »

In 0.8.5a, when reading in a datasource that read:

freeMemory:8.385952E7

Would read into Cacti as

totalMemory:40353607

However, since upgrading, the values are not being translated... Has anybody else see this?

Thanks,

_DS
basf_audio
Posts: 40
Joined: Thu Feb 26, 2004 10:30 am
Location: Saint Louis

Upgraded to 0.8.6b - Still Having Problems

Post by basf_audio »

This is still a problem in version 0.8.6b... Any assistance?

Thanks,

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

Post by TheWitness »

cmd.php or cactid or both?
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?
basf_audio
Posts: 40
Joined: Thu Feb 26, 2004 10:30 am
Location: Saint Louis

Post by basf_audio »

cmd.php actually...

Thanks,

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

Post by TheWitness »

Dave,

Try changing the line in lib\poller.php from the following:

if (preg_match("/^([a-zA-Z0-9_-]+):([+-]?\d+(\.\d+)?)$/", $values[$i], $matches)) {

to the following:

if (preg_match("/^([a-zA-Z0-9_-]+):([+-0123456789Ee.]+)$/", $values[$i], $matches)) {

Let me know how it goes.

Larry

p.s. I both verified the error and corrected it with this line of code in my testing.
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?
basf_audio
Posts: 40
Joined: Thu Feb 26, 2004 10:30 am
Location: Saint Louis

Working Correctly Now

Post by basf_audio »

Larry,

Ahhh... Thank you!!! This line provides the fix that I was looking for!

As always, thank you for your help!

_DS
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest