Spine : Partial RRD update

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

Moderators: Developers, Moderators

Post Reply
Gamb
Posts: 17
Joined: Thu Nov 22, 2007 4:36 am
Location: France

Spine : Partial RRD update

Post by Gamb »

Hello,

I'm using cacti 0.8.7a on a red hat server. It work fine whit cmd.php but when i use spine, i have data sources not updated.
I set Host Availability Method to None in the settings menu.

Only device with snmp are updated.
In cacti log, i have this :

Code: Select all

11/22/2007 10:45:09 AM - SYSTEM STATS: Time:8.2160 Method:spine Processes:1 Threads:1 Hosts:21 HostsPerProcess:21 DataSources:47 RRDsProcessed:18
11/22/2007 10:45:09 AM - SPINE: Poller[0] Time: 7.5779 s, Threads: 1, Hosts: 21
11/22/2007 10:45:09 AM - SPINE: Poller[0] Host[41] No Host Availability Method Selected 
...
Why spine do not update device without snmp ?
Thank you, Gamb.

Code: Select all

Linux xxx 2.6.18-8.1.15.el5 #1 SMP Thu Oct 4 04:06:15 EDT 2007 i686 i686 i386 GNU/Linux
NET-SNMP version: 5.3.1
PHP 5.1.6
RRDtool 1.2.23
mysql Ver 14.12 Distrib 5.0.22
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Let me get this right:

1) You choose no availability check
2) You have an SNMP version selected and SNMP Data Soures
3) In this setup, the device is not being polled

Is that correct? Thought I fixed that. If so, I must blame on too much work, too little play.

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?
Gamb
Posts: 17
Joined: Thu Nov 22, 2007 4:36 am
Location: France

Post by Gamb »

Hi Witness,

I monitor services on devices with local scripts (mysql, ldap, squid ...).
By default, I set SNMP version to "not In Use" in Management->Devices->Device_X menu. And I set "Downed Device Detection" to "None", because I have a lot of access list.

I have some devices with snmp services, well I configure the SNMP for this device.

With cmd.php, its work, the poller update data sources for each device.

With SPINE, the poller update data source only for device who have SNMP configured.

Why spine doesn't work like cmd.php ?

Thank you, Gamb.
Gamb
Posts: 17
Joined: Thu Nov 22, 2007 4:36 am
Location: France

Post by Gamb »

For example in cacti log :

Code: Select all

 11/22/2007 04:05:09 PM - SYSTEM STATS: Time:8.1714 Method:spine Processes:1 Threads:1 Hosts:21 HostsPerProcess:21 DataSources:45 RRDsProcessed:16
11/22/2007 04:05:09 PM - SPINE: Poller[0] Time: 8.0996 s, Threads: 1, Hosts: 21
 11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[41] No Host Availability Method Selected
11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[40] No Host Availability Method Selected
11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[39] No Host Availability Method Selected
 11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[37] No Host Availability Method Selected
11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[35] No Host Availability Method Selected
11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[32] No Host Availability Method Selected
11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[28] No Host Availability Method Selected
11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[27] No Host Availability Method Selected
11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[22] No Host Availability Method Selected
 11/22/2007 04:05:09 PM - SPINE: Poller[0] Host[16] DS[43] SCRIPT: /home/www/cacti-0.8.7a/scripts/sensor.pl -H 192.168.x.x -l, output: lum:12.8
11/22/2007 04:05:05 PM - SPINE: Poller[0] Host[16] DS[42] SCRIPT: /home/www/cacti-0.8.7a/scripts/sensor.pl -H 192.168.x.x -h, output: hum:28.2
11/22/2007 04:05:02 PM - SPINE: Poller[0] Host[16] DS[39] SCRIPT: /home/www/cacti-0.8.7a/scripts/sensor.pl -H 192.168.x.x -t, output: temp:25.3
 11/22/2007 04:05:01 PM - SPINE: Poller[0] Host[16] Host has no information for recache.
11/22/2007 04:05:01 PM - SPINE: Poller[0] Host[16] No Host Availability Method Selected
Cacti frontend et spine update to 0.8.7a.


Log with cmd.php :

Code: Select all

11/22/2007 04:25:19 PM - SYSTEM STATS: Time:17.2259 Method:cmd.php Processes:1 Threads:N/A Hosts:21 HostsPerProcess:21 DataSources:45 RRDsProcessed:35
11/22/2007 04:25:19 PM - CMDPHP: Poller[0] Time: 16.9917 s, Theads: N/A, Hosts: 20
11/22/2007 04:25:19 PM - CMDPHP: Poller[0] Host[41] DS[95] CMD: /home/www/cacti-0.8.7a/scripts/ent_session.sh ent4, output: invites:252 connectes:184
11/22/2007 04:25:18 PM - CMDPHP: Poller[0] Host[41] DS[92] CMD: /home/www/cacti-0.8.7a/scripts/ent_mem.sh ent4, output: max:1514668032 total:516668896 free:147997216
11/22/2007 04:25:18 PM - CMDPHP: Poller[0] Host[41] PING: Ping not performed due to setting.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Run spine from the command line once with logging set to low. See if you get any nasty error messages from net-snmp. Post your output. It may be a session initialization issue, or simply buggy code.

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?
Gamb
Posts: 17
Joined: Thu Nov 22, 2007 4:36 am
Location: France

Post by Gamb »

Hey Witness,

I run spine binary with cacti user.

$ /path_to_spine/bin/spine

Code: Select all

SPINE: Using spine config file [../etc/spine.conf]
SPINE: Version 0.8.7a starting
SPINE: Time: 7.6759 s, Threads: 1, Hosts: 21
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Dump your db and pm to me.

Thanks,

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?
Gamb
Posts: 17
Joined: Thu Nov 22, 2007 4:36 am
Location: France

Post by Gamb »

Hey,

Witness, you have new pm :D

Thank you, Gamb.
Gamb
Posts: 17
Joined: Thu Nov 22, 2007 4:36 am
Location: France

Post by Gamb »

Hello,

My default linux server template have one "Associated Data Queries".
If I not set SNMP parameters for a device based on this template, spine do not update this device.

Image

If I delete all "Associated Data Queries" for this device, spine execute scripts and update RRDs.

Gamb.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests