Skip to content

Conversation

weaselp
Copy link

@weaselp weaselp commented Sep 5, 2025

I really find it helpful if my icinga notifications give me some insight on how outside the expected range a datapoint falls.

It seems the easiest approach is to just repeat the perdata in the "plain text" part of the output as well, so it gets picked up by my notification scripts as well as the icingaweb default output.

e.g.:

% ./etc/shell_wrapped/influx-kueche-fridge-temperature
[OK] - InfluxDB Query Status temperature=6.2;12;15 | temperature=6.2;12;15

(This is on top of pull-request #37.)

Peter Palfrader added 2 commits September 5, 2025 12:22
Fix on 181ad1f, which limits printing of perf data to only the last set
of data.  However, the guard incorrectly restricts the printing to cases
where we have at least two, not at least one.
This way, notifications get more than just a "InfluxDB Query Status"
but instead get a
  InfluxDB Query Status power=20.883;8:75;5:
or
  InfluxDB Query Status temperature=6.2;12;15
@martialblog martialblog self-assigned this Sep 8, 2025
@martialblog
Copy link
Member

Hi, thanks for the PR. I'm not sure yet if this is behavior we want to introduce.

@RincewindsHat any thoughts?

@RincewindsHat
Copy link
Member

I do not really like the aesthetics here (I feel like it is hard to read), but the change has little impact on the code complexity.
If this is useful, no objection from my side.

@martialblog
Copy link
Member

martialblog commented Oct 7, 2025

I'm not sure about the change. I think the use case is too narrow, aren't there macros to get this data for a notification plugin? $host.perfdata$ $service.perfdata$?

And for the Icinga Web, in icingadb-web the perfdata are visible in various panels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants