0.8.2.a - crontab, Clear Poller Cache, graph display

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

Moderators: Developers, Moderators

Post Reply
z33k
Posts: 2
Joined: Thu Aug 14, 2003 5:08 pm

0.8.2.a - crontab, Clear Poller Cache, graph display

Post by z33k »

I need to clear the poller cache from the unix command line (I think).

Cacti works great. I love it. One small problem though.

I run cacti every 5 minutes with cron.

To get Cacti to create the graphs with data, I have to:

1. Kill crond on the server
2. Go into the Cacti Console -> Cacti Settings-> Clear Poller Cache
3. Restart crond on the server -> /usr/sbin/crond -l10

Cacti then works great. I have to do this, however, every time I restart the machine. I forget to do this sometimes and I get large "gaps" of no data in my graphs.

Is there a fix for this? Is it just me? Is this a cron or cacti cache issue?

Is there a way to clear the poller cache from the unix command line? If so, I can just add this to my rc.local so it gets cleared on startup.

Thanks,
z33k
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

This sounds to me like a cron issue. Cacti's poller cache should not be affected by a reboot, it is only updated when you change things using the web interface.

If you want to clear the poller cache from the command line, put the following code into a new .php file in your Cacti directory:

Code: Select all

<?php
include("include/config.php");
include("include/utility_functions.php");
repopulate_poller_cache();
?>
You can then run it at the command line by doing:

Code: Select all

php filename.php
-Ian
z33k
Posts: 2
Joined: Thu Aug 14, 2003 5:08 pm

Post by z33k »

Ian,

Thanks. Works great!

Zeke
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests