|
|
| Author |
Message |
NetAdmin Cacti User
Joined: 30 Aug 2006 Posts: 69
|
Posted: Thu Nov 08, 2007 2:34 pm Post subject: |
|
|
| Worked like a charm! Thanks a bunch, Howie. |
|
| Back to top |
|
 |
NetAdmin Cacti User
Joined: 30 Aug 2006 Posts: 69
|
Posted: Fri Nov 16, 2007 2:06 pm Post subject: |
|
|
| Howie wrote: |
Something like:
| Code: |
NODE blah
USESCALE none
TARGET therrdfile.rrd:traffic_in:- therrdfile:traffic_out:-
LABEL {node:this:bandwidth_in:%k}
|
|
Howie,
Did something change with the DS plugin in 0.9.4? I just upgraded and all of my nodes that display totals just have "0" values.
Getting a lot of these in the log file:
"11/16/2007 02:00:17 PM - WEATHERMAP: Poller[0] ReadData: NODE SOMENODE, target: c:\cacti\rra\SOMERRD.rrd:traffic_out:- on config line 252 had no valid data, according to WeatherMapDataSource_rrd
11/16/2007 02:00:17 PM - WEATHERMAP: Poller[0] ReadData: NODE SOMENODE, target: c:\cacti\rra\SOMERRD.rrd:traffic_out:- on config line 177 had no valid data, according to WeatherMapDataSource_rrd"
Thanks.
NetAdmin |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1966 Location: United Kingdom
|
Posted: Sat Nov 17, 2007 10:05 am Post subject: |
|
|
| NetAdmin wrote: |
Howie,
Did something change with the DS plugin in 0.9.4? I just upgraded and all of my nodes that display totals just have "0" values.
Getting a lot of these in the log file:
"11/16/2007 02:00:17 PM - WEATHERMAP: Poller[0] ReadData: NODE SOMENODE, target: c:\cacti\rra\SOMERRD.rrd:traffic_out:- on config line 252 had no valid data, according to WeatherMapDataSource_rrd
11/16/2007 02:00:17 PM - WEATHERMAP: Poller[0] ReadData: NODE SOMENODE, target: c:\cacti\rra\SOMERRD.rrd:traffic_out:- on config line 177 had no valid data, according to WeatherMapDataSource_rrd"
Thanks.
NetAdmin |
I'm looking at this now. Something is definitely not right with using '-' as a DS name. The temporary fix is to use:
blah.rrd:traffic_out:traffic_out
instead.
You usually don't care if the 'other side' of a node has a value that you don't use.
I'll get a proper fix though. |
|
| Back to top |
|
 |
NetAdmin Cacti User
Joined: 30 Aug 2006 Posts: 69
|
Posted: Mon Nov 19, 2007 1:36 pm Post subject: |
|
|
Howie,
I've modified the TARGET to look like this:
| Code: |
TARGET c:\cacti\rra\somerrd.rrd:traffic_in:traffic_out
|
Is this what you meant as the temporary fix? If so, the output (or value that is displayed) is simply the traffic_in amount. It's not adding the value of traffic_in and traffic_out.
Thanks.
NetAdmin |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1966 Location: United Kingdom
|
Posted: Mon Nov 19, 2007 1:46 pm Post subject: |
|
|
| NetAdmin wrote: | Howie,
I've modified the TARGET to look like this:
| Code: |
TARGET c:\cacti\rra\somerrd.rrd:traffic_in:traffic_out
|
Is this what you meant as the temporary fix? If so, the output (or value that is displayed) is simply the traffic_in amount. It's not adding the value of traffic_in and traffic_out.
Thanks.
NetAdmin |
Sorry, that wasn't clear was it? I meant for *each target*, so you'd have:
| Code: |
TARGET therrdfile.rrd:traffic_in:traffic_in therrdfile:traffic_out:traffic_out
|
Which means that both the input and output sides end up being the total. Since you are only displaying one, it doesn't really matter what the other value is (it doesn't need to be zero).
Better?
I've been working over this weekend on various planned maintenance, but now I should get time to fix this properly. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1966 Location: United Kingdom
|
Posted: Tue Nov 20, 2007 3:27 am Post subject: |
|
|
I had some time last night to play with this. Please try the subversion version of WeatherMapDataSource_rrd.php
You don't need subversion installed or anything, you can just download single files out of the repository.
'-' DS works for me both with and without poller_output support enabled now.
I'll put out a 0.941 in a few days with this fix and one other (something to help with the 'not refreshing webpage' issue). I want to wait a little and see if anything else comes out of the woodwork first, before releasing that. |
|
| Back to top |
|
 |
NetAdmin Cacti User
Joined: 30 Aug 2006 Posts: 69
|
Posted: Tue Nov 20, 2007 8:58 am Post subject: |
|
|
Works perfect Howie! Thanks for the quick fix and for this permanent one...
NetAdmin |
|
| Back to top |
|
 |
|