Increasing poller time to 1-minute
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Fri Sep 14, 2018 3:58 pm
Increasing poller time to 1-minute
Hello - I am seeking advice on how to increase poller time to 1-minute for all of my data sources. I am currently using the Default 5-min Data Source Profile. (v1.1.38 - unix)
Can I just add the 1-minute interval into the current Default 5-min profile? I also saw where I would need to config 1-minute polling in Configuration > Settings > Poller > Poller Interval.
Also, do I need to also adjust the Cron interval? I am new to Cacti, and would like to see if anyone could steer me in the right direction on this as I am reading old docs that ref crashing Cacti if this is not done correctly. Anyone else done this before, or know how to make this 1-minute polling interval change?
Can I just add the 1-minute interval into the current Default 5-min profile? I also saw where I would need to config 1-minute polling in Configuration > Settings > Poller > Poller Interval.
Also, do I need to also adjust the Cron interval? I am new to Cacti, and would like to see if anyone could steer me in the right direction on this as I am reading old docs that ref crashing Cacti if this is not done correctly. Anyone else done this before, or know how to make this 1-minute polling interval change?
- Attachments
-
- Default.PNG (37.27 KiB) Viewed 1908 times
-
- Poller.PNG (41.61 KiB) Viewed 1908 times
Re: Increasing poller time to 1-minute
There is already a 1 minute profile (or should be) defined. I think all you have to do is make that your default profile and then update cron to run that often. This will make all new RRD/RRA's be in the 1 minute cycle. It would not change existing data sources from 5 minutes though. To do that, you'd have to start over by removing the data sources. etc.
I have never personally done that, so I'm not 100% confident that it's that simple so I would always advise spinning up a test server, running at the 5 minutes interval, then attempt the switch to 1minute.
I have never personally done that, so I'm not 100% confident that it's that simple so I would always advise spinning up a test server, running at the 5 minutes interval, then attempt the switch to 1minute.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Increasing poller time to 1-minute
You don't need to reduce the cron interval (5 minutes). Only set the Poller interval to your smallest interval you defined for a data profile (1 minute).
This way, the poller is started every 5 minutes (Cron interval) and collects data 5 times, once every minute (poller interval), then terminates. After 5 minutes (cron interval) it is started again by cron for the next 5 polls, and so on.
This way, the poller is started every 5 minutes (Cron interval) and collects data 5 times, once every minute (poller interval), then terminates. After 5 minutes (cron interval) it is started again by cron for the next 5 polls, and so on.
Re: Increasing poller time to 1-minute
If you have existing graphs and wish to change their profile, you should pm @browniebraun to get him to publish his script that can restructure the rrdfiles and reimport data into them, since that is what would be required.
Before history, there was a paradise, now dust.
-
- Posts: 4
- Joined: Fri Sep 14, 2018 3:58 pm
Re: Increasing poller time to 1-minute
--netniV wrote:There is already a 1 minute profile (or should be) defined. I think all you have to do is make that your default profile and then update cron to run that often. This will make all new RRD/RRA's be in the 1 minute cycle. It would not change existing data sources from 5 minutes though. To do that, you'd have to start over by removing the data sources. etc.
I have never personally done that, so I'm not 100% confident that it's that simple so I would always advise spinning up a test server, running at the 5 minutes interval, then attempt the switch to 1minute.
Thanks NetniV
Last edited by swillett11 on Mon Oct 01, 2018 9:00 am, edited 1 time in total.
-
- Posts: 4
- Joined: Fri Sep 14, 2018 3:58 pm
Re: Increasing poller time to 1-minute
--Osiris wrote:If you have existing graphs and wish to change their profile, you should pm @browniebraun to get him to publish his script that can restructure the rrdfiles and reimport data into them, since that is what would be required.
Osiris,
Would this be the same as "rebuilding" the poller cache? Or would his script do something different?
-
- Posts: 4
- Joined: Fri Sep 14, 2018 3:58 pm
Re: Increasing poller time to 1-minute
--tertius wrote:You don't need to reduce the cron interval (5 minutes). Only set the Poller interval to your smallest interval you defined for a data profile (1 minute).
This way, the poller is started every 5 minutes (Cron interval) and collects data 5 times, once every minute (poller interval), then terminates. After 5 minutes (cron interval) it is started again by cron for the next 5 polls, and so on.
tertius,
Thanks for responding. Have you actually performed this change on Cacti 1.1.38 before? That makes sense what you posted, but I was reading about how this can crash Cacti if not executed correctly.
Re: Increasing poller time to 1-minute
You should be fine.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Increasing poller time to 1-minute
This will not "crash" cacti. It's a perfectly fine way to get a smaller interval. I use it since years for 30-seconds polling of some sources.
The only thing you have to do after changing this setting is repopulating the poller cache, and that is also written as a reminder in the configuration page.
The only thing you have to do after changing this setting is repopulating the poller cache, and that is also written as a reminder in the configuration page.
Who is online
Users browsing this forum: No registered users and 2 guests