When running /usr/x86_64-pc-linux-gnu/lib/check_mk_agent/plugins/mk_postgres.pymanually with util-linux 2.42 installed:
Traceback (most recent call last):
File “/usr/x86_64-pc-linux-gnu/lib/check_mk_agent/plugins/mk_postgres.py”, line 1355, in
main()
~~~~^^
File “/usr/x86_64-pc-linux-gnu/lib/check_mk_agent/plugins/mk_postgres.py”, line 1350, in main
postgres.execute_all_queries()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File “/usr/x86_64-pc-linux-gnu/lib/check_mk_agent/plugins/mk_postgres.py”, line 368, in execute_all_queries
version = self.get_server_version()
File “/usr/x86_64-pc-linux-gnu/lib/check_mk_agent/plugins/mk_postgres.py”, line 231, in get_server_version
return float(“.”.join(version_as_string.split(“.”)[0:2]))
ValueError: could not convert string to float: ‘Letzte’
Or with english locale:
Traceback (most recent call last):
File "/usr/x86_64-pc-linux-gnu/lib/check_mk_agent/plugins/mk_postgres.py", line 1355, in <module>
main()
~~~~^^
File "/usr/x86_64-pc-linux-gnu/lib/check_mk_agent/plugins/mk_postgres.py", line 1350, in main
postgres.execute_all_queries()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/x86_64-pc-linux-gnu/lib/check_mk_agent/plugins/mk_postgres.py", line 368, in execute_all_queries
version = self.get_server_version()
File "/usr/x86_64-pc-linux-gnu/lib/check_mk_agent/plugins/mk_postgres.py", line 231, in get_server_version
return float(".".join(version_as_string.split(".")[0:2]))
ValueError: could not convert string to float: 'Last'
su(1) - Linux manual page
" It is recommended to always use the --login option (instead of its shortcut -) to avoid side effects caused by mixing environments."