Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Problems with new Cacti install

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
Licho515



Joined: 18 Nov 2008
Posts: 2

PostPosted: Tue Nov 18, 2008 1:22 pm    Post subject: Problems with new Cacti install Reply with quote

After a clean install of Red Hat ES3, I installed the components that are showing in my sig.

I've had two problems that are preventing Cacti from running successfully.

1) RRD files were not created automatically, even though I'm running the poller.php in cron as cactiuser, and /rra /log have proper permissions. I solved this by manually running the command without the trailing "\" from Data Source Debug in the command line as cactiuser.

2) RRD files are not being updated. Not by poller.php or cmd.php. Not from cron or command line. When I run "/www/php/bin/php /www/htdocs/cacti/poller.php" from the command line, I get this output on screen:

[cactiuser@mrtg-borders log]$ /www/php/bin/php /www/htdocs/cacti/poller.php
11/18/2008 12:19:58 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '621', Max Runtime
'298', Poller Runs: '1'
11/18/2008 12:19:58 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval i
s '300' seconds, with a maximum of a '300' second Cron, but 621 seconds have passed since the last poll!
11/18/2008 12:19:58 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /www/htdo
cs/cacti/cmd.php 0 1]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
.
.
.
.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
11/18/2008 02:23:44 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
11/18/2008 02:23:44 PM - SYSTEM STATS: Time:299.1013 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 Da
taSources:5 RRDsProcessed:0

Warning: pclose(): 71 is not a valid stream resource in /www/htdocs/cacti/lib/rrd.php on line 57
Loop Time is: 299.103063107
Sleep Time is: 0.891872882843
Total Time is: 299.108127117
[cactiuser@mrtg-borders log]$


I have attached my cacti log as cacti.txt.

Any Ideas?



cacti.txt
 Description:

Download
 Filename:  cacti.txt
 Filesize:  147.86 KB
 Downloaded:  9 Time(s)

Back to top
khufure
Cacti User


Joined: 24 Oct 2007
Posts: 164
Location: San Francisco, CA

PostPosted: Tue Nov 18, 2008 7:51 pm    Post subject: Re: Problems with new Cacti install Reply with quote

Licho515 wrote:
I've had two problems that are preventing Cacti from running successfully.

1) RRD files were not created automatically, even though I'm running the poller.php in cron as cactiuser, and /rra /log have proper permissions. I solved this by manually running the command without the trailing "\" from Data Source Debug in the command line as cactiuser.

2) RRD files are not being updated. Not by poller.php or cmd.php. Not from cron or command line. When I run "/www/php/bin/php /www/htdocs/cacti/poller.php" from the command line, I get this output on screen:

Never do 1. 2 is the same problem. Check Apache logs for errors. Increase your php memory to 256MB. Also, run through http://docs.cacti.net/node/283
Back to top
Licho515



Joined: 18 Nov 2008
Posts: 2

PostPosted: Wed Nov 19, 2008 11:14 am    Post subject: Reply with quote

Apache logs show no errors. I increased the PHP memory from 128MB to 256MB, but this didn't help. I have already went through the steps regarding the NaN images, but couldn't find a solution for my particular problem.

Then I bumped into this post: http://library.pantek.com/Mailing%20Lists/lists.sourceforge.net/cacti-user/07/07/0067.html

I did the exact same thing as this person. Seeing that the mysql command that kept on repeating in the cacti.log returned "empty set" when executed directly in mysql, I set up my cron to run cmd.php 1 minute AFTER poller.php. This caused the poller_time table to be populated, and the poller.php script (which kept looping for a minute) to end gracefully.

This had the result that my rrd files were automatically created, and are being populated right now.

My question remains, what is causing this?
Back to top
khufure
Cacti User


Joined: 24 Oct 2007
Posts: 164
Location: San Francisco, CA

PostPosted: Wed Nov 19, 2008 2:00 pm    Post subject: Reply with quote

Licho515 wrote:
Apache logs show no errors. I increased the PHP memory from 128MB to 256MB, but this didn't help. I have already went through the steps regarding the NaN images, but couldn't find a solution for my particular problem.

Then I bumped into this post: http://library.pantek.com/Mailing%20Lists/lists.sourceforge.net/cacti-user/07/07/0067.html

I did the exact same thing as this person. Seeing that the mysql command that kept on repeating in the cacti.log returned "empty set" when executed directly in mysql, I set up my cron to run cmd.php 1 minute AFTER poller.php. This caused the poller_time table to be populated, and the poller.php script (which kept looping for a minute) to end gracefully.

This had the result that my rrd files were automatically created, and are being populated right now.

My question remains, what is causing this?

RRDTOOL-1.3.4 may be at cause? I have had trouble with this before, including apache segfaults and other strange to diagnose problems. You can try using rrdtool-1.2.27 instead (or 1.2.latest with patches). Otherwise, I'm afraid you'll have to wait for one of the developers..
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group