icinga2: Fix missing enable_notifications, display_name

Change if-then-else logic too, and some proper formatting.

fixes #2795
fixes #2797