Skip to content
Snippets Groups Projects
Commit ed0711e6 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add host in label for counter data

parent 69bb3c22
No related branches found
No related tags found
No related merge requests found
......@@ -35,12 +35,13 @@
#
# ----------------------------------------------------------------------
# 2020-08-11 <axel.hahn@iml.unibe.ch> initial version
# 2020-08-13 <axel.hahn@iml.unibe.ch> add host in label for counter data
# ======================================================================
. `dirname $0`/inc_pluginfunctions
# --- basic vars
ABOUT="SNMP performance data v0.2"
ABOUT="SNMP performance data v0.3"
SNMPCOMMUNITY="public"
SNMPVERSION="2c"
SNMPGET=$(which snmpget)
......@@ -219,7 +220,7 @@ do
# handle counter data
if [ "$(_iscounter ${oidlist[$index]})" = "true" ]; then
value2=`ph.perfdeltaspeed "snmp-data-${method}-${label}" $value`
value2=`ph.perfdeltaspeed "snmp-data-${HOSTNAME}-${method}-${label}" $value`
_wd "$( printf '%-14s total: %-14s delta: %6s %s per sec' $label $value $value2 $unit )"
value=$value2
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment