Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Aug 20, 2017 11:36 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: How to setup 1 minute polling and graphs in cacti 1.0.2 ?
PostPosted: Wed Feb 15, 2017 3:24 am 
Offline
User avatar

Joined: Wed Feb 15, 2017 3:10 am
Posts: 2
A few years back i was able to setup a Cacti system with 1 minute polling/graphing granularity using settings similar to what is described here :

https://www.tolaris.com/2013/07/09/cacti-and-1-minute-polling/

Haven't used cacti for a while, but recently started at a new client using ancient monitoring systems and no budget so i had a look at the current cacti and was pleasantly surprised to see v1.0.2.

Did a fresh install, still looks great.. But now for the 1 minute poller/graphing granularity.. The posts and articles i found so far are all for 0.8.x and no longer seem to fit the new cacti 1.0.2.


Anyone who can tell me how to do this or point me to a manual/howto/post showing how ?


Top
 Profile  
 
 Post subject: Re: How to setup 1 minute polling and graphs in cacti 1.0.2
PostPosted: Mon Feb 20, 2017 10:04 pm 
Offline
Cacti User

Joined: Mon Nov 08, 2004 12:11 am
Posts: 59
I am working on this.

It is very disappointing to me that 1-minute polling isn't a default feature in Cacti 1.0.

I've already got it working but there are some issues still. I will see about consolidating my notes and making a script.

The hard part is adding the new RRAs to existing RRD files in a programatic manner. I have a script where I did this way back in 0.8.7 days, but I need to fix it up for Cacti 1.0.


Top
 Profile  
 
 Post subject: Re: How to setup 1 minute polling and graphs in cacti 1.0.2
PostPosted: Tue Feb 21, 2017 2:00 am 
Offline
User avatar

Joined: Wed Feb 15, 2017 3:10 am
Posts: 2
That would be great ! It seems the menu options needed to set this up as i used to do in 8.7.x are no longer there..


Top
 Profile  
 
 Post subject: Re: How to setup 1 minute polling and graphs in cacti 1.0.2
PostPosted: Sat Mar 04, 2017 12:35 pm 
Offline

Joined: Mon Feb 27, 2017 4:32 pm
Posts: 6
Hi,


Do you have any news? I have stocked on same issue. I would like to change poll per 1 min - i am using spine.


Top
 Profile  
 
 Post subject: Re: How to setup 1 minute polling and graphs in cacti 1.0.2
PostPosted: Sun Mar 05, 2017 11:45 am 
Offline

Joined: Wed Mar 01, 2017 2:34 pm
Posts: 22
In 1.x, you find the polling interval setup under Presets->Data Profiles. The current "System Default" data source profile is the one with 5 min polling. To have a different interval, create an additional data source profile.

Here is a how I created profiles for 1 minute polling and 30 seconds polling. I added one additional RRA that is able to hold 24h of nonconsolidated primary data points.

If you create a profile, check all 4 consolication functions. This can easily be overlooked in the screenshot.



Attachment:
cacti data source profiles.png
cacti data source profiles.png [ 151.61 KiB | Viewed 967 times ]


Attachment:
cacti data source profile 1min.png
cacti data source profile 1min.png [ 180.63 KiB | Viewed 967 times ]


Attachment:
cacti data source profile 30sec.png
cacti data source profile 30sec.png [ 180.6 KiB | Viewed 967 times ]


Top
 Profile  
 
 Post subject: Re: How to setup 1 minute polling and graphs in cacti 1.0.2
PostPosted: Thu Mar 09, 2017 12:45 pm 
Offline

Joined: Mon Feb 27, 2017 4:32 pm
Posts: 6
hi,
tertius - thank you for your config.
I configured 1min and 30sec but 30sec dosent work. I see graphs but refreshing on the graphs are per 1min even when 30 sec is set up. Do I have to change somenthing more?
In crone following script:

Code:
*/1 * * * * cactiuser php5.6 /var/www/html/cacti/poller.php > /dev/null 2>&1


I have tried per 30 sec:
Code:
*/1 * * * * cactiuser php5.6 /var/www/html/cacti/poller.php > /dev/null 2>&1
*/1 * * * * cactiuser /bin/sleep 30; php5.6 /var/www/html/cacti/poller.php > /dev/null 2>&1


but same issue.


Top
 Profile  
 
 Post subject: Re: How to setup 1 minute polling and graphs in cacti 1.0.2
PostPosted: Thu Mar 09, 2017 1:06 pm 
Offline

Joined: Wed Mar 01, 2017 2:34 pm
Posts: 22
Keep your cron entry at the default 5 minutes! And use only 1 cron entry.

In cacti console->settings->poller change "Poller Interval" from 5 minutes to 30 seconds. The "Cron interval" below that should correspond to your crontab entry, which is 5 minutes as default.
In that setup, the cacti poller is called every 5 minutes by cron. It runs for 5 minutes and polls every 30 seconds. Then it terminates itself and the next poller is started by cron for the next 5 minutes.

Don't forget to re-populate the poller cache if you change these settings.


Top
 Profile  
 
 Post subject: Re: How to setup 1 minute polling and graphs in cacti 1.0.2
PostPosted: Wed Mar 15, 2017 1:10 pm 
Offline

Joined: Sun Feb 26, 2017 10:33 am
Posts: 46
Hi,

Very interesting, did you have good results with 1 min and 30 secs data sources?

In case I would have 30 secs or 1 min data sources along 5 minutes data spurces, my polling interval must be 30 seconds, right? Do you know how much this impact performances on a 10.000+ data sources system ( does it help with distributed system?)


Top
 Profile  
 
 Post subject: Re: How to setup 1 minute polling and graphs in cacti 1.0.2
PostPosted: Sat Mar 18, 2017 6:33 pm 
Offline

Joined: Sun Feb 26, 2017 10:33 am
Posts: 46
Hi,

I am planning to set up a cacti distributed installation and I would like to have certain data sources graphing at 5 minutes while other at 1 minute or even 30 seconds (IP SLA, WAN bandwidth usage, etc.).

What I would like to know is the following:

1) Do I need to scale my poller interval to the shortest data profile I am using (let's say 30 seconds)
2) In case I have 30 secs, 1 min and 5 minutes data profile uses and a poller at 30 seconds, ALL my data sources are polled every 30 seconds or is it selective?
3) besides the disk space, is there any drawback on having a 30 seconds or 1 minute poller interval for a 10.000+ data source cacti deployment?

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group