Weathermap only show 0%

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
meklatiy
Posts: 6
Joined: Wed Apr 13, 2016 10:14 am

Weathermap only show 0%

Post by meklatiy »

Hi every bady


I use CentOs , cacti Version 0.8.8b and Weathermap version 0.97c

I'm new in using weatermap, and used to draw my map with router juniper (even i use cisco Template)
My problem is the map show me only 0%, but if I move the mouse near the link it give the scren the graph interface wich is ok (utilisation 50 M)
here is my code:

WIDTH 950
HEIGHT 589
HTMLSTYLE overlib
TIMEPOS 963 511 Created: %b %d %Y %H:%M:%S

KEYPOS DEFAULT 10 371 Traffic Load
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
#SCALE DEFAULT 0 0 192 192 192
SCALE DEFAULT 0 1 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

# End of global section


# TEMPLATE-only NODEs:

# TEMPLATE-only LINKs:

# regular NODEs:
NODE MX104_Node1
LABEL MX104_Node1
ICON images/MX104.png
POSITION 234 48

NODE MX104_Node2
LABEL MX104_Node2
ICON images/MX104.png
POSITION 818 81

LINK MX104_Node1-MX104_Node2
WIDTH 3
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=23
OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=23&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
TARGET /usr/share/cacti/rra/9/28.rrd
NODES MX104_Node1 MX104_Node2
ARROWSTYLE compact
INBWFORMAT {link:this:bandwidth_in:%k} of {link:this:max_bandwidth_in:%k}
OUTBWFORMAT {link:this:bandwidth_out:%k} of {link:this:max_bandwidth_out:%k}
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Weathermap only show 0%

Post by micke2k »

Here is an example of a working link. Edit it so yours are the same:

Code: Select all

LINK PA-VM-CACTI
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=438
	OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=438&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
	TARGET /var/www/html/cacti/rra/pa-vm_traffic_in_464.rrd
	NODES PA-VM CACTI
meklatiy
Posts: 6
Joined: Wed Apr 13, 2016 10:14 am

Re: Weathermap only show 0%

Post by meklatiy »

micke2k wrote:Here is an example of a working link. Edit it so yours are the same:

Code: Select all

LINK PA-VM-CACTI
	INFOURL /cacti/graph.php?rra_id=all&local_graph_id=438
	OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=438&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
	TARGET /var/www/html/cacti/rra/pa-vm_traffic_in_464.rrd
	NODES PA-VM CACTI
thank you for your support
but i did'nt have this path in server cd /var/www/html/
[root@localhost html]# pwd
/var/www/html
[root@localhost html]# ls
cache
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Weathermap only show 0%

Post by micke2k »

Yes, Edit it to your settings.

/usr/share etc...
meklatiy
Posts: 6
Joined: Wed Apr 13, 2016 10:14 am

Re: Weathermap only show 0%

Post by meklatiy »

micke2k wrote:Yes, Edit it to your settings.

/usr/share etc...
Thank you my friend for your support
But i didn't understand what I need to change exactly?
Can you explain more please?
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Weathermap only show 0%

Post by micke2k »

Code: Select all

LINK MX104_Node1-MX104_Node2
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=23
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=23&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/rra/9/28.rrd
   NODES MX104_Node1 MX104_Node2
Try this. Still getting 0?
meklatiy
Posts: 6
Joined: Wed Apr 13, 2016 10:14 am

Re: Weathermap only show 0%

Post by meklatiy »

micke2k wrote:

Code: Select all

LINK MX104_Node1-MX104_Node2
   INFOURL /cacti/graph.php?rra_id=all&local_graph_id=23
   OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=23&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
   TARGET /usr/share/cacti/rra/9/28.rrd
   NODES MX104_Node1 MX104_Node2
Try this. Still getting 0?
Yes i still have 0%,
sorry but i can't the difference with initial config?
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Weathermap only show 0%

Post by micke2k »

Ok. Can you check your cacti.log for errors?
meklatiy
Posts: 6
Joined: Wed Apr 13, 2016 10:14 am

Re: Weathermap only show 0%

Post by meklatiy »

micke2k wrote:Ok. Can you check your cacti.log for errors?
Here is :

Log File [Total Lines: 500 - All Items Shown]
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97c run complete - Mon, 18 Apr 16 08:59:37 +0000: 2 maps were run in 0 seconds with 9 warnings.
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] [Map 1] simple.conf: Wrote map to /usr/share/cacti/plugins/weathermap/output/e5fef7b4552357f63edb.png and /usr/share/cacti/plugins/weathermap/output/e5fef7b4552357f63edb.thumb.png
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] [Map 1] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 1] simple.conf: ReadData: LINK node1-node2, target: /usr/share/cacti/rra/ken021_traffic_in_16.rrd on config line 76 of /usr/share/cacti/plugins/weathermap/configs/simple.conf had no valid data, according to WeatherMapDataSource_rrd
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] [Map 1] simple.conf: Map: /usr/share/cacti/plugins/weathermap/configs/simple.conf -> /usr/share/cacti/plugins/weathermap/output/e5fef7b4552357f63edb.html & /usr/share/cacti/plugins/weathermap/output/e5fef7b4552357f63edb.png
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] [Map 4] youness.conf: Wrote map to /usr/share/cacti/plugins/weathermap/output/02688d37b6cfdef8baad.png and /usr/share/cacti/plugins/weathermap/output/02688d37b6cfdef8baad.thumb.png
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: Your background image file could not be read. Check the filename, and permissions, for COLOR 20 20 250
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] [Map 4] youness.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: ReadData: LINK MX104_Node014-MX104_Node061, target: /usr/share/cacti/rra/11/37.rrd on config line 151 of /usr/share/cacti/plugins/weathermap/configs/youness.conf had no valid data, according to WeatherMapDataSource_rrd
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: ReadData: LINK MX104_Node029-MX104_Node012, target: /usr/share/cacti/rra/7/30.rrd on config line 141 of /usr/share/cacti/plugins/weathermap/configs/youness.conf had no valid data, according to WeatherMapDataSource_rrd
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: ReadData: LINK MX104_Node029-MX104_Node070, target: /usr/share/cacti/rra/13/38.rrd on config line 130 of /usr/share/cacti/plugins/weathermap/configs/youness.conf had no valid data, according to WeatherMapDataSource_rrd
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: ReadData: LINK MX104_Node014-MX104_Node070, target: /usr/share/cacti/rra/12/32.rrd on config line 122 of /usr/share/cacti/plugins/weathermap/configs/youness.conf had no valid data, according to WeatherMapDataSource_rrd
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: ReadData: LINK MX104_Node011-MX104_Node012, target: /usr/share/cacti/rra/7/31.rrd on config line 114 of /usr/share/cacti/plugins/weathermap/configs/youness.conf had no valid data, according to WeatherMapDataSource_rrd
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: Unrecognised config on line 101: SCALE TARGET /usr/share/cacti/rra/10/41.rrd
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: Unrecognised config on line 92: scale TARGET /usr/share/cacti/rra/ken062_traffic_in_12.rrd
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] [Map 4] youness.conf: Map: /usr/share/cacti/plugins/weathermap/configs/youness.conf -> /usr/share/cacti/plugins/weathermap/output/02688d37b6cfdef8baad.html & /usr/share/cacti/plugins/weathermap/output/02688d37b6cfdef8baad.png
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] Weathermap 0.97c starting - Normal logging mode. Turn on DEBUG in Cacti for more information
04/18/2016 08:59:27 AM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97c run complete - Mon, 18 Apr 16 08:59:27 +0000: 2 maps were run in 1 seconds with 9 warnings.
04/18/2016 08:59:27 AM - WEATHERMAP: Poller[0] [Map 1] simple.conf: Wrote map to /usr/share/cacti/plugins/weathermap/output/e5fef7b4552357f63edb.png and /usr/share/cacti/plugins/weathermap/output/e5fef7b4552357f63edb.thumb.png
04/18/2016 08:59:27 AM - WEATHERMAP: Poller[0] [Map 1] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
04/18/2016 08:59:27 AM - WEATHERMAP: Poller[0] WARNING: [Map 1] simple.conf: ReadData: LINK node1-node2, target: /usr/share/cacti/rra/ken021_traffic_in_16.rrd on config line 76 of /usr/share/cacti/plugins/weathermap/configs/simple.conf had no valid data, according to WeatherMapDataSource_rrd
04/18/2016 08:59:27 AM - WEATHERMAP: Poller[0] [Map 1] simple.conf: Map: /usr/share/cacti/plugins/weathermap/configs/simple.conf -> /usr/share/cacti/plugins/weathermap/output/e5fef7b4552357f63edb.html & /usr/share/cacti/plugins/weathermap/output/e5fef7b4552357f63edb.png
04/18/2016 08:59:27 AM - WEATHERMAP: Poller[0] [Map 4] youness.conf: Wrote map to /usr/share/cacti/plugins/weathermap/output/02688d37b6cfdef8baad.png and /usr/share/cacti/plugins/weathermap/output/02688d37b6cfdef8baad.thumb.png
04/18/2016 08:59:26 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: Your background image file could not be read. Check the filename, and permissions, for COLOR 20 20 250
04/18/2016 08:59:26 AM - WEATHERMAP: Poller[0] [Map 4] youness.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Weathermap only show 0%

