[linux-l] icinga2 Frage (centos, pg, ido)

Lutz Willek lutz.willek at belug.de
Di Okt 6 16:31:45 CEST 2015


Hallo zusammen,

ich brauche mal einen icinga2-Auskenner-Ratschlag. Ich nehme an es ist 
nur eine absolute Kleinigkeit, stehe aber momentan auf dem Schlauch und 
komme einfach nicht weiter.

Vorgeschichte/Setup:
Inspiriert von der Meldung http://heise.de/-2837984 habe ich gerade 
icinga2 und icingaweb2 auf einem CentOS7.1 installiert.
Testsetup: Alles frisch, keine Altlasten.

Alles laut Anleitung installiert:
https://github.com/Icinga/icinga2/blob/master/doc/2-getting-started.md
https://github.com/Icinga/icingaweb2/blob/master/doc/installation.md

Insbesondere 
https://github.com/Icinga/icinga2/blob/master/doc/2-getting-started.md#configuring-db-ido-postgresql
habe ich befolgt.

Leider beschwert sich icingaweb:

There is currently no icinga instance writing to the IDO. Make sure that 
a icinga instance is configured and able to write to the IDO.


Jetzt eine vermutlich einfache Frage: Wie konfiguriere ich icinga2 so, 
das es auch in die Datenbank schreibt? Ich dachte ja das hier reicht:
> # cat /etc/icinga2/features-enabled/ido-pgsql.conf
> /**
>  * The db_ido_pgsql library implements IDO functionality
>  * for PostgreSQL.
>  */
>
> library "db_ido_pgsql"
>
> object IdoPgsqlConnection "ido-pgsql" {
>   user = "icinga"
>   password = "icinga"
>   host = "localhost"
>   database = "icinga"
> }


Ich habe folgendes an config optionen gefunden, was mir aber alles nicht 
wirklich weiter hilft:

https://github.com/Icinga/icinga2/blob/master/doc/5-advanced-topics.md#db-ido

Die Datenbank ist ja da, wird aber nicht genutzt:
> [root at centos tmp]# export PGPASSWORD=icinga; psql -U icinga -d icinga -c "SELECT ps.status_update_time FROM icinga_programstatus AS ps
>>   JOIN icinga_instances AS i ON ps.instance_id=i.instance_id
>>   WHERE ((SELECT extract(epoch from status_update_time) FROM icinga_programstatus) > (SELECT extract(epoch from now())-60))
>>   AND i.instance_name='default'";
>  status_update_time
> --------------------
> (0 Zeilen)
>

^^Eigentlich hätte ich hier so etwas wie "2015-10-06 16:20 ..." als 
Rückgabe erwartet, wenn die Datenbank genutzt wird.

Kann mir jemand helfen?

Gruß Lutz







Mehr Informationen über die Mailingliste linux-l