|
|
| Author |
Message |
KyRoo
Joined: 19 Oct 2007 Posts: 46
|
Posted: Thu Mar 06, 2008 5:28 am Post subject: [SOLVED] Is this possible? |
|
|
Hi All,
I want to make a map of data that I poll not every 5 minutes but every 30 minutes.
I see in the log file this rule:
| Code: | | c:/rrdtool/rrdtool.exe fetch C:/Inetpub/wwwroot/cacti/rra/somefile.rrd AVERAGE --start now-800 --end now |
most of the time I get no value back.
Is it possible to manually adjust the data that is being fetched?
I want to do something like this:
| Code: | | c:/rrdtool/rrdtool.exe fetch C:/Inetpub/wwwroot/cacti/rra/somefile.rrd AVERAGE --start now-1500 --end now |
KyRoo
Last edited by KyRoo on Wed Mar 12, 2008 9:22 am; edited 1 time in total |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2036 Location: United Kingdom
|
Posted: Thu Mar 06, 2008 6:37 am Post subject: |
|
|
Yes. There are two ways:
1) Switch to using poller_output, instead of rrdtool directly. You do this by adding SET rrd_use_poller_output 1 at the top of your map config. It takes a few poller cycles to get going, but should be faster than before, and work with any data. I haven't actually *tested* with longer periods, but it should work.
2) Increase the period that we look backwards, as you suggest. You can do that with SET rrd_period 1500 at the top of your map config file. It will take a little longer to do things, as weathermap is processing twice as much data. I doubt you'd notice the difference. Definitely works with longer periods, because that's what it's for
Both of those are documented here, incidentally. |
|
| Back to top |
|
 |
KyRoo
Joined: 19 Oct 2007 Posts: 46
|
Posted: Thu Mar 06, 2008 7:17 am Post subject: |
|
|
| Howie wrote: | Yes. There are two ways:
1) Switch to using poller_output, instead of rrdtool directly. You do this by adding SET rrd_use_poller_output 1 at the top of your map config. It takes a few poller cycles to get going, but should be faster than before, and work with any data. I haven't actually *tested* with longer periods, but it should work.
2) Increase the period that we look backwards, as you suggest. You can do that with SET rrd_period 1500 at the top of your map config file. It will take a little longer to do things, as weathermap is processing twice as much data. I doubt you'd notice the difference. Definitely works with longer periods, because that's what it's for
Both of those are documented here, incidentally. |
Thx, i'll try
I was browsing the manual but I was a little lost. |
|
| Back to top |
|
 |
KyRoo
Joined: 19 Oct 2007 Posts: 46
|
Posted: Thu Mar 06, 2008 8:20 am Post subject: |
|
|
it seems to work, thx Howie
Can I change this per node?
But i have this small bug,
The actual value in the rrd file is 1 but it displays 8
My test config
| Code: | SET rrd_period 1500
WIDTH 800
HEIGHT 600
KEYTEXTCOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
# End of global section
# DEFAULT definitions:
NODE DEFAULT
MAXVALUE 100
LINK DEFAULT
BANDWIDTH 1M
# End of DEFAULTS section
# Node definitions:
NODE Node1
LABEL {node:this:bandwidth_in:%d}
POSITION 218 207
TARGET C:/Inetpub/wwwroot/cacti/rra/Node1.rrd:ds1:ds1 |
| Code: | c:/rrdtool/rrdtool.exe fetch C:/Inetpub/wwwroot/cacti/rra/Node1.rrd AVERAGE --start now-1500 --end now
ds1
1204807500: 1.0000000000e+00
1204807800: 1.0000000000e+00
1204808100: 1.0000000000e+00
1204808400: nan
1204808700: nan
1204809000: nan |
I don't realy know what i'm doing wrong here... |
|
| Back to top |
|
 |
KyRoo
Joined: 19 Oct 2007 Posts: 46
|
Posted: Wed Mar 12, 2008 9:23 am Post subject: |
|
|
Solved the 8 instead of 1 with the scale option
grts |
|
| Back to top |
|
 |
|