upgraded to 0.8.7 - spine can't query some interfaces

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Misak
Posts: 5
Joined: Sat Apr 02, 2005 9:10 am

upgraded to 0.8.7 - spine can't query some interfaces

Post by Misak »

Hi there,
After upgrade to 0.8.7 spine some of my cisco interface graphs are broken.

In debug log:

10/31/2007 12:13:52 PM - SPINE: Poller[0] Host[2] DS[3018] WARNING: Result from SNMP not valid. Partial Result: ...
10/31/2007 12:13:52 PM - SPINE: Poller[0] Host[2] DS[3018] SNMP: v2: x.x.net, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.28, value: U

getting same OID by snmpget working fine, also cmd.php poller is working, but i can't use it because of high volume of data and its slowness.

help wanted
mgeni
Cacti User
Posts: 65
Joined: Fri Mar 25, 2005 8:12 am

Post by mgeni »

I have similar problem. Any resolutions?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

So, this worked before, right? 0.8.6j?

This is the first I have heard of this problem.

Are other interfaces on the same device working? What is the device status on the device list?
[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]
Misak
Posts: 5
Joined: Sat Apr 02, 2005 9:10 am

Post by Misak »

So, this worked before, right? 0.8.6j?
Yes, no problem before 0.8.7
Are other interfaces on the same device working? What is the device status on the device list?
Yes, some of the interfaces are working. Devices is up. If I change poller to cmd.php, all graphs seem to work.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Decrease your OID's per get request on the devices in question. Also, increase your timeout on these devices. See if this has any affect. Please post your findings.

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?
Misak
Posts: 5
Joined: Sat Apr 02, 2005 9:10 am

Post by Misak »

No luck. There was problem changing OID's per get request value from interface, i've changed it directly in database to 1, and still no luck.
Cacti Version - 0.8.7
Plugin Architecture - 1.2
Poller Type - Cactid v
Server Info - Linux 2.6.18-8.1.14.el5
Web Server - Apache/2.2.3 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, gd, imap, ldap, mbstring, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite
MySQL - 5.0.22
RRDTool - 1.2.23
SNMP - 5.3.1
Plugins
  • Thresholds (thold - v0.3.7)
    Create Aggregate Graphs (aggregate - v0.63)
    Host Info (hostinfo - v0.2)
    IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4c)
    killspike (killspike - v0.1.0a)
    ReportIt (ReportIt - v0.5.1)
    rrdclean (RRD Cleaner - v1.2)
    Global Plugin Settings (settings - v0.3)
    Network Tools (tools - v0.2)
    Update Checker (update - v0.3)
    Real-time statistics (zond - v0.3)
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

I have that problem too.

From cacti log:
11/02/2007 02:37:30 PM - SPINE: Poller[0] Host[1] DS[7135] WARNING: Result from SNMP not valid. Partial Result: ...
11/02/2007 02:37:30 PM - SPINE: Poller[0] Host[1] DS[7135] SNMP: v2: 127.0.0.1, dsname: proc_mem, oid: .1.3.6.1.2.1.25.5.1.1.2.4861, value: U
11/02/2007 02:37:30 PM - SPINE: Poller[0] Host[1] DS[470] WARNING: Result from SNMP not valid. Partial Result: ...
11/02/2007 02:37:30 PM - SPINE: Poller[0] Host[1] DS[470] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: U
11/02/2007 02:37:30 PM - SPINE: Poller[0] Host[1] DS[470] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 83290763
11/02/2007 02:37:30 PM - SPINE: Poller[0] Host[1] DS[472] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, value: 83290763
11/02/2007 02:37:30 PM - SPINE: Poller[0] Host[1] DS[472] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, value: 1417828817
---------
From console:

Code: Select all

