Wrong string numerical value got from Cacti SNMP poller

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

Moderators: Developers, Moderators

mkalle
Posts: 9
Joined: Tue Aug 17, 2010 7:58 am

Post by mkalle »

if i can assist in any way, let me know. we can setup a session if needed.

i am GMT+1
BorisL
Cacti User
Posts: 131
Joined: Sat Mar 31, 2007 9:21 am
Contact:

Post by BorisL »

21088 = 0x5260
147786674221957 = 0x866944383385

There is a broken hex detection in spine, The Witness will address it.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

For string values, this fix is now in SVN.

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?
mkalle
Posts: 9
Joined: Tue Aug 17, 2010 7:58 am

Post by mkalle »

unable to compile.


gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT poller.o -MD -MP -MF .deps/poller.po -c -o poller.o poller.c
poller.c: In function âchildâ:
poller.c:65: error: too many arguments to function âpoll_deviceâ
poller.c: At top level:
poller.c:108: error: conflicting types for âpoll_deviceâ
poller.h:35: error: previous declaration of âpoll_deviceâ was here
make: *** [poller.o] Error 1
mkalle
Posts: 9
Joined: Tue Aug 17, 2010 7:58 am

Post by mkalle »

backported the fix into the orginal 0.8.7g rls,

works

thx
mkalle
Posts: 9
Joined: Tue Aug 17, 2010 7:58 am

Post by mkalle »

Something is still not working properly.

08/23/2010 12:51:02 PM - CMDPHP: Poller[0] Host[114] DS[1864] SNMP: v1: ns1.u.net, dsname: TotalRequestBytes, oid: .1.3.6.1.4.1.5951.4.1.3.1.1.31.19.67.83.86.73.80.95.98.101.114.108.105.110.103.115.107.101.46.100.107, output: 37179396414
08/23/2010 12:52:02 PM - SPINE: Poller[0] Host[114] TH[1] DS[1864] SNMP: v1: ns1.u.net, dsname: TotalResponseBytes, oid: .1.3.6.1.4.1.5951.4.1.3.1.1.33.19.67.83.86.73.80.95.98.101.114.108.105.110.103.115.107.101.46.100.107, value: 0


the value is not 0 :O

SNMPv2-SMI::enterprises.5951.4.1.3.1.1.33.19.67.83.86.73.80.95.98.101.114.108.105.110.103.115.107.101.46.100.107 = STRING: "613698668010"
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You used main. Dont do that.
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?
mkalle
Posts: 9
Joined: Tue Aug 17, 2010 7:58 am

Post by mkalle »

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

Post by TheWitness »

Use 'branches/087' and not main when getting svn.

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?
mkalle
Posts: 9
Joined: Tue Aug 17, 2010 7:58 am

Post by mkalle »

arh, not that familiar with svn

downloaded the newste version of spine, compiles fine after bootstrap, and works like a charme.

thank you for the fix
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests