upgrade 0.8.5 to 0.8.6, rrd files stop to be update

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

Moderators: Developers, Moderators

Post Reply
anacronik989

upgrade 0.8.5 to 0.8.6, rrd files stop to be update

Post by anacronik989 »

I upgrade my cacti and i since the upgrade no graph are updated.

php:
PHP 4.3.4 (cgi) (built: Nov 10 2003 10:36:06)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

system:
fedora core 1

mysql:
server version: 3.23.58

i check if my database is broken. i dont think that.
I check rights on file, all are okay.

i set cactid as poller (php is too long).
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1

in log file:
09/24/2004 01:50:15 PM - CACTID: Poller[0] Host[119] ERROR: SNMP timeout detected [500 milliseconds], ignoring host '10.42.247.249'
09/24/2004 01:51:04 PM - CACTID: Poller[0] Host[257] ERROR: The POPEN timed out
09/24/2004 01:55:45 PM - CACTID: Poller[0] Host[257] ERROR: The POPEN timed out
09/24/2004 01:55:47 PM - CACTID: Poller[0] Host[262] ERROR: The POPEN timed out
09/24/2004 01:57:33 PM - CACTID: Poller[0] Host[257] ERROR: The POPEN timed out
09/24/2004 02:00:47 PM - CACTID: Poller[0] Host[257] ERROR: The POPEN timed out
09/24/2004 02:07:03 PM - CACTID: Poller[0] Host[251] ERROR: The POPEN timed out
09/24/2004 02:07:06 PM - CACTID: Poller[0] Host[257] ERROR: The POPEN timed out
09/24/2004 02:30:26 PM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '0-1-248:1' for key 1
09/24/2004 02:30:26 PM - CACTID: Poller[0] ERROR: Problem with MySQL: Duplicate entry '0-1-248:2' for key 1

What can i do to update my rrdfiles....

Thanks for help
anacronik
Guest

Post by Guest »

i do ps -aux | grep cact

the result is:
506 6045 0.0 0.0 2568 784 ? S 14:30 0:00 /bin/sh -c php /var/www/html/cacti/poller.php > /dev/null 2>&1
506 6048 0.0 2.6 36544 27660 ? S 14:30 0:00 php /var/www/html/cacti/poller.php
506 13282 0.0 0.0 2584 788 ? S 14:35 0:00 /bin/sh -c php /var/www/html/cacti/poller.php > /dev/null 2>&1
506 13283 0.0 2.7 36436 27888 ? S 14:35 0:00 php /var/www/html/cacti/poller.php
506 19098 0.0 0.0 3120 780 ? S 14:40 0:00 /bin/sh -c php /var/www/html/cacti/poller.php > /dev/null 2>&1
506 19099 0.0 2.7 36896 28108 ? S 14:40 0:00 php /var/www/html/cacti/poller.php
506 24145 0.0 0.0 3488 780 ? S 14:45 0:00 /bin/sh -c php /var/www/html/cacti/poller.php > /dev/null 2>&1
506 24146 0.0 2.7 36124 28332 ? S 14:45 0:00 php /var/www/html/cacti/poller.php
root 28798 0.0 0.0 4036 524 pts/3 S 14:49 0:00 tail -f cacti.log
506 29524 0.0 0.0 3212 784 ? S 14:50 0:00 /bin/sh -c php /var/www/html/cacti/poller.php > /dev/null 2>&1
506 29525 0.0 2.7 37024 28524 ? S 14:50 0:00 php /var/www/html/cacti/poller.php
506 2015 0.0 0.0 3288 784 ? S 14:55 0:00 /bin/sh -c php /var/www/html/cacti/poller.php > /dev/null 2>&1
506 2016 0.1 2.7 37772 28744 ? S 14:55 0:00 php /var/www/html/cacti/poller.php
506 7136 0.0 0.0 4112 788 ? S 15:00 0:00 /bin/sh -c php /var/www/html/cacti/poller.php > /dev/null 2>&1
506 7137 0.3 2.8 37604 28964 ? S 15:00 0:00 php /var/www/html/cacti/poller.php
root 11232 0.0 0.0 4856 588 pts/0 S 15:03 0:00 grep cact

what the poller do?
i set to 10 the value Maximum Threads per Process in poller page
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

PHP 4.3.4 is not supported. Please upgrade to PHP 4.3.6++ and you will have better luck. Poller.php spawns cmd.php or cactid processes and it also updates RRD files and exports graphs.

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?
Guest

Post by Guest »

Hello,

i updated the php
PHP 4.3.6 (cgi) (built: May 13 2004 05:56:26)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

