Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
Gamb
Posts: 17 Joined: Thu Nov 22, 2007 4:36 am
Location: France
Post
by Gamb » Thu Nov 22, 2007 8:33 am
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
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Thu Nov 22, 2007 8:46 am
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
Gamb
Posts: 17 Joined: Thu Nov 22, 2007 4:36 am
Location: France
Post
by Gamb » Thu Nov 22, 2007 9:25 am
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 » Thu Nov 22, 2007 10:08 am
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.
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Thu Nov 22, 2007 11:58 am
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
Gamb
Posts: 17 Joined: Thu Nov 22, 2007 4:36 am
Location: France
Post
by Gamb » Fri Nov 23, 2007 3:50 am
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
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Fri Nov 23, 2007 12:37 pm
Dump your db and pm to me.
Thanks,
TheWitness
Gamb
Posts: 17 Joined: Thu Nov 22, 2007 4:36 am
Location: France
Post
by Gamb » Mon Nov 26, 2007 3:46 am
Hey,
Witness, you have new pm
Thank you, Gamb.
Gamb
Posts: 17 Joined: Thu Nov 22, 2007 4:36 am
Location: France
Post
by Gamb » Mon Nov 26, 2007 10:20 am
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.
If I delete all "Associated Data Queries" for this device, spine execute scripts and update RRDs.
Gamb.
Users browsing this forum: No registered users and 0 guests