Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 15 minute polling/sampling interval #4344

Merged
merged 3 commits into from
Aug 28, 2021
Merged

Conversation

eriksejr
Copy link
Contributor

@eriksejr eriksejr commented Jul 8, 2021

This is really just a feature request to add a 15-Minute polling interval option as I have some equipment which only updates data every 15 minutes and I need to patch each update.

@netniV
Copy link
Member

netniV commented Jul 9, 2021

This is technically a 'feature' request but I will allow it since we hard code the values into the array. I did wonder if there are any other places that would need updating, but the CHANGELOG is definitely one of them.

@netniV netniV added enhancement General tag for an enhancement poller Data Collection related issue labels Jul 9, 2021
@netniV netniV added this to the 1.2.19 milestone Jul 9, 2021
@TheWitness TheWitness merged commit adb6d80 into Cacti:1.2.x Aug 28, 2021
@wladimir-tm4pda
Copy link

please help to understand 15 min polling/graphs

want to create 15 minutes graphs within 15 minutes polling
(performance counters of digital transmission channels - i.e. ADSL, PON, etc.)

found this thread https://forums.cacti.net/viewtopic.php?t=50899
but there changed not only polling interval - but and cron interval also

if at current instance of cacti will be only 15 min polling/graphs
--- is there a sense to change polling and cron intervals?

question is rised upon this strings of code (at cacti/poller.php):
"...
 if ($cron_interval != 60) {
$cron_interval = 300;
 }
..."

Thanks!!

@netniV
Copy link
Member

netniV commented Sep 26, 2021

Are you expecting scripts to be running more than 5 minutes? If so, this is a problem since we expect maximum run time on anything that isn't per minute polling to be 5 minutes (300 seconds). If you don't, then having polling that occurs every 15 minutes would mean that you would have two instances of the poller run without actually doing anything for the five minute periods that are allowed to execute, which isn't a problem you have just wasted a tiny bit of resource is all.

@eriksejr
Copy link
Contributor Author

eriksejr commented Sep 26, 2021

My poller runs from cron at a 5 minute, 300 second interval, however the data source profile for the 15 minute datasources as is shown below:

image

Note that this unusual setup of the steps and data consolidation is intentional because our management wanted 5 year retention of data at the maximum resolution but keep in mind that such a thing results in very large RRD files. Data sources using this template have data collected every 3 poller intervals (15 minutes)

@wladimir-tm4pda
Copy link

wladimir-tm4pda commented Sep 26, 2021

Thank you for the answers!!
there are no scripts; just a "common" snmp query (via xml file)

testing setup - with changed "cron" and "polling" interval (accrding this thread) - without errors at logs
(only sometimes "Heartbeat" status appear in "Data Collector" (Main Poller))

image
image
image
image

====
but assuming that "cron_interval = 300" - is "hardcoded-like" value (at cacti/poller.php)
--- not sure if there are other places in cacti - where "hacking" cron_interval=900 - can "break-down" the system (?)

thanks again!

@netniV
Copy link
Member

netniV commented Sep 26, 2021

That's the point you don't need to have the poller interval. As long as you have a script that executes and finishes within a polling cycle you will be fine.

If you have a script that exceeds it that would be a problem.

As mentioned above just stick with a cron and poller of 300 seconds (5 minutes) but your data source can be 15 minutes and this will only be hit on the third or fourth run (depending on timing) as suggested by me and confirmed above

@netniV
Copy link
Member

netniV commented Sep 26, 2021

You only need to change the cron/poller timing if you want it as 1 Minute cycles

@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement General tag for an enhancement poller Data Collection related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants