Poller scheduling is not quite common to most of Cacti users. But when I setup a new Cacti system utilizing Ping for availability, there is a need to schedule a poller.php to run at a specified time only or when it's needed. ICMP is a heavy and resource-intensive type of monitoring, it can cause a high CPU utilization to the core routers creating high latency problems within the network. So it is very important to manage the resources wisely. Since my company is operating only on office hours, I scheduled poller.php to run only within the time frame only.
Here's is my cron settings for that particular requirements.
*/10 7-18 * * 1-5 root php /var/www/cacti/poller.php > /dev/null 2>&1
The cron settings above means that poller.php will run every 10mins, from 7:00am to 6:50pm, and from Monday to Friday only. This will coincide with the business operating hours only, and saving precious CPU power for other task such as system backup every night and every weekend.
|
Output graph of eth0 as a result of cron settings above |
Related Posts:
-
Cacti 1 minute cron settings
-
1 minute Spine polling
No comments:
Post a Comment