Specs:
- Redhat Linux 8.5
- Cacti 1.2.19
- Weathermap 0.98a
My issue: the snmp data retrieved from the equipment is shown as an integer value instead of a fraction.
ie: the real load is 0.19 and the snmp data received is 19.
The OID I'm using is: 1.3.6.1.4.1.9.9.109.1.1.1.1.25.7
With that in mind, I'm trying to divide this value by 100 (multiply for 0.01) to show the correct load in the weathermap node. In order to complete this, I found the "target scale" option but I'm not been able to make it work.
This is where I found it:
https://network-weathermap.com/manual/0 ... s.html#rrd
https://network-weathermap.com/manual/0 ... ODE_TARGET
This is my original node:
Code: Select all
NODE CPURT139A
LABEL CPU: {node:this:bandwidth_in:%.2f}%
LABELFONT 1
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=2054
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_height=100&graph_width=350&local_graph_id=2054
TARGET gauge:/var/www/html/cacti/rra/341/2181.rrd:5min_cpu_asr1000:-
POSITION MZ-IT-PF-C0-RT-139A 60 0
I tried a couple of combinations, with no lucky.
TARGET scale:1*0.01:/var/www/html/cacti/rra/341/2181.rrd:5min_cpu_asr1000:-
TARGET scale:/var/www/html/cacti/rra/341/2181.rrd:1*0.01:5min_cpu_asr1000:-
TARGET scale:/var/www/html/cacti/rra/341/2181.rrd:1*0.01:5min_cpu_asr1000:
TARGET scale:/var/www/html/cacti/rra/341/2181.rrd:5min_cpu_asr1000:1*0.01:
Does anyone knows how to properly use it?
Thanks in advance.