problem with poller.php, cmd.php and cactid

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

Moderators: Developers, Moderators

Post Reply
yewjin
Posts: 16
Joined: Sun Dec 28, 2003 3:39 am
Location: Singapore

problem with poller.php, cmd.php and cactid

Post by yewjin »

hi,

I upgraded to from 0.8.6b to 0.8.6c and my poller.php stops working.

The cron log gives the following message. Any suggestion?

12/30/2004 10:15:13 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /cacti/cactid/cactid, ARGS: 0 67]
Waiting on 1/1 pollers.

thanks in advance for any advise.
yewjin
Posts: 16
Joined: Sun Dec 28, 2003 3:39 am
Location: Singapore

Post by yewjin »

Now I am getting these messages and none of the rrd files get updated. Any clue?

12/31/2004 10:22:40 AM - CACTID: Poller[0] Host[62] SNMP: v2: <X.X.X.X>, dsname: used_mem, oid: .1.3.6.1.4.1.9.9.48.1.1.1.5.1, value: 2546592
12/31/2004 10:22:40 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (613,'used_mem','2004-12-31 10:22:30','2546592')
12/31/2004 10:22:40 AM - CACTID: Poller[0] Host[62] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
12/31/2004 10:22:40 AM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 0
12/31/2004 10:22:40 AM - CACTID: Poller[0] DEBUG: SQLCMD: replace into settings (name,value) values ('date',NOW())
12/31/2004 10:22:40 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())
12/31/2004 10:22:40 AM - CACTID: Poller[0] DEBUG: Thread Cleanup Complete
12/31/2004 10:22:40 AM - CACTID: Poller[0] DEBUG: PHP Script Server Shutdown Started
12/31/2004 10:22:40 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
12/31/2004 10:22:40 AM - CACTID: Poller[0] DEBUG: PHP Script Server Pipes Closed
12/31/2004 10:22:40 AM - CACTID: Poller[0] DEBUG: Allocated Variable Memory Freed
12/31/2004 10:22:40 AM - CACTID: Poller[0] DEBUG: MYSQL Free & Close Completed
12/31/2004 10:22:40 AM - CACTID: Poller[0] Time: 9.7746 s, Threads: 8, Hosts: 50
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Please attempt to clear your poller cache in System Utilties.

Then run again, if you still have a problem, can you post more of the log, especially where poller.php's debug is visable.

Thanks,
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
yewjin
Posts: 16
Joined: Sun Dec 28, 2003 3:39 am
Location: Singapore

Post by yewjin »

Hi,
I had tried clearing the poller cache and even falling back to cmd.php but it didn't work. The logs are as attached. Thanks.
Attachments
cacti.log.gz
(26.74 KiB) Downloaded 144 times
debug.log.gz
this contains only the debug message.
(15.49 KiB) Downloaded 158 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You are running something simular to:

Code: Select all

php /var/html/cacti/poller.php
Right?

I don't see any poller.php debug in the output. Poller.php calls either cmd.php or cactid. It is responsible for writing the rrd files.

Does poller.php execute on your system?

You should be seeing the poller.php starting either cmd.php or cactid

Code: Select all

12/30/2004 09:59:42 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/local/cacti-086/cmd.php 0 2]
And then after polling occurs, you should see the RRD's being updated by poller.php.

Code: Select all

12/30/2004 09:59:44 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti-086/rra/localhost_mem_buffers_3.rrd --template mem_buffers 11
04465583:48028
Let me know what you find.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
yewjin
Posts: 16
Joined: Sun Dec 28, 2003 3:39 am
Location: Singapore

Post by yewjin »

rony wrote:You are running something simular to:

Code: Select all

php /var/html/cacti/poller.php
Right?
Yes. I have this in the cacti user cron.
*/5 * * * * /usr/local/bin/php /usr/local/cacti/poller.php > /tmp/cacti_cron.log 2>&1

The cacti_cron.log file is attached.
rony wrote:I don't see any poller.php debug in the output. Poller.php calls either cmd.php or cactid. It is responsible for writing the rrd files.

Does poller.php execute on your system?

You should be seeing the poller.php starting either cmd.php or cactid

Code: Select all

12/30/2004 09:59:42 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/local/cacti-086/cmd.php 0 2]
I have this in the 1st 2 lines.

12/31/2004 12:30:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /gegevens/cacti/cactid/cactid, ARGS: 0 67]
12/31/2004 12:30:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /gegevens/cacti/cactid/cactid, ARGS: 0 67]
rony wrote:And then after polling occurs, you should see the RRD's being updated by poller.php.

Code: Select all

12/30/2004 09:59:44 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti-086/rra/localhost_mem_buffers_3.rrd --template mem_buffers 11
04465583:48028
'


Let me know what you find.
Only able find this in the log:
12/31/2004 12:30:01 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='20440',failed_polls='0',availability='100.0000' where id='1'
Attachments
cacti_20041230_1230.log.gz
Cacti log.
(23.66 KiB) Downloaded 129 times
cacti_cron.log.gz
Cron log.
(210 Bytes) Downloaded 151 times
yewjin
Posts: 16
Joined: Sun Dec 28, 2003 3:39 am
Location: Singapore

Post by yewjin »

I read from the announcements that PHP 4.3.10 is unstable and have thus downgraded to PHP 4.3.9. However there is still no joy for me, poller.php is still not updating the rrd files. I have again attached my cacti.log, appreciate if anyone can help. Thanks.

yj
Attachments
cacti_20050101.log.gz
(24.94 KiB) Downloaded 150 times
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please truncate your poller_output table and try again with PHP 4.3.9. Unfortunately WindowsXP SP2 can not read the attachements. Therefore, I was unable to review your log files.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests