Am 30.06.2015 um 11:50 schrieb Shay Rojansky:
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.

How does your configuration look like?


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.

Did not test it, but this really works for both cases?


On another note, is there any issue tracker for icinga2, the github has issues 
turned off. Do you accept PRs?

https://wiki.icinga.org/display/Dev/Developer+Guidelines

Kind regards,
Michael


-- 
Michael Friedrich, DI (FH)
Application Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | michael.friedr...@netways.de

** OSBConf 2015 - September - osbconf.org **
** OSMC 2015 - November - netways.de/osmc **
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to