Hello,
I am using cacti 0.8.6.h (Ubuntu - Dapper Drake) and everything works ok. The only problem at the moment is to realize a faster polling mechanism. After studying varios documents I ended up with a modified crontab file. Here it is:
cat /etc/cron.d/cacti
*/1 * * * * www-data /usr/share/cacti/site/poller.php >/dev/null >/var/log/cacti/poller-error.log
*/1 * * * * www-data /bin/sleep 20; /usr/bin/php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
*/1 * * * * www-data /bin/sleep 40; /usr/bin/php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
Someone else in the cacti forum posted this method as a 30 second variant.
How can I get cacti to draw every 20 seconds an updated graph with this crontab?
Is there another way to solve this problem? I've read about a patch one can apply against the cacti installation.
Thanks in advance for your help,
Armin Herzer
Faster Polling Intervall
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please see http://forums.cacti.net/viewtopic.php?t=16482
Reinhard
Reinhard
Thanks for your fast reply!
I followed the instructions in the pdf manual after replacing the original files by the ones in the zip archive. Unfortunally the new files gave me an php error (something with NATURAL and a variable name, can't say it exactly because it is now 10 hours ago . Additionally it scrambled the output of the cacti screen. So I deleted the new files and replaced them with the old ones. Everything was fine again afterwards. Working through the script then was no problem until I reached the point (was it 5.0 or 6.0?) where the poller must be adjusted. I didn't find an appropriate entry where to change this value.
Was it correct to replace the old files with the ones while cacti was running? Can or must cacti be restarted after changing the files? I guess that the patch must be applied against my cacti version because all files in the zip archive had a newer date.
Any ideas?
Thanks in advance,
Armin Herzer
I followed the instructions in the pdf manual after replacing the original files by the ones in the zip archive. Unfortunally the new files gave me an php error (something with NATURAL and a variable name, can't say it exactly because it is now 10 hours ago . Additionally it scrambled the output of the cacti screen. So I deleted the new files and replaced them with the old ones. Everything was fine again afterwards. Working through the script then was no problem until I reached the point (was it 5.0 or 6.0?) where the poller must be adjusted. I didn't find an appropriate entry where to change this value.
Was it correct to replace the old files with the ones while cacti was running? Can or must cacti be restarted after changing the files? I guess that the patch must be applied against my cacti version because all files in the zip archive had a newer date.
Any ideas?
Thanks in advance,
Armin Herzer
Who is online
Users browsing this forum: No registered users and 1 guest