-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I am working with a Foreman-Icinga2 setup distributed on 2 machines: 1 running Foreman (server1116) and the monitoring smart proxy, the other (server1100) running icinga2 with icingaweb2 and icingadirector.
Problem
If I simply change the hostgroup value of a host, the change is performed successfully (after I enable the change in Icinga director)
I, [2018-07-25T13:13:24.636192 11ee5e9b] INFO -- : 10.35.147.116 - - [25/Jul/2018:13:13:24 +0200] GET /monitoring/host/server1117.cs.technik.fhnw.ch HTTP/1.1 200 202 0.1171
I, [2018-07-25T13:13:24.814211 11ee5e9b] INFO -- : 10.35.147.116 - - [25/Jul/2018:13:13:24 +0200] GET /monitoring/host/server1117.cs.technik.fhnw.ch HTTP/1.1 200 202 0.1116
I, [2018-07-25T13:13:25.134359 11ee5e9b] INFO -- : 10.35.147.116 - - [25/Jul/2018:13:13:25 +0200] POST /monitoring/host/server1117.cs.technik.fhnw.ch HTTP/1.1 200 432 0.2434
But if I tried to add a property in Foreman but upon submit I received the following error message on-screen:

In the proxy log I can see the below messages:
I, [2018-07-25T12:53:46.925010 11ee5e9b] INFO -- : 10.35.147.116 - - [25/Jul/2018:12:53:46 +0200] GET /monitoring/host/server1117.cs.technik.fhnw.ch HTTP/1.1 200 202 0.1127 I, [2018-07-25T12:53:47.107288 11ee5e9b] INFO -- : 10.35.147.116 - - [25/Jul/2018:12:53:47 +0200] GET /monitoring/host/server1117.cs.technik.fhnw.ch HTTP/1.1 200 202 0.1129 E, [2018-07-25T12:53:47.411002 11ee5e9b] ERROR -- : Error connecting to Icinga Director at https://server1100.cs.technik.fhnw.ch/icingaweb2/director/host?name=server1117.cs.technik.fhnw.ch: 304 Not Modified
I, [2018-07-25T12:53:47.412078 11ee5e9b] INFO -- : 10.35.147.116 - - [25/Jul/2018:12:53:47 +0200] POST /monitoring/host/server1117.cs.technik.fhnw.ch HTTP/1.1 400 154 0.2303 `
creation of Foreman host properties to icinga supported?
Background
Background: We want to add an expire date to hosts which we want to monitor and send notifications to the owner. This is part of our planned automated host creation process. New servers are deployed with Salt, then they register in Foreman which creates hosts in icinga for monitoring.
system info
foreman-monitoring: 1.0.1-1
Icinga2: r2.9.0-1
Icingaweb2: 2.6.0
icinga director: master
Cheers,
Nic
