|
|
| Author |
Message |
qwertz Cacti User
Joined: 16 Feb 2006 Posts: 98
|
Posted: Wed Apr 19, 2006 11:01 am Post subject: [SOLVED] Display info without links in Weathermap |
|
|
I want to display a map with Access points and their associations.
Do you know how do it without LINKS, it means to have the associations under the node name and no link between my access points in the map?
Thanks
Qwertz
Below, what i would like to display
| Description: |
|
| Filesize: |
5.76 KB |
| Viewed: |
4877 Time(s) |

|
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Fri Apr 21, 2006 5:33 am Post subject: Re: Display info without links in Weathermap |
|
|
| qwertz wrote: | I want to display a map with Access points and their associations.
Do you know how do it without LINKS, it means to have the associations under the node name and no link between my access points in the map?
Thanks
Qwertz
Below, what i would like to display |
It's not possible right now, but please can you post an 'imaginary' config for how you would expect to configure this? There are a few variations on this request outstanding, and I'm considering adding something in the future.
|
|
| Back to top |
|
 |
qwertz Cacti User
Joined: 16 Feb 2006 Posts: 98
|
Posted: Fri Apr 21, 2006 6:22 am Post subject: |
|
|
As usual THANKS
Node AP1
POSITION 400 200
LABEL AP1
TARGET .../rra/AP_association.rrd
TARGET POSITION 400 300
TARGET would be the data to display and
TARGET POSITION would be where to write the data in a square on the map
And we would have the same system as with traffic, it means you can set colors in the TRAFFIC POSITION square (ie: green under 2 associations, under 10 associations: yellow, more associations: red)
T.H.A.N.K.S
|
|
| Back to top |
|
 |
qwertz Cacti User
Joined: 16 Feb 2006 Posts: 98
|
Posted: Tue Apr 24, 2007 3:34 am Post subject: |
|
|
Thanks again for your fantastic tool.
I saw that you released a new version (0.9) so i come back with my first question above. Is is possible to do it know?
Qwertz
*************************
Open your mind!
http://www.openmaniak.com
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Tue Apr 24, 2007 3:41 am Post subject: |
|
|
| qwertz wrote: | Thanks again for your fantastic tool.
I saw that you released a new version (0.9) so i come back with my first question above. Is is possible to do it know?
Qwertz
*************************
Open your mind!
http://www.openmaniak.com |
Yes.
| Code: |
NODE ap1
POSITION 100 100
LABEL AP1
NODE ap1_sess
POSITION ap1 0 20
LABEL {node:this:bandwidth_in}
TARGET /some/rrd/file/with/sessioncounts.rrd:sessions:-
|
Optionally, you could define a new SCALE, and have one of these two nodes change colour, depending on the number of sessions.
Note that the second node is positioned relative to the first, so it will "follow" it, if you move the first one in the editor.
There is some more discussion of this type of thing in the top half of the Advanced Topics page in the manual, with some examples. http://www.network-weathermap.com/manual/0.9/pages/advanced.html
You can see this stuff in use in this map, too (CPU usage in the routers):
http://www.network-weathermap.com/node/11
|
|
| Back to top |
|
 |