su cacti
sh-3.00$ snmpwalk -v2c -c pub*** 127.0.0.1 .1.3.6.1.2.1.2.2.1.10.1
IF-MIB::ifInOctets.1 = Counter32: 83339570
sh-3.00$ snmpwalk -v2c -c pub*** 127.0.0.1 .1.3.6.1.2.1.2.2.1.16.1
IF-MIB::ifOutOctets.1 = Counter32: 83359836
Cacti Version - 0.8.7
Plugin Architecture - 1.2
Poller Type - Cactid v
Server Info - Linux 2.6.9-55.0.9.ELsmp
Web Server - Apache/2.0.52 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbg, bcmath, gd, ldap, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, snmp
MySQL - 5.0.22-log
RRDTool - 1.2.23
SNMP - 5.1.2
Plugins
  • impblinding (impblinding - v0.0.192b)
    Update Checker (update - v0.4)
    Network Tools (tools - v0.2)
    Host Info (hostinfo - v0.2)
    Device Tracking (mactrack - v1.1)
    Dataquery (dataquery - v0.1.2a)
    PHP Network Weathermap (weathermap - v0.93)
    Thresholds (thold - v0.3.4)
    Poller Performance Report (pollperf - v0.32)
    ipsubnet - v0.4b
    Configuration manager (configmanager - v0.6)
    Create Aggregate Graphs (aggregate - v0.63)
    Poller Performance Report (pollperf - v0.32)
    Real-time statistics (zond - v0.3)
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

and some more info. Use tcpdump:
Log:

Code: Select all

11/02/2007 03:13:30 PM - SPINE: Poller[0] Host[1] DS[7135] WARNING: Result from SNMP not valid. Partial Result: ...
11/02/2007 03:13:30 PM - SPINE: Poller[0] Host[1] DS[7135] SNMP: v2: 127.0.0.1, dsname: proc_mem, oid: .1.3.6.1.2.1.25.5.1.1.2.4861, value: U
tcpdump:

Code: Select all

15:13:30.375494 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], proto 17, length: 82) system.kxxxl.57688 > system.kxxxl.snmp: [udp sum ok]  { SNMPv2c C=pxxxc { GetRequest(32) R=849929638  25.5.1.1.2.4861 } }
	15:13:30.376153 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], proto 17, length: 82) system.kxxxl.snmp > system.kxxxl.57688: [udp sum ok]  { SNMPv2c C=pxxxc { GetResponse(32) R=849929638  25.5.1.1.2.4861=[noSuchInstance] } }
All OK.


Next from spine log:
11/02/2007 03:13:30 PM - SPINE: Poller[0] Host[1] DS[470] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: U
11/02/2007 03:13:30 PM - SPINE: Poller[0] Host[1] DS[471] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 83474748
11/02/2007 03:13:30 PM - SPINE: Poller[0] Host[1] DS[472] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, value: 1501328976
11/02/2007 03:13:30 PM - SPINE: Poller[0] Host[1] DS[473] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, value: 2965868304
11/02/2007 03:13:30 PM - SPINE: Poller[0] Host[1] DS[474] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, value: 299495080
tcpdump:
15:13:30.435375 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 144) system.kxxxl.57688 > system.kxxxl.snmp: [udp sum ok] { SNMPv2c C=pxxxc { GetRequest(94) R=849929639
interfaces.ifTable.ifEntry.ifOutOctets.1
interfaces.ifTable.ifEntry.ifInOctets.2
interfaces.ifTable.ifEntry.ifOutOctets.3
interfaces.ifTable.ifEntry.ifOutOctets.4
interfaces.ifTable.ifEntry.ifOutOctets.5 } }
15:13:30.439959 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 167) system.kxxxl.snmp > system.kxxxl.57688: [udp sum ok] { SNMPv2c C=pxxxc { GetResponse(116) R=849929639
interfaces.ifTable.ifEntry.ifOutOctets.1=83474748
interfaces.ifTable.ifEntry.ifInOctets.2=1501328976
interfaces.ifTable.ifEntry.ifOutOctets.3=2965868304
interfaces.ifTable.ifEntry.ifOutOctets.4=299495080
interfaces.ifTable.ifEntry.ifOutOctets.5=2425834433 } }
all data is UNcorrect !

