Is there a way to add multiple values for label in nagios/icinga performance data

607 Views Asked by At

Looks like this is the format for performance data in nagios/icinga

'label'=value[UOM];[warn];[crit];[min];[max]

Is it possible to add more than one value for single label as shown below?

eg:

'label'=value1[UOM],value2[UOM],value3[UOM];[warn];[crit];[min];[max]

Or is it possible to rename warn, crit, min, max to value2,value3...???

I would like to get one more column with Value2

Any help is appreciated. Thank you!

This Image is output of performance data from icinga

I would like to get one more column with Value2

2

There are 2 best solutions below

2
Rohlik On

In theory, it is possible as you can see on figure below where 10,11,12 are value1, value2 and value3:

figure 1

But main problem here will be graphs and all visualization because they count on define structure of performance data. Data won't be displayed correctly.

0
pzkpfw On

The gold standard for these types of questions is the Development Guidelines, see the "Performance data" section. It gives this example as "expected format":

'label'=value[UOM];[warn];[crit];[min];[max]

It goes on to state that it should contain:

space separated list of label/value pairs

I don't think this is open for much interpretation: every label has one value, and an optional unit of measurement.