qwertz Cacti User
Joined: 16 Feb 2006 Posts: 98
|
Posted: Tue Apr 24, 2007 6:08 am Post subject: |
|
|
Thanks Boss!
I tried with a valid rrd file:
NODE ap1
LABEL AP1
POSITION 300 400
NODE ap1_sess
LABEL {node:this:bandwidth_in}
TARGET gauge:/usr/share/cacti/site/rra/ap_test_aironet_assoc_11.rrd:Aironet_Assoc:-
POSITION ap1 0 20
But i still have 0 for my wireless clients and have the following error message, i thing i have an error in my TARGET line but don't know where.
ReadData: NODE ap1_sess, target: gauge:/usr/share/cacti/site/rra/ap_test_aironet_assoc_11.rrd:Aironet_Assoc:- on config line 51 had no valid data, according to WeatherMapDataSource_rrd
I used this link for the syntaxe with no success:
http://www.network-weathermap.com/manual/0.9/pages/targets.html
I tried a ton of different possibilities
Sorry if it's a stupid question
REgards
Qwertz
Data Source Debug
/usr/bin/rrdtool create \
/usr/share/cacti/site/rra/ap_test_aironet_assoc_11.rrd \
--step 300 \
DS:Aironet_Assoc:GAUGE:600:0:2007 \
RRA:AVERAGE:0.5:24:2160 \
RRA:AVERAGE:0.5:1:51840 \
RRA:AVERAGE:0.5:6:8736 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:24:2160 \
RRA:MAX:0.5:1:51840 \
RRA:MAX:0.5:6:8736 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:24:2160 \
RRA:LAST:0.5:1:51840 \
RRA:LAST:0.5:6:8736 \
RRA:LAST:0.5:288:797 \
****************************
Open your mind!
http://www.openmaniak.com
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Tue Apr 24, 2007 1:28 pm Post subject: |
|
|
| qwertz wrote: |
ReadData: NODE ap1_sess, target: gauge:/usr/share/cacti/site/rra/ap_test_aironet_assoc_11.rrd:Aironet_Assoc:- on config line 51 had no valid data, according to WeatherMapDataSource_rrd
|
That config looks right to me... could you run one poller cycle with DEBUG logging, and then take a look? You should get a lot of lines from WEATHERMAP which start "RRD ReadData:", which tell you about the inner workings of the rrd-reading...
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Wed Apr 25, 2007 4:07 am Post subject: |
|
|
I think you just posted your config in the wrong thread
You seem to have a bug that was in 0.9pre3 but fixed in 0.9... is it possible that you tested pre3, and didn't overwrite the lib/datasources/WeathermapDataSource_rrd.php when you upgraded from 0.9pre3 to 0.9?
The quick fix is to change the '-' in the TARGET line, so that it reads
.....rrd:Aironet_Assoc:Aironet_Assoc
instead, but this should not be necessary with 0.9.
|
|
| Back to top |
|
 |