And last from console:
sh-3.00$
sh-3.00$ snmpwalk -v2c -c pxxxc 127.0.0.1 .1.3.6.1.2.1.2.2.1.16.1
IF-MIB::ifOutOctets.1 = Counter32: 83526627
sh-3.00$ snmpwalk -v2c -c pxxxc 127.0.0.1 .1.3.6.1.2.1.2.2.1.10.1
IF-MIB::ifInOctets.1 = Counter32: 83526955
tcpdump:
tcpdump -vv -s 1208 -i lo -f 'udp port 161'
tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 1208 bytes
15:28:25.357053 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 80) system.kxxxl.58330 > system.kxxxl.snmp: [udp sum ok] { SNMPv2c C=pxxxc { GetNextRequest(30) R=2072213624 interfaces.ifTable.ifEntry.ifOutOctets.1 } }
15:28:25.359246 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 84) system.kxxxl.snmp > system.kxxxl.58330: [udp sum ok] { SNMPv2c C=pxxxc { GetResponse(34) R=2072213624 interfaces.ifTable.ifEntry.ifOutOctets.2=316610312 } }
15:28:25.359413 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 80) system.kxxxl.58330 > system.kxxxl.snmp: [udp sum ok] { SNMPv2c C=pxxxc { GetRequest(30) R=2072213625 interfaces.ifTable.ifEntry.ifOutOctets.1 } }
15:28:25.360478 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 84) system.kxxxl.snmp > system.kxxxl.58330: [udp sum ok] { SNMPv2c C=pxxxc { GetResponse(34) R=2072213625 interfaces.ifTable.ifEntry.ifOutOctets.1=83526627 } }
15:28:31.230224 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 80) system.kxxxl.58330 > system.kxxxl.snmp: [udp sum ok] { SNMPv2c C=pxxxc { GetNextRequest(30) R=608131911 interfaces.ifTable.ifEntry.ifInOctets.1 } }
15:28:31.231419 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 84) system.kxxxl.snmp > system.kxxxl.58330: [udp sum ok] { SNMPv2c C=pxxxc { GetResponse(34) R=608131911 interfaces.ifTable.ifEntry.ifInOctets.2=1204579138 } }
15:28:31.231589 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 80) system.kxxxl.58330 > system.kxxxl.snmp: [udp sum ok] { SNMPv2c C=pxxxc { GetRequest(30) R=608131912 interfaces.ifTable.ifEntry.ifInOctets.1 } }
15:28:31.232642 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 17, length: 84) system.kxxxl.snmp > system.kxxxl.58330: [udp sum ok] { SNMPv2c C=pxxxc { GetResponse(34) R=608131912 interfaces.ifTable.ifEntry.ifInOctets.1=83526955 } }

