When I select cactid Graphs stop

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

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Chadd,

Please clarify Cactid086f or Cactid086f-1?

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?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

-bash-2.05b$ ./cactid -v
CACTID 0.8.6f Copyright 2002-2005 by The Cacti Group

Usage: cactid [start_host_id end_host_id]

If you do not specify [start_host_id end_host_id], Cactid will poll all hosts.

Cactid relies on the cactid.conf file that can exist in multiple locations.
The first location checked is the current directory. Optionally, it can be
placed in the '/etc' directory.

Cactid is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information, see http://www.cacti.net
-bash-2.05b$
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you regrab the source and try again. I just realized that the configure script did not get updated with the new version.

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
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

TheWitness wrote:Can you regrab the source and try again. I just realized that the configure script did not get updated with the new version.

TheWitness
You mean we must download and configure again?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Do I still need the pre-patched files, or would it be ok if I mv'd back the ones installed with cacti-0.8.6g?

I grabed the source again, and...

CACTID IS WORKING!!!!!!!!!!!!!!!

Thanks a million Larry!!
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I download cactid 0.8.6f-1 again and install
But I stiil have same problem
I try to run manually cactid. I get this:
[root@PIONEER ~]# cd /usr/local/cactid/bin/
[root@PIONEER bin]# ./cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: DEBUG: The path_php_server variable is /www/htdocs/cacti/script_server.php
CACTID: DEBUG: The path_cactilog variable is /www/htdocs/cacti/log/cacti.log
CACTID: DEBUG: The log_destination variable is 1
CACTID: DEBUG: The path_php variable is /www/php/bin/php
CACTID: DEBUG: The availability_method variable is 2
CACTID: DEBUG: The ping_recovery_count variable is 3
CACTID: DEBUG: The ping_failure_count variable is 2
CACTID: DEBUG: The ping_method variable is 2
CACTID: DEBUG: The ping_retries variable is 1
CACTID: DEBUG: The ping_timeout variable is 400
CACTID: DEBUG: The log_perror variable is 1
CACTID: DEBUG: The log_pwarn variable is 1
CACTID: DEBUG: The log_pstats variable is 1
CACTID: DEBUG: The threads variable is 1
CACTID: DEBUG: The polling interval is the system default
CACTID: DEBUG: The number of concurrent processes is 1
CACTID: DEBUG: The script timeout is 25
CACTID: DEBUG: StartHost='0', EndHost='0', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: DEBUG: The Maximum SNMP OID Get Size is 10
CACTID: CACTID: Version 0.8.6f starting
CACTID: MYSQL: Connecting to MySQL database 'cactidb' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cactidb' on 'localhost'...
CACTID: CACTID: Initializing Net-SNMP API
CACTID: CACTID: Initializing PHP Script Server
CACTID: DEBUG: Parent pid=23651, Script Server pid=0
CACTID: DEBUG: Initial Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cactidb' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cactidb' on 'localhost'...
CACTID: Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cactidb' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cactidb' on 'localhost'...
CACTID: Host[1] SNMP Result: Device does not require SNMP
CACTID: Host[1] No host availability check possible for '127.0.0.1'
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='0000-00-00 00:00:00',status_rec_date='0000-00-00 00:00:00',status_last_error='',min_time='0.000000',max_time='0.000000',cur_time='0.000000',avg_time='0.000000',total_polls='1772',failed_polls='0',availability='100.0000' where id='1'

CACTID: Host[1] DEBUG: The POPEN returned the following File Descriptor 6
CACTID: Host[1] DS[23] SCRIPT: perl /www/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 90016
CACTID: Host[1] DEBUG: The POPEN returned the following File Descriptor 6
CACTID: Host[1] DS[24] SCRIPT: perl /www/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 1048568
CACTID: Host[1] DEBUG: The POPEN returned the following File Descriptor 6
CACTID: Host[1] DS[25] SCRIPT: perl /www/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.08 5min:0.08 10min:0.02
CACTID: Host[1] DEBUG: The POPEN returned the following File Descriptor 6
CACTID: Host[1] DS[27] SCRIPT: perl /www/htdocs/cacti/scripts/unix_processes.pl, output: 105
CACTID: Host[1] DEBUG: The POPEN returned the following File Descriptor 6
CACTID: Host[1] DS[26] SCRIPT: perl /www/htdocs/cacti/scripts/unix_users.pl, output: 3
CACTID: DEBUG: SQLCMD: INSERT INTO poller_output (local_data_id,rrd_name,time,output) VALUES (23,'mem_buffers','2005-10-19 16:13:30','90016'),(24,'mem_swap','2005-10-19 16:13:30','1048568'),(25,'','2005-10-19 16:13:30','1min:0.08 5min:0.08 10min:0.02'),(27,'proc','2005-10-19 16:13:30','105'),(26,'users','2005-10-19 16:13:30','3')
CACTID: Host[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cactidb' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cactidb' on 'localhost'...
Segmentation fault
[root@PIONEER bin]# ./cactid -v
CACTID 0.8.6f Copyright 2002-2005 by The Cacti Group

Usage: cactid [start_host_id end_host_id]

If you do not specify [start_host_id end_host_id], Cactid will poll all hosts.

Cactid relies on the cactid.conf file that can exist in multiple locations.
The first location checked is the current directory. Optionally, it can be
placed in the '/etc' directory.

Cactid is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information, see http://www.cacti.net
And here is the log file from cacti:
10/19/2005 04:13:30 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_buffers_23.rrd --template mem_buffers 1129727610:90016
10/19/2005 04:13:30 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_swap_24.rrd --template mem_swap 1129727610:1048568
10/19/2005 04:13:30 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_load_1min_25.rrd --template load_1min:load_5min:load_15min 1129727610:0.08:0.08:0.02
10/19/2005 04:13:30 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_proc_27.rrd --template proc 1129727610:105
10/19/2005 04:13:30 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /www/htdocs/cacti/rra/localhost_users_26.rrd --template users 1129727610:3
10/19/2005 04:13:30 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.02' [map 10min->load_15min]
10/19/2005 04:13:30 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.08' [map 5min->load_5min]
10/19/2005 04:13:30 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.08' [map 1min->load_1min]
10/19/2005 04:13:30 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cactidb' on 'localhost'...
10/19/2005 04:13:30 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cactidb' on 'localhost'...
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: SQLCMD: INSERT INTO poller_output (local_data_id,rrd_name,time,output) VALUES (23,'mem_buffers','2005-10-19 16:13:30','90016'),(24,'mem_swap','2005-10-19 16:13:30','1048568'),(25,'','2005-10-19 16:13:30','1min:0.08 5min:0.08 10min:0.02'),(27,'proc','2005-10-19 16:13:30','105'),(26,'users','2005-10-19 16:13:30','3')
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DS[26] SCRIPT: perl /www/htdocs/cacti/scripts/unix_users.pl, output: 3
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 6
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DS[27] SCRIPT: perl /www/htdocs/cacti/scripts/unix_processes.pl, output: 105
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 6
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DS[25] SCRIPT: perl /www/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.08 5min:0.08 10min:0.02
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 6
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DS[24] SCRIPT: perl /www/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 1048568
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 6
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DS[23] SCRIPT: perl /www/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 90016
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] DEBUG: The POPEN returned the following File Descriptor 6

