Hello there:)
After reading lots of this friendly community I am still stuck in getting notifications automatically out of director - custom, i.e. manually sent notifications are about OK.
My setup:
- Icinga Web 2 Version 2.7.1
- director 1.6.2
- monitoring 2.7.1
To be monitored are about 40 linux-containers (LXC) and their hosts (LXD) at two different locations.
User-, Host-, TimePeriod-Templates/Objects and Notification rules are defined.
When triggering an outage (say: stop container) and the opposite (start container again), the event is logged both for host- and service-events:
[2019-10-16 13:57:24 +0200] information/Checkable: Checkable 'testing_art' has 1 notification(s). Checking filters for type 'Problem', sends will be logged.
[2019-10-16 14:35:56 +0200] information/Checkable: Checkable 'testing_art' has 1 notification(s). Checking filters for type 'Recovery', sends will be logged.
[2019-10-16 08:14:40 +0200] information/Checkable: Checkable 'dev.xxx.yyy.ch!apt_sv' has 1 notification(s). Checking filters for type 'Problem', sends will be logged.
[2019-10-16 08:52:56 +0200] information/Checkable: Checkable 'dev.xxx.yyy.ch!apt_sv' has 1 notification(s). Checking filters for type 'Recovery', sends will be logged.
But no notification is sent…
My user-config:
Interestingly the DOWN-Events trigger no notification - only the UP-Events do:
Finally i noticed a missing “legacy-timeperiod” which might be related to the problem?!
icinga2 daemon looks good:
root@nuc2019:~# icinga2 daemon -C
[2019-10-16 20:58:24 +0200] information/cli: Icinga application loader (version: r2.11.0-1)
[2019-10-16 20:58:24 +0200] information/cli: Loading configuration file(s).
[2019-10-16 20:58:24 +0200] information/ConfigItem: Committing config item(s).
[2019-10-16 20:58:24 +0200] information/ApiListener: My API identity: dev.xxx.yyy
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 1 FileLogger.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 2 NotificationCommands.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 1 NotificationComponent.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 21 Notifications.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 1 IcingaApplication.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 2 HostGroups.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 9 Hosts.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 1 Comment.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 1 CheckerComponent.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 5 Zones.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 2 Endpoints.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 2 ApiUsers.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 1 UserGroup.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 1 ApiListener.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 237 CheckCommands.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 2 TimePeriods.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 2 Users.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 12 Services.
[2019-10-16 20:58:25 +0200] information/ConfigItem: Instantiated 1 ServiceGroup.
[2019-10-16 20:58:25 +0200] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
[2019-10-16 20:58:25 +0200] information/cli: Finished validating the configuration file(s).
does anyone got an idea?
Best Regards, stephan