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
0.8.2.a - crontab, Clear Poller Cache, graph display
Moderators: Developers, Moderators
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:
You can then run it at the command line by doing:
-Ian
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();
?>
Code: Select all
php filename.php
Who is online
Users browsing this forum: No registered users and 5 guests