i update the packages to theses versions
php-rrdtool-1.0.48-1.rhfc1.dag
rrdtool-1.0.48-1.rhfc1.dag
php-mysql-4.3.6-1.3
php-snmp-4.3.6-1.3
php-4.3.6-1.3

the rrdtool databases aren't updated.

i don't know how to debug the problem

Thanks a lot.

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

Post by TheWitness »

Anacronik,

Please disable cron, place logging at DEBUG, clear logfile, and run poller.php from the command line 1 time. Post both it's STDOUT and the Cacti Logfile to this board.

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?
Guest

Post by Guest »

here the log:

09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/27/2004 12:13:33 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 4
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/27/2004 12:13:33 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 5
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/27/2004 12:13:33 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 6
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/27/2004 12:13:33 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 7
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/27/2004 12:13:33 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 8
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/27/2004 12:13:33 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 9
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
09/27/2004 12:13:33 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 10
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: The UDP Ping return_code was -10, errno was 0, total_ti
me was 393.8790
09/27/2004 12:13:33 PM - CACTID: Poller[0] Host[26] PING Result: UDP: Ping timed out
09/27/2004 12:13:33 PM - CACTID: Poller[0] Host[26] SNMP Result: SNMP not performed due to setting or pin
g result
09/27/2004 12:13:33 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='1',status_event_count='
14', status_fail_date='2004-09-27 11:05:00',status_rec_date='2004-09-24 10:28:00',status_last_error='SNMP
not performed due to setting or ping result,',min_time='0.460000',max_time='5.049940',cur_time='1.884940
',avg_time='1.853200',total_polls='152',failed_polls='36',availability='76.0000' where id='26'

09/27/2004 12:13:33 PM - CACTID: Poller[0] Host[26] DEBUG: HOST COMPLETE: About to Exit Host Polling Thre
ad Function

....


09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='1',status_event_count='14', status_fail_date='2004-09-27 11:05:00',status_rec_date='2004-09-24 10:35:00',status_last_error='SNMP not performed due to setting or ping result,',min_time='0.696900',max_time='3.993030',cur_time='1.829860',avg_time='1.609370',total_polls='119',failed_polls='20',availability='83.0000' where id='274'

09/27/2004 12:13:46 PM - CACTID: Poller[0] Host[274] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: The UDP Ping return_code was -10, errno was 0, total_time was 399.0930
09/27/2004 12:13:46 PM - CACTID: Poller[0] Host[275] PING Result: UDP: Ping timed out
09/27/2004 12:13:46 PM - CACTID: Poller[0] Host[275] SNMP Result: SNMP not performed due to setting or ping result
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='1',status_event_count='14', status_fail_date='2004-09-27 11:05:00',status_rec_date='2004-09-24 10:35:00',status_last_error='SNMP not performed due to setting or ping result,',min_time='1.362090',max_time='14.064070',cur_time='2.452140',avg_time='3.728770',total_polls='119',failed_polls='20',availability='83.0000' where id='275'

09/27/2004 12:13:46 PM - CACTID: Poller[0] Host[275] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: SQLCMD: replace into settings (name,value) values ('date',NOW())
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: Thread Cleanup Complete
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: SNMP Cleanup Complete
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: PHP Script Server Shutdown Started
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: PHP Script Server Pipes Closed
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: Allocated Variable Memory Freed
09/27/2004 12:13:46 PM - CACTID: Poller[0] DEBUG: MYSQL Free & Close Completed
09/27/2004 12:13:46 PM - CACTID: Poller[0] Time: 13.4816 s, Threads: 10, Hosts: 242
09/27/2004 12:13:46 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting

here the php ...poller.php
[cactiuser@lanval cactiuser]$ php /var/www/html/cacti/poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.6

09/27/2004 12:13:33 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process
[CMD: /usr/bin/cactid, ARGS: 0 275]
Waiting on 1/1 pollers.

we can talk on msn if you want...
i don't have php knowlegde to understand how to debug:-(
anacronik
Posts: 7
Joined: Mon Jun 21, 2004 3:26 am

Post by anacronik »

i upgrade my php package to 3.4.8.
anacronik
Posts: 7
Joined: Mon Jun 21, 2004 3:26 am

Post by anacronik »

with all last rrtool , php...
i have this error
PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'rrdtool.so' in Unknown on line 0
argh..
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's a path statement missing in your RRDTool build. There may be an issues with UDP Ping. I will not be able to provide feedback due to the fact that I am not at a point where I can communicate.

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?
anacronik
Posts: 7
Joined: Mon Jun 21, 2004 3:26 am

Post by anacronik »

udp ping?
all the device are up...

poller.php works. what can i do to verify that cacti cann't write in rrd files?
i think something is wrong here
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests