Error in poller_output?

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

Moderators: Developers, Moderators

Post Reply
chadw
Cacti User
Posts: 52
Joined: Thu Jul 17, 2003 7:20 am

Error in poller_output?

Post by chadw »

Please see the following thread regarding an error when retrieving snmp data containing "KBytes":

http://forums.cacti.net/viewtopic.php?t=8165

It seems there are several OID's that may append a "Bytes" or "KBytes" string to the result, but it appears it's causing an error in this case.
chadw
Cacti User
Posts: 52
Joined: Thu Jul 17, 2003 7:20 am

Post by chadw »

In poller_output when the polling is occuring I can see this:
mysql> select * from poller_output where rrd_name = 'meminformInstalled';
+---------------+--------------------+---------------------+----------------+
| local_data_id | rrd_name | time | output |
+---------------+--------------------+---------------------+----------------+
| 2176 | meminformInstalled | 2005-06-23 16:25:01 | 1048112 KBytes |
+---------------+--------------------+---------------------+----------------+
1 row in set (0.00 sec)

mysql>
The output turns into a "U" by the time it's output to the rrdtool update command:
POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti-0.8.6e/rra/nltechsupport_meminforminstalled_2176.rrd --template meminformInstalled N:U
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Is this a script or snmp value?
[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
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Upgrade to 0.8.6e and this problem "should" go away. The "KBytes" is not a valid value and in 0.8.6e cmd.php and 0.8.6e cactid, the "KBytes" will be stripped making the end result numeric, which is Ok.

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?
chadw
Cacti User
Posts: 52
Joined: Thu Jul 17, 2003 7:20 am

Post by chadw »

I'm already at 0.8.6e cacti, I'm still using 0.8.6d for cactid. I'll try using the new cactid and let you know.

Thanks.
chadw
Cacti User
Posts: 52
Joined: Thu Jul 17, 2003 7:20 am

Post by chadw »

Upgrading to cactid 0.8.6e did the trick.

Thanks!
soundombj
Posts: 5
Joined: Tue Aug 23, 2005 9:40 pm

still have the same errors

Post by soundombj »

chadw wrote:Upgrading to cactid 0.8.6e did the trick.

Thanks!
but mine newly installed with:
cacti 0.8.6f
cactid 0.8.6e

when poller type is cmd.php , still have the same errors

any suggestion?

thx
Last edited by soundombj on Sun Sep 04, 2005 10:15 pm, edited 1 time in total.
soundombj
Posts: 5
Joined: Tue Aug 23, 2005 9:40 pm

Post by soundombj »

09/05/2005 10:50:05 AM - CMDPHP: Poller[0] Host[7] DS[109] WARNING: Result from SNMP not valid. Partial Result: 1047956 KBytes
Attachments
无标题.png
无标题.png (139.26 KiB) Viewed 2778 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Seems unusual. Please review the function named "strip_quotes" in lib/functions.php. That function should be removing all NON Numeric data from the end of the string.

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