Zabbix-Network-Weathermap
Zabbix-Network-Weathermap copied to clipboard
Change Traffic Load table
Prototype-X
Thank you for always answering my questions. Currently in my work we use Weathermap + Cacti to monitor network traffic. The Traffic Load table in the current system looks like this: blue 0-10% green 10-40% yellow 40-70% orange 70-80% red 80-90% brown 90-100%
When the link gets down the arrows turn black.
It is possible to change the mappyng.py script and somehow adapt it so that the Traffic Load table stays as it is used in my work today. If possible, what changes should I make
Thank you !
Hi psmartins
The easy way to make the Traffic Load table similar, edit section palette in mapname.yaml
palette:
- '#908C8C' # RGB color arrow for down link
- '#FFFFFF' # 0-1%
- '#8000FF' # 1-10%
- '#0000FF' # 10-25%
- '#00EAEA' # 25-40%
- '#00FF00' # etc ...
- '#FFFF00'
- '#FF9933'
- '#FF0000'
For blue 0-10%, set one colour for 0-1% and 1-10% For green 10-40%, set one colour for 10-25% and 25-40%
The other way edit source code in mapping.py:
class Palette- change RGB coloursclass Table- change functiondraw_table->range(0, 6), fixself.text, ...class Link-> function_fill_arrow-> tupleswitch = ((0, 0, 1), (1, 1, 2), ...(0, 0, 1)- first digit this is index for palette list, last two digit this is interval like 0-0%
Thank you
My map is getting really good