cactid upgrade causes problems

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

Moderators: Developers, Moderators

Post Reply
mavink
Posts: 8
Joined: Thu Feb 09, 2006 10:01 am

cactid upgrade causes problems

Post by mavink »

I upgraded cactid to version 0.8.6g today, and since then lots of data sources were no longer updated. I don't know what the old version of cactid was, but it was a version that didn't have spike suppression because that is why I wanted the upgrade :wink:

Cacti itself is the latest version available from cacti.net, with rrdtool 1.2 (downgrading to 1.0 didn't help). When I use cmd.php everything works fine...

My logfiles all end with:

Code: Select all

OK u:0.04 s:0.06 r:2.17
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
The cacti log keeps showing this:

Code: Select all

02/09/2006 03:58:15 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
02/09/2006 03:58:15 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select  poller_output.output,  poller_output.time,  poller_output.local_data_id,  poller_item.rr
d_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller
_output.rrd_name=poller_item.rrd_name)"
Does anybody have a clue what might be causing this problem?[/code]
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

did you update your data input methods like this : http://www.cacti.net/cactid_download.php
Important Notice for Cactid 0.8.6g and Onward

As of Cactid version 0.8.6g, scripts are no longer executed through the poller with a shell. This greatly increases speed as only one process needs to be created for every script call rather than two.

Because of this change, scripts that rely on the shell environment's PATH will no longer work. You must go through your scripts under "Data Input Methods" and make sure that the "Input Script" field always contains the complete path to any binary that is referenced. After making this change, you should clear your poller cache under "Utilities" for the changes to take effect.

For example, a script that was called as "perl /path/to/my/script.pl", must now be called as "/usr/bin/perl /path/to/my/script.pl". Be sure to update your scripts in "Data Input Methods" before upgrading Cactid to prevent data loss.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
mavink
Posts: 8
Joined: Thu Feb 09, 2006 10:01 am

Updates

Post by mavink »

I did those updates; all perl-scripts now use /usr/bin/perl instead of just "perl". Clearing the poller cache got me a strange result: after clicking "clear cache" I got a list of all items in the cache. Is that normal?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Yes, "clear poller cache" sould be renamed "rebuild poller cache" :)
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
mavink
Posts: 8
Joined: Thu Feb 09, 2006 10:01 am

More logging?

Post by mavink »

Is there a way to have cactid tell what data source it's trying to update? That would at least give me some idea of where to look. I've got over 3000 data sources, so examining each one for errors is not really an option :-?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

You can the poller logging level to "DEBUG", and select only "errors"
(in Settings -> General).

You'll then see the errors in log/cacti.log
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
mavink
Posts: 8
Joined: Thu Feb 09, 2006 10:01 am

Post by mavink »

The fun part is that I don't get any errors. It's just that one of the pollers appears to be stuck. It keeps on waiting for that one...
dpoulsen
Posts: 17
Joined: Fri Aug 26, 2005 10:46 am

Post by dpoulsen »

Make sure you have your cactid.conf file in the same directory as your cactid executable.
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

Did you ever get a resolution to this? I am running into the same type problem... my cactid.conf file was put into the /etc directory by default, I copied over to /usr/loca/bin... where my cactid executible sits but had the same result.

I am not upgrading cactid, I have just outgrown my cmd.php

[root@qualrrd01 cacti]# php poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.11

Waiting on 1/1 pollers.
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.9.2.1.58.0

CACTID: Host[0] DS[988] WARNING: Result from SCRIPT not valid. Partial Result: cpu_util_5...
Waiting on -1/1 pollers.
ERROR: Not enough arguments
OK u:0.00 s:0.00 r:1.00
Waiting on -1/1 pollers.
Waiting on -1/1 pollers.
Waiting on -1/1 pollers.
Waiting on -1/1 pollers.
Waiting on -1/1 pollers.
Waiting on -1/1 pollers.
Waiting on -1/1 pollers.
Waiting on -1/1 pollers.
Waiting on -1/1 pollers.

This just continues and continues....
mavink
Posts: 8
Joined: Thu Feb 09, 2006 10:01 am

Post by mavink »

The cactid.conf is in the same directory as the cactid binary; it connects to the database just fine, and does indeed update _SOME_ data sources. The only problem is that it appears to "hang" after some time, waiting for a poller to finish.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest