Skip to content

HRULE objects broken in some cases #2662

@eschoeller

Description

@eschoeller

This was working on whichever version I was on previously (~1.2.0). The problem is that SNMP is returning "percent" since I include the MIB by default in all queries. This is a regression of several of my other bug reports, and likely the exact opposite behavior of what I'm looking for in my other open issue (aka I do need "percent" to come through)

I really need to go back to the way things were working previously, which SNMP commands in Cacti fetched MIB resolvable units and which ones didn't.

RRDtool Command:
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--pango-markup  \
--title='device - CD_73,75,77 - Out of Balance' \
--vertical-label='percent' \
--slope-mode \
--base=1000 \
--height=130 \
--width=550 \
--tabwidth '30' \
--rigid \
--alt-autoscale \
COMMENT:"From 2019/04/29 20\:55\:01 To 2019/04/30 20\:50\:01\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:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
--font WATERMARK:8: \
--slope-mode \
DEF:a='/cacti/cacti-1.2.3-prod/rra/device_cordoutofbalance_70099.rrd':'CordOutOfBalance':AVERAGE \
CDEF:cdefa='a,10,/' \
LINE1:cdefa#2175D9FF:'Circuit(BA)'  \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefa:MIN:'Min\:%8.2lf %s'  \
GPRINT:cdefa:AVERAGE:'Avg\:%8.2lf %s'  \
GPRINT:cdefa:MAX:'Max\:%8.2lf %s\n'  \
HRULE:15 percent#FF5F00FF:'High Warning\: 15 percent' \
HRULE:20 percent#FF0000FF:'High Alarm\: 20 percent'
RRDtool Says:
ERROR: 'percent#FF5F00FF' is not a valid function name in percent#FF5F00FF:High Warning\: 15 percent

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions