Wrong string numerical value got from Cacti SNMP poller
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
For string values, this fix is now in SVN.
TheWitness
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?
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?
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
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
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"
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"
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Use 'branches/087' and not main when getting svn.
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 3 guests