10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='0000-00-00 00:00:00',status_rec_date='0000-00-00 00:00:00',status_last_error='',min_time='0.000000',max_time='0.000000',cur_time='0.000000',avg_time='0.000000',total_polls='1772',failed_polls='0',availability='100.0000' where id='1'
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] No host availability check possible for '127.0.0.1'
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[1] SNMP Result: Device does not require SNMP
10/19/2005 04:13:30 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cactidb' on 'localhost'...
10/19/2005 04:13:30 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cactidb' on 'localhost'...
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
10/19/2005 04:13:30 PM - CACTID: Poller[0] Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
10/19/2005 04:13:30 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cactidb' on 'localhost'...
10/19/2005 04:13:30 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cactidb' on 'localhost'...
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: Initial Value of Active Threads is 0
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: Parent pid=23651, Script Server pid=0
10/19/2005 04:13:30 PM - CACTID: Poller[0] CACTID: Initializing PHP Script Server
10/19/2005 04:13:30 PM - CACTID: Poller[0] CACTID: Initializing Net-SNMP API
10/19/2005 04:13:30 PM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cactidb' on 'localhost'...
10/19/2005 04:13:30 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cactidb' on 'localhost'...
10/19/2005 04:13:30 PM - CACTID: Poller[0] CACTID: Version 0.8.6f starting
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 10
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The PHP Script Server is Not Required
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: StartHost='0', EndHost='0', TotalPHPScripts='0'
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The script timeout is 25
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The number of concurrent processes is 1
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The polling interval is the system default
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The threads variable is 1
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The log_pstats variable is 1
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The log_pwarn variable is 1
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The log_perror variable is 1
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The ping_timeout variable is 400
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The ping_retries variable is 1
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The ping_method variable is 2
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The ping_failure_count variable is 2
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The ping_recovery_count variable is 3
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The availability_method variable is 2
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The path_php variable is /www/php/bin/php
10/19/2005 04:13:30 PM - CACTID: Poller[0] DEBUG: The log_destination variable is 1
can anybody tell me what must I do step by step?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Ok, It appeared to be working in the first couple of polls, but now it is not. All my hosts when to a "down" state, and this is what I get when I run cactid by itself:

cactid in free(): error: chunk is already free
Abort trap (core dumped)
-su-2.05b#

FYI, it was running and completing the poll, then all the sudden it started core dumping.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

did you get a core dump file in the cactid directory?

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?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Yes. It is too large to attach to a post, even if I tar gzip and compress it. Would you like me to send you them? To what address/where?

-chadd.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

How bout just the stackdump file?

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?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

I'm sorry, I don't see a 'stackdump' file. Where would it be? The only extra file I see is cactid.core.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That's the one. Please send along.

Larry
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?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Well, looks like I deleted that file... Opps.. Sorry. And, now I am running cactid-F1 and it is not core dumping any more.. Don't know what changed. Though, it is not working correctly. all the devices go into a down state, and none of the graphs update. Again, if I go back to the cmd.php poller, they all come back to an up state, and the graphs start updating again.
Marco
Posts: 3
Joined: Wed Oct 26, 2005 4:10 am

Post by Marco »

chadd wrote:Though, it is not working correctly. all the devices go into a down state, and none of the graphs update. Again, if I go back to the cmd.php poller, they all come back to an up state, and the graphs start updating again.
I can confirm this. IMO could it be, that cactid was starting from the wrong path? The path seems to change to /usr/sbin/ and then starting cactid.
But cactid seems not to know where the configuration is.
I've just created a little skript:
I've moved cactid to cactidd an the script called "cactid"

#!/bin/bash
cd /etc/cacti && /usr/sbin/cactidd

Now it seems to work. So I think the problem is poller-config with wrong path or wrong config declaration in cactid?

so long
Marco

PS: sorry, for my terrible English...
drose12
Posts: 31
Joined: Thu Mar 10, 2005 11:02 am

Post by drose12 »

how many threads do you have set for cactid? if you set it to 1, does it work?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests