Hello,everyone,
My weathermap ICON(port_unknown.png) state was not charge ?
Can somebody help me ?
In my weathermap log is
01/09/2017 06:32:03 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] HP3100-TEST.conf: ReadData: NODE port48, target: gauge:/var/www/html/rra/test-172_16_32_158_traffic_in_76.rrd:int_status:- on config line 93 of /var/www/html/plugins/weathermap/configs/HP3100-TEST.conf had no valid data, according to WeatherMapDataSource_rrd
01/09/2017 06:32:03 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] HP3100-TEST.conf: RRD ReadData: At least one of your DS names (int_status and -) were not found, even though there was a valid data line. Maybe they are wrong? Valid DS names in this file are: traffic_in,traffic_out, [WMRRD06]
My config file (HP3100-TEST.conf)
# Automatically generated by php-weathermap v0.98
FONTDEFINE 100 fonts/ukai.ttc 9
WIDTH 1024
HEIGHT 768
HTMLSTYLE overlib
KEYFONT 100
TITLE TEST
TIMEPOS 746 17 Created: %b %d %Y %H:%M:%S
KEYPOS DEFAULT 30 11 Bandwith Status
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 255 255 255
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
KEYPOS cactiupdown 30 200 Host_Status
# cactiupdown status
#0 Disable
#1 Down
#2 Recovering
#3 Up
#5 Unknow
KEYSTYLE cactiupdown tags
SCALE cactiupdown 0 0.5 192 192 192 Disable
SCALE cactiupdown 0.5 1.5 255 0 0 Down
SCALE cactiupdown 1.5 2.5 0 0 255 Recovering
SCALE cactiupdown 2.5 3.5 0 255 0 Up
SCALE cactiupdown 4.5 5.5 277 277 277 Unknow
#SCALE updown 0 0 255 255 0 images/port_unknown.png
#SCALE updown 2 2 255 0 0 images/port_down.png
#SCALE updown 1 1 0 255 0 images/port_up.png
SCALE ifstatus 0 0 255 255 0 unknown
SCALE ifstatus 2 2 255 0 0 down
SCALE ifstatus 1 1 0 255 0 up
SCALE plain 0 100 255 255 255
SET nowarn_clipping 1
# End of global section
# TEMPLATE-only NODEs:
NODE DEFAULT
LABELFONT 100
MAXVALUE 100
# TEMPLATE-only LINKs:
LINK DEFAULT
WIDTH 5
BWFONT 100
COMMENTFONT 100
BWLABEL bits
BANDWIDTH 1000M
# regular NODEs:
# 32.158 1/50
#NODE port50
# INFOURL /graph.php?rra_id=all&local_graph_id=72
# OVERLIBGRAPH /graph_image.php?rra_id=0&graph_noegend=true&graph_height=100&graph_width=300&local_graph_id=72
# ICON 32 32 images/port_{node:this:inscaletag}.png
# TARGET gauge:/var/www/html/rra/test-172_16_2_158_traffic_in_77.rrd:int_status:-
# USESCALE ifstatus in
# POSITION 260 56
# 32.158 1/48
NODE port48
LABEL port_{node:this:inscaletag}.png
INFOURL /graph.php?rra_id=all&local_graph_id=71
OVERLIBGRAPH /graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=71
ICON images/port_{node:this:inscaletag}.png
TARGET gauge:/var/www/html/rra/test-172_16_32_158_traffic_in_76.rrd:int_status:-
USESCALE ifstatus in
POSITION 230 56
#33.100 1/26
NODE port26
LABEL port_{node:this:inscaletag}.png
INFOURL /graph.php?rra_id=all&local_graph_id=73
OVERLIBGRAPH /graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=73
# ICON images/port_{node:this:inscaletag}.png
# TARGET gauge:/var/www/html/rra/test-172_16_33_100_traffic_in_78.rrd:int_status:-
USESCALE ifstatus in
POSITION 345 180
NODE node09315
LABEL 172.16.32.158 (1/48) {node:this:bandwidth_in}
TARGET cactihost:3
USESCALE cactiupdown in
POSITION 200 20
NODE node09341
LABEL 172.16.33.100 (1/26) {node:this:bandwidth_in}
TARGET cactihost:4
USESCALE cactiupdown in
POSITION 351 210
# regular LINKs:
LINK port48-port26
TARGET /var/www/html/rra/test-172_16_32_158_traffic_in_76.rrd
NODES port48 port26
ARROWSTYLE compact
BANDWIDTH 2
# That's All Folks!
Weathermap can't change ICON
Moderators: Developers, Moderators
Re: Weathermap can't change ICON
Just 2 things come to my mind:
you use USESCALE ifstatus for the icon name, and is define as 'unknown' not port_unknown, like you said in your messages (3rd line)
port_unknown is on updown scale, but commented
and you target use the in_traffic DS file instead of the in_status so the DS name int_status won't exist in this DS file, only traffic_in:traffic_out exist
To correct your problem you need to use the right TARGET, and then match the name of your USESCALE with the icon you file name you want to use.
WRONG:
TARGET gauge:/var/www/html/rra/test-172_16_32_158_traffic_in_76.rrd:int_status:-
Should be something like: (the number 76 should be diffrent, but you get the point ?)
TARGET gauge:/var/www/html/rra/test-172_16_32_158_int_status_76.rrd:int_status:-
regards,
you use USESCALE ifstatus for the icon name, and is define as 'unknown' not port_unknown, like you said in your messages (3rd line)
port_unknown is on updown scale, but commented
and you target use the in_traffic DS file instead of the in_status so the DS name int_status won't exist in this DS file, only traffic_in:traffic_out exist
To correct your problem you need to use the right TARGET, and then match the name of your USESCALE with the icon you file name you want to use.
WRONG:
TARGET gauge:/var/www/html/rra/test-172_16_32_158_traffic_in_76.rrd:int_status:-
Should be something like: (the number 76 should be diffrent, but you get the point ?)
TARGET gauge:/var/www/html/rra/test-172_16_32_158_int_status_76.rrd:int_status:-
regards,
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
-
- Posts: 2
- Joined: Mon Jan 09, 2017 7:20 pm
Re: Weathermap can't change ICON
Hello,Rno
Thank you for your answer.
I follow you said to change
TARGET gauge:/var/www/html/rra/test-172_16_32_158_int_status_76.rrd:int_status:-
but CACTI log show below
01/14/2017 04:25:04 AM - WEATHERMAP: Poller[0] WARNING: [Map 13] HP3100-TEST.conf: ReadData: NODE node04910, target: gauge:/var/www/html/rra/test-172_16_33_100_int_status_81.rrd:int_status:- on config line 80 of /var/www/html/plugins/weathermap/configs/HP3100-TEST.conf had no valid data, according to WeatherMapDataSource_rrd
01/14/2017 04:25:04 AM - WEATHERMAP: Poller[0] WARNING: [Map 13] HP3100-TEST.conf: Target /var/www/html/rra/test-172_16_33_100_int_status_81.rrd doesn't exist. Is it a file? [WMRRD06]
What's wrong ??
Can somebody help me ??
Thank you for your answer.
I follow you said to change
TARGET gauge:/var/www/html/rra/test-172_16_32_158_int_status_76.rrd:int_status:-
but CACTI log show below
01/14/2017 04:25:04 AM - WEATHERMAP: Poller[0] WARNING: [Map 13] HP3100-TEST.conf: ReadData: NODE node04910, target: gauge:/var/www/html/rra/test-172_16_33_100_int_status_81.rrd:int_status:- on config line 80 of /var/www/html/plugins/weathermap/configs/HP3100-TEST.conf had no valid data, according to WeatherMapDataSource_rrd
01/14/2017 04:25:04 AM - WEATHERMAP: Poller[0] WARNING: [Map 13] HP3100-TEST.conf: Target /var/www/html/rra/test-172_16_33_100_int_status_81.rrd doesn't exist. Is it a file? [WMRRD06]
What's wrong ??
Can somebody help me ??
Who is online
Users browsing this forum: No registered users and 1 guest