Icinga2 comes with plugins-contrib.d/databases.conf which contains the
"postgres" CheckCommand. There seems to be an issue with the following line:
set_if = {{ macro("$postgres_unixsocket$") == false }}
This seems to never evaluate to true; the -H argument never seems to be
passed regardless of what value postgres_unixsocket is set to.
I've done some tracking down, and it seems that
macro("$postgres_unixsocket$") always returns a String although
$postgres_unixsocket$ is a Boolean. Changing the set_if to the following
fixes the issue:
set_if = {{ macro("$postgres_unixsocket$") == "false" }}
(note the quotes)
I'm not sure if this is the proper fix.
On another note, is there any issue tracker for icinga2, the github has
issues turned off. Do you accept PRs?
Shay
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users