Fixed
Details
Assignee
Dmitri HerdtDmitri HerdtReporter
Sriraag SridharSriraag SridharHB Grooming Date
Sep 27, 2022HB Backlog Status
Refined BacklogFD#
1323Components
Sprint
NoneAffects versions
Priority
Minor
Details
Details
Assignee
Dmitri Herdt
Dmitri HerdtReporter
Sriraag Sridhar
Sriraag SridharHB Grooming Date
Sep 27, 2022
HB Backlog Status
Refined Backlog
FD#
1323
Components
Sprint
None
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created September 26, 2022 at 5:50 AM
Updated May 9, 2023 at 1:40 PM
Resolved May 9, 2023 at 1:40 PM
When using the default graphing engine to backshift "org.opennms.web.graphs.engine=backshift" the Arithmetic POW Operator does not work.
The same works when we set the grahing engine to "png"
RRD Docs on Arithmetic Operator
https://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html
RPN-Eval Code in ONMS
https://github.com/OpenNMS/backshift/blob/925662f6cbcf5a23a699942edd10fd1204d1609f/src/Backshift.Utilities.RpnEvaluator.js
Graph Definitions
### Temperature Graphs report.cisco.env.temp.name=Cisco Environmentals (Temperature) report.cisco.env.temp.columns=entSensorValue,entSensorPrecision report.cisco.env.temp.propertiesValues=entPhysicalName report.cisco.env.temp.type=ciscoEnvMonTmpIndex report.cisco.env.temp.command=--title="Temperature Reading for {entPhysicalName}" \ --lower-limit=0 \ --vertical-label="Celcius(C)" \ DEF:entSensor={rrd1}:entSensorValue:AVERAGE \ DEF:entSensorPre={rrd2}:entSensorPrecision:AVERAGE \ CDEF:tempVal=entSensor,10,entSensorPre,POW,/ \ LINE2:entSensor#fcaf3e:"Pre-Calc Temp" \ AREA:tempVal#fcaf3e \ LINE2:tempVal#f57900:"Temperature" \ GPRINT:tempVal:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:tempVal:MIN:"Min \\: %8.2lf %s" \ GPRINT:tempVal:MAX:"Max \\: %8.2lf %s\\n"
With PNG
With +Backshift
+