Enhancement: thresholds values from other metrics or strings.properties

Description

Enhancement: get thresholds values from other metrics or strings.properties files.

We have devices where we can get warning or critical threshold values with SNMP.
But we can't use them in a threshold definitions.

Adding the possibility to use threshold value from strings.properties files or other metrics in the datasource type would be nice.

Example for a threshold definition:

grafik-20250123-145652.png

Example snmptable export:


index,SensorDescription,Temperature,WarningThreshold,CriticalThreshold,Status
[1],"Ambient 0",25,58,65,normal
[2],"Ambient 1",28,55,62,normal
[3],"Ambient 2",31,49,56,normal
[4],"Ambient 3",29,53,60,normal
[5],"Ambient 4",28,57,64,normal
[6],"Ambient 5",27,59,66,normal
[7],"Ambient 6",30,56,63,normal
[8],"CPU",30,88,90,normal
[9],"INTERNAL MAC",38,105,107,normal
[10],"SODIMM",29,80,84,normal

 

Example snmpwalk:


RAPID-CITY::rcVossSystemTemperatureSensorDescription.1 = STRING: "Ambient 0"
RAPID-CITY::rcVossSystemTemperatureSensorDescription.2 = STRING: "Ambient 1"
RAPID-CITY::rcVossSystemTemperatureSensorDescription.3 = STRING: "Ambient 2"
RAPID-CITY::rcVossSystemTemperatureSensorDescription.4 = STRING: "Ambient 3"
RAPID-CITY::rcVossSystemTemperatureSensorDescription.5 = STRING: "Ambient 4"
RAPID-CITY::rcVossSystemTemperatureSensorDescription.6 = STRING: "Ambient 5"
RAPID-CITY::rcVossSystemTemperatureSensorDescription.7 = STRING: "Ambient 6"
RAPID-CITY::rcVossSystemTemperatureSensorDescription.8 = STRING: "CPU"
RAPID-CITY::rcVossSystemTemperatureSensorDescription.9 = STRING: "INTERNAL MAC"
RAPID-CITY::rcVossSystemTemperatureSensorDescription.10 = STRING: "SODIMM"
RAPID-CITY::rcVossSystemTemperatureTemperature.1 = Gauge32: 25
RAPID-CITY::rcVossSystemTemperatureTemperature.2 = Gauge32: 28
RAPID-CITY::rcVossSystemTemperatureTemperature.3 = Gauge32: 31
RAPID-CITY::rcVossSystemTemperatureTemperature.4 = Gauge32: 30
RAPID-CITY::rcVossSystemTemperatureTemperature.5 = Gauge32: 28
RAPID-CITY::rcVossSystemTemperatureTemperature.6 = Gauge32: 28
RAPID-CITY::rcVossSystemTemperatureTemperature.7 = Gauge32: 31
RAPID-CITY::rcVossSystemTemperatureTemperature.8 = Gauge32: 31
RAPID-CITY::rcVossSystemTemperatureTemperature.9 = Gauge32: 38
RAPID-CITY::rcVossSystemTemperatureTemperature.10 = Gauge32: 29
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.1 = INTEGER: 58
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.2 = INTEGER: 55
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.3 = INTEGER: 49
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.4 = INTEGER: 53
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.5 = INTEGER: 57
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.6 = INTEGER: 59
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.7 = INTEGER: 56
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.8 = INTEGER: 88
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.9 = INTEGER: 105
RAPID-CITY::rcVossSystemTemperatureWarningThreshold.10 = INTEGER: 80
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.1 = INTEGER: 65
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.2 = INTEGER: 62
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.3 = INTEGER: 56
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.4 = INTEGER: 60
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.5 = INTEGER: 64
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.6 = INTEGER: 66
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.7 = INTEGER: 63
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.8 = INTEGER: 90
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.9 = INTEGER: 107
RAPID-CITY::rcVossSystemTemperatureCriticalThreshold.10 = INTEGER: 84
RAPID-CITY::rcVossSystemTemperatureStatus.1 = INTEGER: normal(1)
RAPID-CITY::rcVossSystemTemperatureStatus.2 = INTEGER: normal(1)
RAPID-CITY::rcVossSystemTemperatureStatus.3 = INTEGER: normal(1)
RAPID-CITY::rcVossSystemTemperatureStatus.4 = INTEGER: normal(1)
RAPID-CITY::rcVossSystemTemperatureStatus.5 = INTEGER: normal(1)
RAPID-CITY::rcVossSystemTemperatureStatus.6 = INTEGER: normal(1)
RAPID-CITY::rcVossSystemTemperatureStatus.7 = INTEGER: normal(1)
RAPID-CITY::rcVossSystemTemperatureStatus.8 = INTEGER: normal(1)
RAPID-CITY::rcVossSystemTemperatureStatus.9 = INTEGER: normal(1)
RAPID-CITY::rcVossSystemTemperatureStatus.10 = INTEGER: normal(1)

Acceptance / Success Criteria

None

Attachments

1
  • 23 Jan 2025, 03:00 PM

Activity

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Components

Fix versions

Affects versions

Priority

PagerDuty

Created January 23, 2025 at 3:00 PM
Updated February 24, 2025 at 2:09 PM

Flag notifications