[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Default Scale and INCLUDE
- From: Fabrizio Carusi <xact.future@xxxxxxxxx>
- Subject: Default Scale and INCLUDE
- Date: Tue, 20 Jul 2010 18:20:45 +0200
Hi all, I've an issue with the scale if I use the INCLUDE function. In my conf I've define only the default scale: *KEYPOS DEFAULT 853 605 Traffic Load KEYFONT 2 KEYTEXTCOLOR 0 0 0 KEYOUTLINECOLOR 0 0 0 KEYBGCOLOR 255 255 255 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 SET key_hidezero_DEFAULT 1* If I put the conf for the whole map in one file, the scale look like the fig1. If one of the value is belove the 1% of the bandwidth I see the warning: *WARNING: map2.conf: NewColourFromPercent: Scale DEFAULT doesn't include a line for 0.10610573139381% while drawing item Node1 [WMWARN29]* the link is drawn in white and this is what I want. The debug output report: *[...] DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 KEYTEXT (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 KEYOUTLINE (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 KEYBG (255,255,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 BG (235,255,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 TITLE (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 TIME (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 1_10 (140,0,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 10_25 (32,32,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 25_40 (0,192,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 40_55 (0,240,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 55_70 (240,240,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 70_85 (255,192,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref1 85_100 (255,0,0) [...] DEBUG: [DrawMap@xxxxxxxxxxxxxxxxxxxx:3477] /var/www/configs/newmap2.conf: Drawing KEY for DEFAULT if necessary. DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1506] /var/www/configs/newmap2.conf: Drawing 7 colours into SCALE DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT KEYTEXT (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT KEYOUTLINE (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT KEYBG (255,255,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT BG (235,255,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT TITLE (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT TIME (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 1_10 (140,0,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 10_25 (32,32,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 25_40 (0,192,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 40_55 (0,240,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 55_70 (240,240,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 70_85 (255,192,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap2.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 85_100 (255,0,0) DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap2.conf: 1.000000-10.000000 (5.500000) 140 0 255 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap2.conf: NCFPC DEFAULT 5.5 '' 1_10 140 0 255 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap2.conf: 10.000000-25.000000 (17.500000) 32 32 255 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap2.conf: NCFPC DEFAULT 17.5 '' 10_25 32 32 255 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap2.conf: 25.000000-40.000000 (32.500000) 0 192 255 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap2.conf: NCFPC DEFAULT 32.5 '' 25_40 0 192 255 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap2.conf: 40.000000-55.000000 (47.500000) 0 240 0 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap2.conf: NCFPC DEFAULT 47.5 '' 40_55 0 240 0 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap2.conf: 55.000000-70.000000 (62.500000) 240 240 0 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap2.conf: NCFPC DEFAULT 62.5 '' 55_70 240 240 0 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap2.conf: 70.000000-85.000000 (77.500000) 255 192 0 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap2.conf: NCFPC DEFAULT 77.5 '' 70_85 255 192 0 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap2.conf: 85.000000-100.000000 (92.500000) 255 0 0 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap2.conf: NCFPC DEFAULT 92.5 '' 85_100 255 0 0 [...]* But if I put the node definition in a separate file and I use the INCLUDE function without changing anything in the scale definition, she look like the fig2. Now the debug output is: *[...] DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 KEYTEXT (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 KEYOUTLINE (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 KEYBG (255,255,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 BG (235,255,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 TITLE (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 TIME (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 1_10 (140,0,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 10_25 (32,32,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 25_40 (0,192,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 40_55 (0,240,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 55_70 (240,240,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 70_85 (255,192,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 85_100 (255,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 0_0 (192,192,192) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref1 0_1 (255,255,255) [...] DEBUG: [DrawMap@xxxxxxxxxxxxxxxxxxxx:3477] /var/www/configs/newmap.conf: Drawing KEY for DEFAULT if necessary. DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1506] /var/www/configs/newmap.conf: Drawing 7 colours into SCALE DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT KEYTEXT (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT KEYOUTLINE (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT KEYBG (255,255,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT BG (235,255,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT TITLE (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT TIME (0,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 1_10 (140,0,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 10_25 (32,32,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 25_40 (0,192,255) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 40_55 (0,240,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 55_70 (240,240,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 70_85 (255,192,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 85_100 (255,0,0) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 0_0 (192,192,192) DEBUG: [AllocateScaleColours@xxxxxxxxxxxxxxxxxxxx:3366] /var/www/configs/newmap.conf: AllocateScaleColours: DEFAULT/gdref_legend_DEFAULT 0_1 (255,255,255) DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap.conf: 0.000000-0.000000 (0.000000) 192 192 192 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap.conf: 0.000000-1.000000 (0.500000) 255 255 255 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap.conf: NCFPC DEFAULT 0.5 '' 0_1 255 255 255 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap.conf: 1.000000-10.000000 (5.500000) 140 0 255 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap.conf: NCFPC DEFAULT 5.5 '' 1_10 140 0 255 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap.conf: 10.000000-25.000000 (17.500000) 32 32 255 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap.conf: NCFPC DEFAULT 17.5 '' 10_25 32 32 255 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap.conf: 25.000000-40.000000 (32.500000) 0 192 255 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap.conf: NCFPC DEFAULT 32.5 '' 25_40 0 192 255 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap.conf: 40.000000-55.000000 (47.500000) 0 240 0 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap.conf: NCFPC DEFAULT 47.5 '' 40_55 0 240 0 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap.conf: 55.000000-70.000000 (62.500000) 240 240 0 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap.conf: NCFPC DEFAULT 62.5 '' 55_70 240 240 0 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap.conf: 70.000000-85.000000 (77.500000) 255 192 0 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap.conf: NCFPC DEFAULT 77.5 '' 70_85 255 192 0 DEBUG: [DrawLegend_Classic@xxxxxxxxxxxxxxxxxxxx:1592] /var/www/configs/newmap.conf: 85.000000-100.000000 (92.500000) 255 0 0 DEBUG: [NewColourFromPercent@xxxxxxxxxxxxxxxxxxxx:1256] /var/www/configs/newmap.conf: NCFPC DEFAULT 92.5 '' 85_100 255 0 0 [...]* In all the case, setting the *key_hidezero_DEFAULT* to 0 or to 1 apparently have no effect!* *Can someone take a look? Many thanks Fabrizio
Attachment:
fig1.jpg
Description: JPEG image
Attachment:
fig2.jpg
Description: JPEG image
- Prev by Date: Re: [php-weathermap] php weathermap not reading RRD's
- Next by Date: Link font does not follow link line after .95->.97 upgrade
- Previous by thread: php weathermap not reading RRD's
- Next by thread: Link font does not follow link line after .95->.97 upgrade
- Index(es):