Label SNMP Value divided by ten

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
sidthebabo
Posts: 1
Joined: Mon Nov 10, 2014 9:16 am

Label SNMP Value divided by ten

Post by sidthebabo »

I'm building a weathermap where the Ampere Values of APC powerboards are shown.
The problem is, I need to divide these values by 10.

This is in the Config File for my node:
NODE apc01
LABEL {node:this:snmp_in_raw}
TARGET snmp:{node:this:ip}:.1.3.6.1.4.1.318.1.1.12.1.16.0:-
SET ip <ip>
ICON <value> <value>
POSITION <value> <value>
Of course in the original I've put in the right values.

I tried the following:

TARGET scale:0.1*snmp:{node...
TARGET 0.1*snmp....
TARGET ...:oid:-/10
TARGET...:oid/10:-

I also applied a CDEF that should divide it by 10, but it doesn't work neither.

It says
cdef=CURRENT_DATA_SOURCE,10,/
I changed the default color table in the config.
If I typed TARGET 0.1*snmp... the node had the correct color, but still the wrong value,
and I can't figure out why.

Can anyone help?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests