Hello,
I'm having an issue importing hosts through the fileshipper module.
This worked perfect many times.
However, my fileshipper sync rule ow is failing with this error:
This Sync Rule failed when last checked at 2018-07-04 17:15:05:
Invalid group object: 572444
However I created the HostGroup through director and deployed it. I
can find it through the gui and through the command line:
root@host:~# icinga2 object list --type hostgroup --name 572444
[2018-07-04 17:16:10 +0200] warning/icinga-app: Sysconfig file
'/etc/sysconfig/icinga2' cannot be read. Using default values.
[2018-07-04 17:16:10 +0200] warning/icinga-app: Sysconfig file
'/etc/sysconfig/icinga2' cannot be read. Using default values.
Object '572444' of type 'HostGroup':
% declared in
'/var/lib/icinga2/api/packages/director/host-1530717161-0/zones.d/director-global/hostgroups.conf', lines
472:1-472:25
* __name = "572444"
* action_url = ""
* display_name = "572444"
* groups = null
* name = "572444"
* notes = ""
* notes_url = ""
* package = "director"
* source_location
* first_column = 1
* first_line = 472
* last_column = 25
* last_line = 472
* path =
"/var/lib/icinga2/api/packages/director/host-1530717161-0/zones.d/director-global/hostgroups.conf"
* templates = [ "572444" ]
% = modified in
'/var/lib/icinga2/api/packages/director/host-1530717161-0/zones.d/director-global/hostgroups.conf', lines
472:1-472:25
* type = "HostGroup"
* vars = null
* zone = "director-global"
It is also in the director database:
(root@oneiroi) [director]> select * from icinga_hostgroup where
object_name ='572444';
+-----+-------------+-------------+----------+--------------+---------------+
| id | object_name | object_type | disabled | display_name | assign_filter |
+-----+-------------+-------------+----------+--------------+---------------+
| 369 | 572444 | object | n | NULL | NULL |
+-----+-------------+-------------+----------+--------------+---------------+
1 row in set (0.00 sec)
Very strangely enough, I have an other HostGroup named 457444 that has
the same issue!
Removing the hostgroups from the imported source lets the import work
correctly.
Would this be a bug?
Rudy
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users