Post by micke2k »

04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: ReadData: LINK MX104_Node029-MX104_Node012, target: /usr/share/cacti/rra/7/30.rrd on config line 141 of /usr/share/cacti/plugins/weathermap/configs/youness.conf had no valid data, according to WeatherMapDataSource_rrd
If you open the graph in debug mode what does the output look like?

Console -> Graphs -> your graph -> Turn on Debug mode

Output looks like:
RDTool Command:
/bin/rrdtool graph - \
--imgformat=PNG \
--start='-180000' \
--end='-300' \
--title='F5 - F5 Global - Connections Current' \
--vertical-label='current connections' \
--slope-mode \
--base=1000 \
--height=250 \
--width=700 \
--rigid \
--alt-autoscale \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border 1 --font TITLE:11:'Ariel' \
--font AXIS:8:'Ariel' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Ariel' \
--font WATERMARK:6:'Ariel' \
--slope-mode \
--watermark 'Copyright (C) 2004-2016 The Cacti Group' \
DEF:a='/var/www/html/commit4837/rra/f5_bigip_conns_cur_clt_553.rrd':'bigip_conns_cur_clt':AVERAGE \
DEF:b='/var/www/html/commit4837/rra/f5_bigip_conns_cur_pvc_554.rrd':'bigip_conns_cur_pvc':AVERAGE \
DEF:c='/var/www/html/commit4837/rra/f5_bigip_conns_cur_srv_556.rrd':'bigip_conns_cur_srv':AVERAGE \
DEF:d='/var/www/html/commit4837/rra/f5_bigip_conns_cur_pvs_555.rrd':'bigip_conns_cur_pvs':AVERAGE \
CDEF:cdefi='c,-1,*' \
CDEF:cdefbc='d,-1,*' \
AREA:a#ED7600FF:'Client ' \
GPRINT:a:LAST:'Current\:%8.0lf' \
GPRINT:a:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:a:MAX:'Maximum\:%8.2lf %s\n' \
AREA:b#DA4725FF:'Client PVA':STACK \
GPRINT:b:LAST:'Current\:%8.0lf' \
GPRINT:b:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:b:MAX:'Maximum\:%8.2lf %s\n' \
AREA:cdefi#EACC00FF:'Server ' \
GPRINT:c:LAST:'Current\:%8.0lf' \
GPRINT:c:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:c:MAX:'Maximum\:%8.2lf %s\n' \
AREA:cdefbc#FF6044FF:'Server PVA':STACK \
GPRINT:d:LAST:'Current\:%8.0lf' \
GPRINT:d:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:d:MAX:'Maximum\:%8.2lf %s\n'
RRDTool Says:
OK
meklatiy
Posts: 6
Joined: Wed Apr 13, 2016 10:14 am

Re: Weathermap only show 0%

Post by meklatiy »

micke2k wrote:
04/18/2016 08:59:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 4] youness.conf: ReadData: LINK MX104_Node029-MX104_Node012, target: /usr/share/cacti/rra/7/30.rrd on config line 141 of /usr/share/cacti/plugins/weathermap/configs/youness.conf had no valid data, according to WeatherMapDataSource_rrd
If you open the graph in debug mode what does the output look like?

Console -> Graphs -> your graph -> Turn on Debug mode

this my output

RRDTool Command:
/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='ACX4000_Node2-To_MX104_Node1 - Traffic ' \
--rigid \
--base='1000' \
--height='120' \
--width='600' \
--alt-autoscale \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/acx4000_Node2_traffic_in_27.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/acx4000_Node2_traffic_in_27.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
AREA:cdefa#00FF0099:'Inbound' \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s' \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s'
RRDTool Says:
OK
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests