Howie wrote: ↑Mon Sep 13, 2021 12:47 pm
OK. Did you read any of the three pages of the 10 year old thread you posted on the end of?
Does your Cacti already have interface status graphs?
What have you tried?
What did it do?
yes, i have interface status graphs.
when the port is down not changing the color
of this node
NODE node02382
LABEL XG-15
TARGET /opt/cacti/rra/core_int_status_169.rrd:int_status:-
USESCALE IFSTATUS in percent
POSITION 688 156
Here is my weather map config
# Automatically generated by php-weathermap v0.98a
WIDTH 4000
HEIGHT 3000
HTMLOUTPUTFILE test.html
IMAGEOUTPUTFILE test.png
TIMEPOS 67 48 Created: %b %d %Y %H:%M:%S
KEYPOS DEFAULT 1411 109 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 RUNTIME 0 0.01 255 0 0 255 0 0
SCALE RUNTIME 0.01 10 255 0 0 255 150 0
SCALE RUNTIME 10 16 255 255 0 255 255 0
SCALE RUNTIME 16 20 100 255 0 150 255 0
SCALE RUNTIME 20 100 0 255 0 0 255 0
SCALE RUNTIME 100 300 0 255 0 0 255 0
SCALE cactiupdown 0 0.5 192 192 192
SCALE cactiupdown 0.5 1.5 255 0 0
SCALE cactiupdown 1.5 2.5 0 0 255
SCALE cactiupdown 2.5 3.5 0 255 0
SCALE IFSTATUS 0 1.5 0 255 0 Up
SCALE IFSTATUS 1.5 2.5 255 0 0 Down
SET key_hidezero_DEFAULT 1
# End of global section
# TEMPLATE-only NODEs:
NODE DEFAULT
LABELFONT 2
ICON images/ports_{node:this:int_status}.png
MAXVALUE 100
# TEMPLATE-only LINKs:
LINK DEFAULT
WIDTH 3
BANDWIDTH 1000M
# regular NODEs:
NODE node03791
LABEL Core
LABELOUTLINECOLOR none
LABELBGCOLOR none
ICON 300 30 box
TARGET cactihost:13
USESCALE cactiupdown in percent
POSITION 688 121
NODE node03798
LABEL M-3
ICON 150 20 box
POSITION 695 411
NODE node02382
LABEL XG-15
TARGET /opt/cacti/rra/core_int_status_169.rrd:int_status:-
USESCALE IFSTATUS in percent
POSITION 688 156
# regular LINKs:
LINK node03791-node03798
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=181
OVERLIBGRAPH /cacti/graph_image.php?local_graph_id=181&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
TARGET /opt/cacti/rra/core_traffic_in_170.rrd
NODES node03791 node03798
VIA 691 253
# That's All Folks!
****************************************************
RRDtool Graph Syntax
RRDtool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='1633282980' \
--end='1633284780' \
--pango-markup \
--title='CORE - Status - XGigabitEthernet0/0/15 - **** Mikrotik 3 ****' \
--vertical-label='status' \
--slope-mode \
--base=1000 \
--height=50 \
--width=500 \
--tabwidth '30' \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2021-10-03 23\:13\:00 To 2021-10-03 23\:43\:00\c" \
COMMENT:" \n" \
--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:'Arial' \
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
--slope-mode \
--watermark 'Generated by Cacti®' \
DEF:a='/opt/cacti/rra/core_int_status_169.rrd':'int_status':AVERAGE \
DEF:b='/opt/cacti/rra/core_int_status_169.rrd':'int_status':LAST \
AREA:a#FFC73BFF:'Current status\:' \
GPRINT
LAST:'%8.2lf%s\n' \
COMMENT:'(1 = Up | 2 = Down)\n'
RRDtool Command lengths = 998 charaters.
RRDtool Says:
OK