Look`s like a bug in Spine.
Attachments
log_from_Spine.txt
full log from Spine
(144.28 KiB) Downloaded 131 times
log_from_tcpdump.txt
Tcpdump log
(82.79 KiB) Downloaded 197 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So you're assuming it is an offset error?
Reinhard
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I see the issue... Let's work this out together... I will post a revised snmp.c file in a bit.

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I need the entire set of messages for ths host. Need to know order and such. So, please provide the entire log for this host.

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?
Misak
Posts: 5
Joined: Sat Apr 02, 2005 9:10 am

Post by Misak »

i'll send you output of /usr/bin/spine --verbosity=5 2 2 privately.
gthe_
Posts: 1
Joined: Fri Nov 02, 2007 11:52 am

Post by gthe_ »

TheWitness wrote:I need the entire set of messages for ths host. Need to know order and such. So, please provide the entire log for this host.

TheWitness
My full output (spine log) is one post before.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please attempt to use the following poller.c. I reviewed the logic and it looks good, I am thinking maybe this is a memory pollution problem. So I swept the memory space a little bit to prevent this.

TheWitness
Attachments
poller.c
(45.05 KiB) Downloaded 241 times
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?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

TheWitness wrote:Please attempt to use the following poller.c. I reviewed the logic and it looks good, I am thinking maybe this is a memory pollution problem. So I swept the memory space a little bit to prevent this.

TheWitness
Problem is still exist.
I am add some code to [poller.c] line 767, for debug :

Code: Select all

...............................
if (num_oids >= host->max_oids) {
   for (it = 0; it < num_oids; it++) {
      SPINE_LOG(("DEBUG --- 100_1 = i=[%i], snmp_oids[i].result=[%s], oid=[%s], CHECK=[%i]", it, snmp_oids[it].result, snmp_oids[it].oid, (!IS_UNDEFINED(snmp_oids[it].result))));
   }						
snmp_get_multi(host, snmp_oids, num_oids);
............................
after in my log:
...............
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[0], snmp_oids.result=[266], oid=[.1.3.6.1.4.1.2021.11.53.0], CHECK=[1]
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[1], snmp_oids.result=[0], oid=[.1.3.6.1.4.1.2021.11.51.0], CHECK=[1]
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[2], snmp_oids.result=[0], oid=[.1.3.6.1.4.1.2021.11.52.0], CHECK=[1]
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[3], snmp_oids.result=[0], oid=[.1.3.6.1.4.1.2021.11.50.0], CHECK=[1]
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[4], snmp_oids.result=[0], oid=[.1.3.6.1.4.1.2021.10.1.3.3], CHECK=[1]
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[5], snmp_oids.result=[4364636], oid=[.1.3.6.1.4.1.2021.10.1.3.1], CHECK=[1]
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[6], snmp_oids.result=[], oid=[.1.3.6.1.4.1.2021.10.1.3.2], CHECK=[1]
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[7], snmp_oids.result=[], oid=[.1.3.6.1.4.1.2021.4.6.0], CHECK=[1]
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[8], snmp_oids.result=[], oid=[.1.3.6.1.4.1.2021.4.5.0], CHECK=[1]
11/04/2007 02:51:09 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[9], snmp_oids.result=[], oid=[.1.3.6.1.4.1.2021.4.6.0], CHECK=[1]
...............
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[0], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.2.2.1.12.7], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[1], snmp_oids[i].result=[503604], oid=[.1.3.6.1.2.1.2.2.1.20.1], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[2], snmp_oids[i].result=[0], oid=[.1.3.6.1.2.1.2.2.1.19.1], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[3], snmp_oids[i].result=[1033764], oid=[.1.3.6.1.2.1.2.2.1.13.1], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[4], snmp_oids[i].result=[45160746], oid=[.1.3.6.1.2.1.2.2.1.19.2], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[5], snmp_oids[i].result=[135], oid=[.1.3.6.1.2.1.2.2.1.20.2], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[6], snmp_oids[i].result=[3], oid=[.1.3.6.1.2.1.2.2.1.14.2], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[7], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.2.2.1.14.3], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[8], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.2.2.1.13.3], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[9], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.2.2.1.19.3], CHECK=[0]
......................
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[0], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.25.5.1.1.2.3940], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[1], snmp_oids[i].result=[0], oid=[.1.3.6.1.2.1.25.5.1.1.1.3940], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[2], snmp_oids[i].result=[0], oid=[.1.3.6.1.2.1.25.5.1.1.2.4898], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[3], snmp_oids[i].result=[0], oid=[.1.3.6.1.2.1.25.5.1.1.1.4898], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[4], snmp_oids[i].result=[0], oid=[.1.3.6.1.2.1.25.5.1.1.2.4900], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[5], snmp_oids[i].result=[312816222], oid=[.1.3.6.1.2.1.25.5.1.1.1.4900], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[6], snmp_oids[i].result=[447131524], oid=[.1.3.6.1.2.1.25.5.1.1.2.5863], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[7], snmp_oids[i].result=[4298289], oid=[.1.3.6.1.2.1.25.5.1.1.1.5863], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[8], snmp_oids[i].result=[0], oid=[.1.3.6.1.2.1.25.5.1.1.1.5266], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[9], snmp_oids[i].result=[0], oid=[.1.3.6.1.2.1.25.5.1.1.2.5266], CHECK=[1]
........................
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[0], snmp_oids[i].result=[332], oid=[.1.3.6.1.2.1.25.5.1.1.1.5265], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[1], snmp_oids[i].result=[2], oid=[.1.3.6.1.2.1.25.5.1.1.2.5265], CHECK=[1]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[2], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.25.5.1.1.2.5762], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[3], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.25.5.1.1.1.5762], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[4], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.25.5.1.1.2.3889], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[5], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.25.5.1.1.1.3889], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[6], snmp_oids[i].result=, oid=[.1.3.6.1.2.1.25.5.1.1.1.3899], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[7], snmp_oids[i].result=[U], oid=[.1.3.6.1.2.1.25.5.1.1.2.3899], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[8], snmp_oids[i].result=[U], oid=[.1.3.6.1.2.1.25.5.1.1.2.3710], CHECK=[0]
11/04/2007 02:51:13 AM - SPINE: Poller[0] DEBUG --- 100_1 = i=[9], snmp_oids[i].result=[U], oid=[.1.3.6.1.2.1.25.5.1.1.1.3710], CHECK=[0]


for row with CHECK=[0] (IS_UNDEFINED(snmp_oids[it].result)) == true) data is loss, because in [snmp.c] line 527:

Code: Select all

if (!IS_UNDEFINED(snmp_oids[i].result)) {
	#ifdef USE_NET_SNMP
	snmp_snprint_value(snmp_oids[i].result, sizeof(snmp_oids[i].result), vars->name, vars->name_length, vars);
	#else
	sprint_value(snmp_oids[i].result, vars->name, vars->name_length, vars);
	#endif
vars = vars->next_variable;
}
this row is not processed
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests