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    


upgraded from 0.8.6j to 0.8.7b, now graphs are not updating

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



Joined: 24 Jul 2008
Posts: 3

PostPosted: Thu Jul 24, 2008 2:54 pm    Post subject: upgraded from 0.8.6j to 0.8.7b, now graphs are not updating Reply with quote

When i ran a dist-upgrade in ubuntu 7.10 to 8.04 it also upgraded my cacti install to Version 0.8.7b from 0.8.6.
After the upgrade cacti stopped graphing but the rrd's are being updated.

Here is my cron file

Code:
root@SPINACH:/etc/cron.d# cat cacti
MAILTO=root
*/1 * * * * www-data /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log


www-data owns the rra directory, the cacti log dir and the /usr/share/cacti/site directory.

I can run poller.php from the cmd line and it seems to run fine.

When I look at the poller-error.log I get this:

Code:
root@SPINACH:/var/log/cacti# cat poller-error.log
/usr/share/cacti/site/poller.php: 1: cannot open ?php: No such file
/usr/share/cacti/site/poller.php: 2: /bin: Permission denied
/usr/share/cacti/site/poller.php: 3: +-------------------------------------------------------------------------+: not found
/usr/share/cacti/site/poller.php: 4: Syntax error: "|" unexpected
root@SPINACH:/var/log/cacti#


Any ideas?
Thx in advance!
Back to top
eucarya



Joined: 24 Jul 2008
Posts: 3

PostPosted: Thu Jul 24, 2008 7:14 pm    Post subject: fixed it! Reply with quote

I checked the apache error log and saw this error in there around a dozen times:

Code:

ERROR: opening '/var/lib/cacti/rra/localhost_snmp_oid_229.rrd': No such file or directory


Seems maybe upgrading ubuntu deleted this apache rrd.
I touched the file, changed the perms, ran the poller.php from the cli, waited 5 min for the cron, and i got some graphs again!
Too bad I lost all that data for the 12 hours or so this wasn't working...
Back to top
eucarya



Joined: 24 Jul 2008
Posts: 3

PostPosted: Mon Jul 28, 2008 11:38 am    Post subject: cron.d vs crontab Reply with quote

Also had to copy this line:

Code:
*/5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log


From /etc/cron.d/cacti to /etc/crontab

Now its running as it was before my dist-upgrade.
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