qwertz Cacti User
Joined: 16 Feb 2006 Posts: 98
|
Posted: Wed Apr 25, 2007 2:24 pm Post subject: |
|
|
SORRY
Thanks, i post here the message
Thanks Boss!
Here is my config file
*******************************************************************
# Automatically generated by php-weathermap v0.9
WIDTH 800
HEIGHT 600
TIMEPOS 635 313 Created: %b %d %Y %H:%M:%S
KEYPOS DEFAULT 622 288 Traffic Load
KEYTEXTCOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 1 10 140 0 255
SCALE DEFAULT 10 25 32 32 255
SCALE DEFAULT 25 40 0 192 255
SCALE DEFAULT 40 55 0 240 0
SCALE DEFAULT 55 70 240 240 0
SCALE DEFAULT 70 85 255 192 0
SCALE DEFAULT 85 100 255 0 0
# End of global section
# DEFAULT definitions:
NODE DEFAULT
MAXVALUE 100
LINK DEFAULT
BANDWIDTH 100M
# End of DEFAULTS section
# Node definitions:
NODE ap1
LABEL AP1
POSITION 300 400
NODE ap1_sess
LABEL {node:this:bandwidth_in}
TARGET gauge:/usr/share/cacti/site/rra/ap_test_aironet_assoc_11.rrd:Aironet_Assoc:-
POSITION ap1 0 20
# End of NODE section
# Link definitions:
# End of LINK section
******************************************************************
Debug output:
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Weathermap 0.9 run complete - 1 maps were run
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Iterated all 1 maps.
04/25/2007 10:40:02 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update weathermap_maps set titlecache='Network Weathermap' where id=2"
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Wrote HTML to /usr/share/cacti/site/plugins/weathermap/output/weathermap_2.html
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Wrote map to /usr/share/cacti/site/plugins/weathermap/output/weathermap_2.png and /usr/share/cacti/site/plugins/weathermap/output/weathermap_thumb_2.png
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Writing PNG file
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Drawing 7 colours into SCALE
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Drawing KEY for DEFAULT if necessary.
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Choosing NODE BGCOLOR for ap1_sess based on 0 %
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Node->pre_render: Label Metrics are: 7 x 13 -> 11 x 17
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Node->pre_render: Label Metrics are: 21 x 13 -> 25 x 17
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT 85:100 (255,0,0)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT 70:85 (255,192,0)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT 55:70 (240,240,0)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT 40:55 (0,240,0)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT 25:40 (0,192,255)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT 10:25 (32,32,255)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT 1:10 (140,0,255)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT TIME (0,0,0)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT TITLE (0,0,0)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT BG (255,255,255)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT KEYBG (255,255,255)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] AllocateScaleColours: DEFAULT KEYTEXT (0,0,0)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Finished Post-Processing Plugins...
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] WeatherMapPostProcessorTest Not Enabled
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapPostProcessorTest->run()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running Post-Processing Plugins...
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] memory_get_usage() says 5MBytes used. Limit is 1232M
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini
--------------
ReadData Completed.
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0]
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] ReadData: Setting 0,0
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] ReadData: NODE ap1_sess, target: gauge:/usr/share/cacti/site/rra/ap_test_aironet_assoc_11.rrd:Aironet_Assoc:- on config line 42 had no valid data, according to WeatherMapDataSource_rrd
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] RRD ReadData: Returning (3,-1,1177490400)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] RRD ReadData: Our line is 1177490400: 3.0000000000e+00
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] --1177489800: 2.0000000000e+00
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] --1177490100: 2.9966666667e+00
)
( Aironet_Assoc
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] RRD ReadData: Found a good line: 1177490400: 3.0000000000e+00
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] --1177490400: 3.0000000000e+00
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] RRD ReadData: 1: This isn't a number: [nan]
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] --1177490700: nan
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] --
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] RRD ReadData: Read 5 lines from rrdtool
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] >
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] > 1177490700: nan
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] > 1177490400: 3.0000000000e+00
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] > 1177490100: 2.9966666667e+00
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] > 1177489800: 2.0000000000e+00
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] RRD ReadData: Running: /usr/bin/rrdtool fetch /usr/share/cacti/site/rra/ap_test_aironet_assoc_11.rrd AVERAGE --start now-800 --end now
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] RRD ReadData: Target DS names are Aironet_Assoc and -
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Special DS names seen (Aironet_Assoc and -).
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] ReadData: Matched for WeatherMapDataSource_rrd. Calling WeatherMapDataSource_rrd->ReadData()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] ReadData: New Target: gauge:/usr/share/cacti/site/rra/ap_test_aironet_assoc_11.rrd:Aironet_Assoc:-
ReadData for NODE ap1_sess:
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0]
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] ReadData: Setting 0,0
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] ReadData: No targets for NODE ap1
ReadData for NODE ap1:
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0]
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] ================== ReadData: Updating link data for all links and nodes
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Finished Initialising Plugins...
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapDataSource_cactihost->Init()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapDataSource_snmp->Init()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapDataSource_dbsample->Init()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapDataSource_external->Init()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapDataSource_tabfile->Init()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapDataSource_rrd->Init()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapDataSource_static->Init()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapDataSource_mrtg->Init()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running Init() for Data Source Plugins...
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Finished Pre-Processing Plugins...
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Test Preprocessor in the hizouse
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running WeatherMapPreProcessorTest->run()
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Running Pre-Processing Plugins...
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Cycle 99 - set 0 and Skipped 0 for unresolved dependencies
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Cycle 100 - set 1 and Skipped 0 for unresolved dependencies
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] ->300,420
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Resolving relative position for NODE ap1_sess to ap1
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Already have 7 scales, no defaults added.
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Saving Node: ap1_sess
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Saving Node: ap1
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Saving Default Link: DEFAULT
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Setting bandwidth (100M, 100M)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Saving Default Node: DEFAULT
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Setting bandwidth (100 -> 100 bps, 100 -> 100 bps, KILO = 1000)
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] WeatherMap class Reset() complete
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Skipping .
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Skipping ..
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded post Plugin class WeatherMapPostProcessorTest from WeatherMapPostProcessorTest.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading post Plugin class from WeatherMapPostProcessorTest.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Beginning to load post plugins from lib/post
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Skipping .
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded pre Plugin class WeatherMapPreProcessorTest from WeatherMapPreProcessorTest.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading pre Plugin class from WeatherMapPreProcessorTest.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Skipping ..
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Beginning to load pre plugins from lib/pre
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded data Plugin class WeatherMapDataSource_cactihost from WeatherMapDataSource_cactihost.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading data Plugin class from WeatherMapDataSource_cactihost.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded data Plugin class WeatherMapDataSource_snmp from WeatherMapDataSource_snmp.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading data Plugin class from WeatherMapDataSource_snmp.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded data Plugin class WeatherMapDataSource_dbsample from WeatherMapDataSource_dbsample.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading data Plugin class from WeatherMapDataSource_dbsample.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Skipping README.txt
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Skipping .
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded data Plugin class WeatherMapDataSource_external from WeatherMapDataSource_external.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading data Plugin class from WeatherMapDataSource_external.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Skipping ..
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded data Plugin class WeatherMapDataSource_tabfile from WeatherMapDataSource_tabfile.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading data Plugin class from WeatherMapDataSource_tabfile.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded data Plugin class WeatherMapDataSource_rrd from WeatherMapDataSource_rrd.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading data Plugin class from WeatherMapDataSource_rrd.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded data Plugin class WeatherMapDataSource_static from WeatherMapDataSource_static.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading data Plugin class from WeatherMapDataSource_static.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loaded data Plugin class WeatherMapDataSource_mrtg from WeatherMapDataSource_mrtg.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Loading data Plugin class from WeatherMapDataSource_mrtg.php
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Beginning to load data plugins from lib/datasources
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Adding default map colour set.
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Map: /usr/share/cacti/site/plugins/weathermap/configs/test -> /usr/share/cacti/site/plugins/weathermap/output/weathermap_2.html & /usr/share/cacti/site/plugins/weathermap/output/weathermap_2.png
04/25/2007 10:40:02 AM - WEATHERMAP: Poller[0] Iterating all maps.
*****************************************************
Okay, i will try your workaround and keep you informed
No i never used any betha versions, i only used weathermap 0.9. (April 19th release)
Thanks
Qwertz
|
|
| Back to top |
|
 |
