Hi All,
My configuration as below, want show link down between two nodes in red color.
using php-weathermap v0.98 and cacti 0.0.8h
# Automatically generated by php-weathermap v0.98
HTMLSTYLE overlib
KEYSTYLE DEFAULT tags
KEYPOS DEFAULT -1 -1 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
SCALE DEFAULT 0 100 92 255 92 unknown
SCALE DEFAULT 0.5 1.5 92 255 92 UP
SCALE DEFAULT 1.5 2.5 239 41 50 DOWN
SET key_hidezero_DEFAULT 1
# End of global section
# TEMPLATE-only NODEs:
NODE DEFAULT
MAXVALUE 100
# TEMPLATE-only LINKs:
LINK DEFAULT
BANDWIDTH 100M
regular NODEs:
NODE RAS1
LABEL RAS1
ICON 75 35 images/ras.png
POSITION 120 90
NODE RAS2
LABEL RAS2
ICON 75 35 images/ras.png
POSITION 510 90
NODE L2-1
LABEL L2-1
ICON images/router_up.gif
POSITION 150 255
NODE L2-2
LABEL L2-2
ICON images/router_up.gif
POSITION 300 375
NODE L2-3
LABEL L2-3
ICON images/router_up.gif
POSITION 480 255
NODE secret_node_RAS1_RAS2
TARGET /usr/share/cacti/rra/ras1_traffic_in_6411.rrd
POSITION 10000 2000
NODE secret_node_RAS1_L2-1
TARGET /usr/share/cacti/rra/ras1_traffic_in_6410.rrd
POSITION 10000 2000
# regular LINKs:
LINK RAS1-RAS2
WIDTH 3
INBWFORMAT {node:secret_node_RAS1_RAS2:bandwidth_in:%.2k}
OUTBWFORMAT {node:secret_node_RAS1_RAS2:bandwidth_out:%.2k}
TARGET gauge:/usr/share/cacti/rra/ras1_int_status_6440.rrd:int_status:int_status
NODES RAS1 RAS2
VIA 301 42
BANDWIDTH 1000M
LINK RAS2-L2-3
WIDTH 3
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=6439
OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=6439&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
TARGET /usr/share/cacti/rra/ras2_traffic_in_6442.rrd
NODES RAS2 L2-3
VIA 517 176
BANDWIDTH 1000M
LINK L2-3-L2-2
WIDTH 3
NODES L2-3:0:0 L2-2:0:0
VIA 424 344
BANDWIDTH 1000M
SET _tidied 1
LINK L2-1-L2-2
WIDTH 3
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=6474
OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=6474&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
TARGET /usr/share/cacti/rra/msc_ras12_1_traffic_in_6477.rrd
NODES L2-1 L2-2
VIA 211 339
BANDWIDTH 1000M
LINK RAS1-L2-1
WIDTH 3
INBWFORMAT {node:secret_node_RAS1_L2-1:bandwidth_in:%.2k}
OUTBWFORMAT {node:secret_node_RAS1_L2-1:bandwidth_out:%.2k}
TARGET gauge:/usr/share/cacti/rra/ras1_int_status_6439.rrd:int_status:int_status
NODES RAS1 L2-1
VIA 118 179
BANDWIDTH 1000M
=-=-=-=-=-=-
Cacti logs
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: NewColourFromPercent: Clipped 7427739.0133334% to 100% for item secret_node_RAS1_L2-1 [WMWARN33]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: NewColourFromPercent: Clipped 638556.53333334% to 100% for item secret_node_RAS1_L2-1 [WMWARN33]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: NewColourFromPercent: Clipped 35134.346666666% to 100% for item secret_node_RAS1_RAS2 [WMWARN33]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: NewColourFromPercent: Clipped 38846.32% to 100% for item secret_node_RAS1_RAS2 [WMWARN33]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: NewColourFromPercent: Scale IFSTATUS doesn't include a line for 1 while drawing item RAS1-L2-1 [WMWARN29]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: ColourFromPercent: Attempted to use non-existent scale: IFSTATUS for item RAS1-L2-1 [WMWARN09]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: NewColourFromPercent: Scale IFSTATUS doesn't include a line for 1 while drawing item RAS1-L2-1 [WMWARN29]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: ColourFromPercent: Attempted to use non-existent scale: IFSTATUS for item RAS1-L2-1 [WMWARN09]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: NewColourFromPercent: Scale IFSTATUS doesn't include a line for 1 while drawing item RAS1-RAS2 [WMWARN29]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: ColourFromPercent: Attempted to use non-existent scale: IFSTATUS for item RAS1-RAS2 [WMWARN09]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: NewColourFromPercent: Scale IFSTATUS doesn't include a line for 1 while drawing item RAS1-RAS2 [WMWARN29]
05/23/2017 08:20:19 PM - WEATHERMAP: Poller[0] WARNING: [Map 3] kora-ring-test.conf: ColourFromPercent: Attempted to use non-existent scale: IFSTATUS for item RAS1-RAS2 [WMWARN09]
weather-map show as below, wants.. link up in Green color and link down in Red color... please support.
Weather map link status... Not working
Moderators: Developers, Moderators
Weather map link status... Not working
- Attachments
-
- Weathermap link status.GIF (10.92 KiB) Viewed 4614 times
Re: Weather map link status... Not working
I think the config of your link is wrong!
You define a IN/OUTBWFORMAT for a usage bandwith, but your TARGET is a status, it's not compatible!
I'm not sure you can have a TARGET based on bandwith and disaply the status of the link in diffrent color.
For information on my side i did the following:
The LINK usage:
LINK SRE-ULU-85-SE-ULU-84
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=816
OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=816&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
INBWFORMAT {link:this:bandwidth_in:%k} ({link:this:inpercent:%.1f}%)
OUTBWFORMAT {link:this:bandwidth_out:%k} ({link:this:outpercent:%.1f}%)
TARGET /usr/share/cacti/rra/sre-ulu-85_traffic_in_824.rrd
NODES SRE-ULU-85 SE-ULU-84
And the status of the link just displaying up or down on it:
NODE SRE-ULU-85-SE-ULU-84-STATUS
LABEL {node:this:inscaletag}
LABELOFFSET c
ICON none
TARGET gauge:/usr/share/cacti/rra/sre-ulu-85_int_status_880.rrd:int_status:-
USESCALE linkupdown in percent
POSITION 425 725
You define a IN/OUTBWFORMAT for a usage bandwith, but your TARGET is a status, it's not compatible!
I'm not sure you can have a TARGET based on bandwith and disaply the status of the link in diffrent color.
For information on my side i did the following:
The LINK usage:
LINK SRE-ULU-85-SE-ULU-84
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=816
OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=816&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
INBWFORMAT {link:this:bandwidth_in:%k} ({link:this:inpercent:%.1f}%)
OUTBWFORMAT {link:this:bandwidth_out:%k} ({link:this:outpercent:%.1f}%)
TARGET /usr/share/cacti/rra/sre-ulu-85_traffic_in_824.rrd
NODES SRE-ULU-85 SE-ULU-84
And the status of the link just displaying up or down on it:
NODE SRE-ULU-85-SE-ULU-84-STATUS
LABEL {node:this:inscaletag}
LABELOFFSET c
ICON none
TARGET gauge:/usr/share/cacti/rra/sre-ulu-85_int_status_880.rrd:int_status:-
USESCALE linkupdown in percent
POSITION 425 725
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
Re: Weather map link status... Not working
Thanks... Rno
trying this today... can you please share your conf.
regards
Anna Patil
trying this today... can you please share your conf.
regards
Anna Patil
Re: Weather map link status... Not working
Thanks, its working now.. but one issue. sometimes snmp returing value as 1.97 or 1.03 that time, interface now showing up down. This is tested with shuting specific interface.
do we need to tweak scale ?
SCALE linkupdown 0.5 1.5 92 255 92 UP
SCALE linkupdown 1.5 2.5 239 41 50 DOWN
do we need to tweak scale ?
SCALE linkupdown 0.5 1.5 92 255 92 UP
SCALE linkupdown 1.5 2.5 239 41 50 DOWN
- Attachments
-
- Weathermap link status-down.GIF (10.97 KiB) Viewed 4412 times
Re: Weather map link status... Not working
yes I forgot the scale, here what i have:
SCALE linkupdown 0 0.5 192 192 192 Unknown
SCALE linkupdown 0.5 1.5 0 255 0 Up
SCALE linkupdown 1.5 2 255 0 0 Down
SCALE linkupdown 0 0.5 192 192 192 Unknown
SCALE linkupdown 0.5 1.5 0 255 0 Up
SCALE linkupdown 1.5 2 255 0 0 Down
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
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Weather map link status... Not working
This is because you are using rrdtool. SNMP is not returning 1.97. SNMP returns 1 or 2. But rrdtool will tell you the average value over the last 5 minutes (part up, part down).annapatil wrote:Thanks, its working now.. but one issue. sometimes snmp returing value as 1.97 or 1.03 that time, interface now showing up down. This is tested with shuting specific interface.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 0 guests