icinga2
icinga2 copied to clipboard
InfluxdbWriter chokes on perfdata "U"
Describe the bug
I am getting a lot of warnings in my icinga2 logs like this:
warning/InfluxdbWriter: Ignoring invalid perfdata for checkable 'dev-bas1-pos-v01.sf-rz.de!postgres_patroni_dev_01_tst_longest_query' and command 'check_pgactivity' with value: 'testdb max'=Us;60;90
Looking at https://nagios-plugins.org/doc/guidelines.html#AEN200, the value "U" is perfectly legitimate here
To Reproduce
- set up a check which will return "U" as value in the performancedata (check_pgactivity works fine with the longest_query)
- run the check and look into the logs
Expected behavior
I would love to turn off those warnings in the icinga logs (only for value U) or have InfluxWriter insert something like null instead of failing/complaining.
Your Environment
Include as many relevant details about the environment you experienced the problem in
- Version used (
icinga2 --version): 2.13.2-1 - Operating System and version: RHEL 7.9
- Enabled features (
icinga2 feature list): api checker ido-pgsql influxdb mainlog notification
value may be a literal "U" instead, this would indicate that the actual value couldn't be determined
Yes, that is what the check is sending and Icinga is passing to the writer. So I would expect it to handle that value without spamming the logs.