icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

InfluxdbWriter chokes on perfdata "U"

Open joernott opened this issue 3 years ago • 2 comments

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

  1. set up a check which will return "U" as value in the performancedata (check_pgactivity works fine with the longest_query)
  2. 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

joernott avatar Mar 03 '22 14:03 joernott

value may be a literal "U" instead, this would indicate that the actual value couldn't be determined

Al2Klimov avatar Mar 22 '22 17:03 Al2Klimov

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.

joernott avatar Mar 22 '22 20:03 joernott