qwertz Cacti User
Joined: 16 Feb 2006 Posts: 98
|
Posted: Thu Apr 26, 2007 1:47 am Post subject: |
|
|
.yc
Last edited by qwertz on Thu Apr 26, 2007 5:34 am; edited 1 time in total |
|
| Back to top |
|
 |
qwertz Cacti User
Joined: 16 Feb 2006 Posts: 98
|
Posted: Thu Apr 26, 2007 5:33 am Post subject: |
|
|
Hello,
With your workaround, it's working now.
How can i remove the "%" in the legend?
Thanks
Qwertz.
****************************
Open your mind!
http://www.openmaniak.com
| Description: |
|
| Filesize: |
86.13 KB |
| Viewed: |
3197 Time(s) |

|
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Thu Apr 26, 2007 6:22 am Post subject: |
|
|
| qwertz wrote: | Hello,
With your workaround, it's working now.
How can i remove the "%" in the legend?
|
Errr. You can't.
Well, if you don't mind never having it for all your maps, you can change the DrawLegend function in Weathermap.class.php (look for the % in quotes in that function).
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Thu Apr 26, 2007 2:07 pm Post subject: |
|
|
| Howie wrote: | I think you just posted your config in the wrong thread
You seem to have a bug that was in 0.9pre3 but fixed in 0.9... is it possible that you tested pre3, and didn't overwrite the lib/datasources/WeathermapDataSource_rrd.php when you upgraded from 0.9pre3 to 0.9?
The quick fix is to change the '-' in the TARGET line, so that it reads
.....rrd:Aironet_Assoc:Aironet_Assoc
instead, but this should not be necessary with 0.9. |
I've checked now, and somehow this fix did not make it into the final 0.9
I'll fix it for 0.91, but it's probably not worth releasing it just for one bugfix, so I'll wait a week or two to see if anything more comes up.
For anyone else who needs the fix, it's verysimple:
in lib/datasources/WeatherMapDataSource_rrd.php add a new line above line 196:
| Code: |
$inbw = 0; $outbw = 0; // ADD THIS LINE
if(isset($values[$in_ds]) ) $inbw=$values[$in_ds] * $multiplier;
if(isset($values[$out_ds]) ) $outbw=$values[$out_ds] * $multiplier;
|
and '-' DS-names will work again
|
|
| Back to top |
|
 |
NetAdmin Cacti User
Joined: 30 Aug 2006 Posts: 69
|
Posted: Thu Nov 08, 2007 1:18 pm Post subject: |
|
|
Howie,
Is there any way in v0.92 to have a node label that displays just the sum of bandwidth_in + bandwidth_out, and in the same format as the way links display them (i.e. 512K, or 2.53M)? I've looked through the advanced topics of the manual and I'm just not able to figure it out.
Thanks
NetAdmin
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Thu Nov 08, 2007 2:15 pm Post subject: |
|
|
| NetAdmin wrote: | Howie,
Is there any way in v0.92 to have a node label that displays just the sum of bandwidth_in + bandwidth_out, and in the same format as the way links display them (i.e. 512K, or 2.53M)? I've looked through the advanced topics of the manual and I'm just not able to figure it out.
Thanks
NetAdmin |
Something like:
| Code: |
NODE blah
USESCALE none
TARGET therrdfile.rrd:traffic_in:- therrdfile:traffic_out:-
LABEL {node:this:bandwidth_in:%k}
|
should do it.
So that's:
* don't colour this node according to a scale (assuming you want a normal coloured label)
* Fetch the traffic_in, then the traffic_out, both into the 'in' value of the node, adding them together.
* display that 'in' value as the label, with kilo, mega etc (the %k).
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|