diff --git a/README.md b/README.md index 94801fe..5a10168 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,41 @@ sudo -u nagios ./service-by-telegram.sh -4 127.0.0.1 \ ``` ### Icinga2 objects +#### Example host objects +
+ Example host template + +```ini +template Host "Generic Host Template" { + check_command = "hostalive" + max_check_attempts = "3" + check_interval = 1m + retry_interval = 1m + check_timeout = 30s + enable_notifications = true + enable_active_checks = true + enable_passive_checks = true + enable_event_handler = true + enable_flapping = true + enable_perfdata = true + volatile = false + vars.notification_type = "Telegram" +} +``` +
+ +
+ Example host object + +```ini +object Host "icinga2-master" { + import "Generic Host Template" + address = "127.0.0.1" +} + +``` +
+ #### Example user templates
Generic user template @@ -282,4 +317,9 @@ apply Notification "Service Alerts via @telegram_bot" to Service { #### Example Director screenshot +
+ Notifications by Telegram via Icinga Director + ![Icinga Director Config](img/Telegram_Notification_in_Icinga_Director.jpg) +
+