nagiosnotificationunipager
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| nagiosnotificationunipager [2018/04/05 15:00] – angelegt dh3wr | nagiosnotificationunipager [2018/04/05 15:15] (aktuell) – [Installation] dh3wr | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Notification to Pager from Nagios via Unipager | + | ====== Notification to Pager from Nagios via UniPager |
| - | FIXME | + | |
| + | There is a possibility to send notification to a pager via the DAPNET-Core. Look [[nagiosnotification|here]]. However, if in case of a failure the DAPNET-Core is not reachable, you may want to send a paging call directly via your unipager. | ||
| + | |||
| + | FIXME UNTESTED | ||
| + | |||
| + | ===== Installation ===== | ||
| + | Get the python script from [[https:// | ||
| + | |||
| + | ===== Define commands to send paging calls ===== | ||
| + | Edit '' | ||
| + | < | ||
| + | # ' | ||
| + | define command{ | ||
| + | command_name | ||
| + | command_line | ||
| + | } | ||
| + | |||
| + | # ' | ||
| + | define command{ | ||
| + | command_name | ||
| + | command_line | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Define UniPager hostname and password ===== | ||
| + | As you see, there are macros '' | ||
| + | < | ||
| + | $USER13$=unipager.yourdomain.com | ||
| + | $USER14$=VERYSCECRETPASSWORD | ||
| + | </ | ||
| + | |||
| + | ===== Setup contacts ===== | ||
| + | Edit '' | ||
| + | < | ||
| + | define contact{ | ||
| + | contact_name | ||
| + | alias Ralf Wilke | ||
| + | service_notifications_enabled | ||
| + | host_notifications_enabled | ||
| + | service_notification_period | ||
| + | host_notification_period | ||
| + | service_notification_options | ||
| + | host_notification_options | ||
| + | service_notification_commands | ||
| + | host_notification_commands | ||
| + | email | ||
| + | pager dh3wr | ||
| + | address1 | ||
| + | address2 | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | The '' | ||
| + | |||
| + | ===== Assign the contact to the host or service ===== | ||
| + | Either use the template or define at each host and service the contacts you want to notify. | ||
| + | < | ||
| + | define host{ | ||
| + | name generic-host-rwthafu | ||
| + | notifications_enabled | ||
| + | event_handler_enabled | ||
| + | flap_detection_enabled | ||
| + | failure_prediction_enabled | ||
| + | process_perf_data | ||
| + | retain_status_information | ||
| + | retain_nonstatus_information | ||
| + | check_command | ||
| + | max_check_attempts | ||
| + | notification_interval | ||
| + | notification_period | ||
| + | notification_options | ||
| + | contacts | ||
| + | register | ||
| + | } | ||
| + | </ | ||
nagiosnotificationunipager.1522940452.txt.gz · Zuletzt geändert: 2018/04/05 15:00 von dh3wr