lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

more frequent polling

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
ranc0r
Initiate


Joined: 01 Aug 2003
Posts: 1
Location: IN

PostPosted: Fri Aug 01, 2003 2:12 am    Post subject: more frequent polling Reply with quote

Hi folks,

I understand that development is still pretty early in NetMRG, but I'm impressed with the polish of the app already. I'm currently a cacti user and one of my frustrations with that product is its slow poller and the difficulty in changing the default step of the program.

Alot of the traffic I deal with is bursty, and with 5 minute sample intervals, you lose those characteristics.

Ideally I would like to poll some of my devices at 1 minute intervals. I think it would be really cool if I didn't have to poll _every_ device at that interval, but with a fast poller it shouldn't matter so much.

So, I guess my questions are:

1. How would I go about setting up a faster polling interval in NetMRG?

2. Could you make it a feature of NetMRG to poll devices at different intervals, or at least make it simple to change the default interval for the entire application?

Thanks!
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Fri Aug 01, 2003 3:17 am    Post subject: changes to poll intervals Reply with quote

It should be easy to change the interval globally. Up to this point, we've not looked into per-device specifications of the interval. It's certainly worth considering.

I've not verified the following changes on a live setup, but the following code replaced into rrd.cpp should give you a proper setup for 1-minute intervals:


Code:

        command = "create " + get_rrd_file(inttostr(info.monitor_id)) +
                        " --step 60 DS:mon_" + inttostr(info.monitor_id) + ":" + rrd.data_type +
                        ":120:" + rrd.min_val + ":" + rrd.max_val + " " +
                        "RRA:AVERAGE:0.5:1:3000 " +
                        "RRA:AVERAGE:0.5:30:700 "        +
                        "RRA:AVERAGE:0.5:24:775 "       +
                        "RRA:AVERAGE:0.5:288:797 "      +
                        "RRA:LAST:0.5:1:3000 "           +
                        "RRA:LAST:0.5:30:700 "           +
                        "RRA:LAST:0.5:24:775 "          +
                        "RRA:LAST:0.5:288:797 "         +
                        "RRA:MAX:0.5:1:3000 "            +
                        "RRA:MAX:0.5:30:700 "            +
                        "RRA:MAX:0.5:24:775 "           +
                        "RRA:MAX:0.5:288:797";


Your existing RRD files will not benefit from this change. You'll need to either delete them (they will be recreated with the new specs above) or use RRDTOOL's tune command to change their geometry to the above.

You might also want to change the default graph start times (or sizes) to give you sufficient resolution.

Good luck! Let us know how you make out.
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Mon Sep 15, 2003 3:46 pm    Post subject: possible error, and the fix for it Reply with quote

Refiguring things, I'm pretty sure the above code will have problems beyond a daily interval. However, 0.10pre2 has code that allows you to specify the interval in the config file, which will cause the RRD information to be recalculated. The same warning applies to changing the interval though, as it only applies to newly-created RRDs.

This should be a lot easier than tweaking the code. If you have successes or failures regarding faster polling, please let us know.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group