tachtler:icinga2_-_classic_ui
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tachtler:icinga2_-_classic_ui [2015/12/12 10:02] – klaus | tachtler:icinga2_-_classic_ui [2018/10/20 19:49] (aktuell) – [/etc/icinga/cgi.cfg] klaus | ||
---|---|---|---|
Zeile 2097: | Zeile 2097: | ||
ServerPath / | ServerPath / | ||
| | ||
- | ScriptAlias /cgi-bin "/ | + | ScriptAlias |
+ | Alias /icinga "/ | ||
DocumentRoot "/ | DocumentRoot "/ | ||
Zeile 2134: | Zeile 2135: | ||
</ | </ | ||
</ | </ | ||
- | |||
- | DirectoryIndex index.php | ||
ErrorLog logs/ | ErrorLog logs/ | ||
Zeile 2160: | Zeile 2159: | ||
aktiviert werden. | aktiviert werden. | ||
- | Dies kann durch ausführen des nachfolgenden Befehls durchgeführte werden (**falls dies nicht schon durch die Installation durchgeführt wurde!**): | + | Dies kann durch ausführen des nachfolgenden Befehls durchgeführte werden (**falls dies nicht durch die Installation durchgeführt wurde**): |
< | < | ||
# icinga2 feature enable command statusdata compatlog | # icinga2 feature enable command statusdata compatlog | ||
Zeile 2172: | Zeile 2171: | ||
</ | </ | ||
- | ==== / | + | ==== / |
+ | |||
+ | Nachfolgende Konfigurationsdatei | ||
+ | * ''/ | ||
+ | beinhaltete alle Konfigurationsdirektiven für [[https:// | ||
+ | |||
+ | Nachfolgende die **komplette Konfigurationsdatei**: | ||
+ | <code bash> | ||
+ | # Icinga 2 Classic UI configuration | ||
+ | # | ||
+ | # requires icinga-gui package | ||
+ | # check http:// | ||
+ | standalone_installation=1 | ||
+ | physical_html_path=/ | ||
+ | url_html_path=/ | ||
+ | url_stylesheets_path=/ | ||
+ | http_charset=utf-8 | ||
+ | refresh_rate=30 | ||
+ | refresh_type=1 | ||
+ | # Tachtler | ||
+ | # default: escape_html_tags=1 | ||
+ | escape_html_tags=0 | ||
+ | # Tachtler | ||
+ | # default: result_limit=50 | ||
+ | result_limit=0 | ||
+ | show_tac_header=1 | ||
+ | use_pending_states=1 | ||
+ | first_day_of_week=0 | ||
+ | suppress_maintenance_downtime=0 | ||
+ | action_url_target=main | ||
+ | notes_url_target=main | ||
+ | use_authentication=1 | ||
+ | use_ssl_authentication=0 | ||
+ | lowercase_user_name=0 | ||
+ | # Tachtler | ||
+ | # default: authorized_for_system_information=icingaadmin | ||
+ | authorized_for_system_information=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_configuration_information=icingaadmin | ||
+ | authorized_for_configuration_information=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_full_command_resolution=icingaadmin | ||
+ | authorized_for_full_command_resolution=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_system_commands=icingaadmin | ||
+ | authorized_for_system_commands=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_all_services=icingaadmin | ||
+ | authorized_for_all_services=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_all_hosts=icingaadmin | ||
+ | authorized_for_all_hosts=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_all_service_commands=icingaadmin | ||
+ | authorized_for_all_service_commands=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_all_host_commands=icingaadmin | ||
+ | authorized_for_all_host_commands=klaus | ||
+ | show_all_services_host_is_authorized_for=1 | ||
+ | show_partial_hostgroups=0 | ||
+ | show_partial_servicegroups=0 | ||
+ | default_statusmap_layout=5 | ||
+ | status_show_long_plugin_output=0 | ||
+ | display_status_totals=0 | ||
+ | highlight_table_rows=1 | ||
+ | add_notif_num_hard=28 | ||
+ | add_notif_num_soft=0 | ||
+ | use_logging=0 | ||
+ | cgi_log_file=/ | ||
+ | cgi_log_rotation_method=d | ||
+ | cgi_log_archive_path=/ | ||
+ | enforce_comments_on_actions=0 | ||
+ | send_ack_notifications=1 | ||
+ | persistent_ack_comments=0 | ||
+ | lock_author_names=1 | ||
+ | default_downtime_duration=7200 | ||
+ | set_expire_ack_by_default=0 | ||
+ | default_expiring_acknowledgement_duration=86400 | ||
+ | default_expiring_disabled_notifications_duration=86400 | ||
+ | tac_show_only_hard_state=0 | ||
+ | show_tac_header_pending=1 | ||
+ | exclude_customvar_name=PASSWORD, | ||
+ | exclude_customvar_value=secret | ||
+ | extinfo_show_child_hosts=0 | ||
+ | tab_friendly_titles=1 | ||
+ | ###################################### | ||
+ | # STANDALONE (ICINGA 2) OPTIONS | ||
+ | # requires standalone_installation=1 | ||
+ | ###################################### | ||
+ | # Tachtler - ab icinga2 2.10.1 | ||
+ | # default: object_cache_file=/ | ||
+ | object_cache_file=/ | ||
+ | status_file=/ | ||
+ | resource_file=/ | ||
+ | command_file=/ | ||
+ | check_external_commands=1 | ||
+ | interval_length=60 | ||
+ | status_update_interval=10 | ||
+ | log_file=/ | ||
+ | log_rotation_method=h | ||
+ | log_archive_path=/ | ||
+ | # Tachtler | ||
+ | # default: date_format=us | ||
+ | date_format=iso8601 | ||
+ | # EOF | ||
+ | </ | ||
+ | |||
+ | **__Erklärung zu den vorhergehenden Anpassungen__**: | ||
+ | |||
+ | * <code bash> | ||
+ | |||
+ | Interpretation von Links in der Anziege des Web-Interfaces als Text, oder tatsächliche Links. (0 = als Link interpretieren, | ||
+ | |||
+ | * <code bash> | ||
+ | |||
+ | Limit für die Anzeige von Elementen der Status-Seite des Web-Interfaces. (0 = unlimitiert, | ||
+ | |||
+ | * <code bash># Tachtler | ||
+ | # default: authorized_for_system_information=icingaadmin | ||
+ | authorized_for_system_information=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_configuration_information=icingaadmin | ||
+ | authorized_for_configuration_information=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_full_command_resolution=icingaadmin | ||
+ | authorized_for_full_command_resolution=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_system_commands=icingaadmin | ||
+ | authorized_for_system_commands=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_all_services=icingaadmin | ||
+ | authorized_for_all_services=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_all_hosts=icingaadmin | ||
+ | authorized_for_all_hosts=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_all_service_commands=icingaadmin | ||
+ | authorized_for_all_service_commands=klaus | ||
+ | # Tachtler | ||
+ | # default: authorized_for_all_host_commands=icingaadmin | ||
+ | authorized_for_all_host_commands=klaus</ | ||
+ | |||
+ | Änderung des Benutzers zur Authentifizierung an [[https:// | ||
+ | |||
+ | :!: **HIWNEIS** - **Vorausgehend bei der Konfiguration des VHOST wurde die Authentifizierung gegen __LDAP__ eingeführt!** | ||
+ | |||
+ | * <code bash># Tachtler - ab icinga2 2.10.1 | ||
+ | # default: object_cache_file=/ | ||
+ | object_cache_file=/ | ||
+ | |||
+ | **Ab [[https:// | ||
+ | |||
+ | * <code bash> | ||
+ | |||
+ | Einstellung des Formats für das Datums für die LOG-Dateien. | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | Nachfolgende Konfigurationsdatei | ||
+ | * ''/ | ||
+ | beinhaltete alle Ressourcen-Konfigurationsdirektiven für [[https:// | ||
+ | |||
+ | :!: **HINWEIS** - **Die Konfigurationsdatei besteht __grundsätzlich nicht__, deshalb kann diese mit nachfolgendem Befehl wie folgt angelegt werden:** | ||
+ | < | ||
+ | # touch / | ||
+ | </ | ||
+ | |||
+ | Nachfolgende die **komplette Konfigurationsdatei**: | ||
+ | <code bash> | ||
+ | # Sets $USER1$ to be the path to the plugins | ||
+ | $USER1$=/ | ||
+ | |||
+ | # Sets $USER2$ to be the path to event handlers | ||
+ | # | ||
+ | |||
+ | # Store some usernames and passwords (hidden from the CGIs) | ||
+ | # | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | In nachfolgendem Verzeichnis | ||
+ | * ''/ | ||
+ | müssen die darin enthaltenen Dateien durch den Benutzer des [[http:// | ||
+ | |||
+ | Nachfolgender Befehl fügt den Benutzer **'' | ||
+ | < | ||
+ | # usermod -a -G icinga apache | ||
+ | </ | ||
+ | |||
+ | Anschließend ist der Benutzer **'' | ||
+ | |||
+ | :!: **HINWEIS** - Nachfolgender Fehler im der LOG-Datei der [[https:// | ||
+ | * ''/ | ||
+ | sollte somit **__nicht__ mehr auftreten**: | ||
+ | < | ||
+ | ... | ||
+ | [1506061398] Error: Cannot open config file '/ | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | ===== icinga2: Neustart ===== | ||
+ | |||
+ | Danach kann der **icinga2**-Server mit nachfolgendem Befehle **neu** gestartet werden: | ||
+ | < | ||
+ | # systemctl restart icinga2 | ||
+ | </ | ||
+ | |||
+ | Mit nachfolgendem Befehl kann der Status des [[https:// | ||
+ | < | ||
+ | # systemctl status icinga2 | ||
+ | icinga2.service - Icinga host/ | ||
+ | | ||
+ | | ||
+ | Process: 6107 ExecReload=/ | ||
+ | Process: 23817 ExecStart=/ | ||
+ | Process: 23724 ExecStartPre=/ | ||
+ | status=0/ | ||
+ | Main PID: 23858 (icinga2) | ||
+ | | ||
+ | | ||
+ | |||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net icinga2[23817]: | ||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net icinga2[23817]: | ||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net icinga2[23817]: | ||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net icinga2[23817]: | ||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net icinga2[23817]: | ||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net icinga2[23817]: | ||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net icinga2[23817]: | ||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net icinga2[23817]: | ||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net icinga2[23817]: | ||
+ | Dec 12 10:19:03 server11.idmz.tachtler.net systemd[1]: Started Icinga host/ | ||
+ | Hint: Some lines were ellipsized, use -l to show in full. | ||
+ | </ | ||
+ | |||
+ | Nachfolgende LOG-Dateien sollten Auskunft darüber geben, wie der Start und der Status des [[https:// | ||
+ | * ''/ | ||
+ | * ''/ | ||
+ | |||
+ | Der Inhalt der LOG-Datei ''/ | ||
+ | < | ||
+ | [2015-12-12 10:19:02 +0100] information/ | ||
+ | [2015-12-12 10:19:02 +0100] information/ | ||
+ | [2015-12-12 10:19:02 +0100] information/ | ||
+ | [2015-12-12 10:19:03 +0100] information/ | ||
+ | [2015-12-12 10:19:03 +0100] information/ | ||
+ | [2015-12-12 10:19:03 +0100] information/ | ||
+ | ' | ||
+ | [2015-12-12 10:19:03 +0100] information/ | ||
+ | attributes.conf | ||
+ | [2015-12-12 10:19:03 +0100] information/ | ||
+ | [2015-12-12 10:19:03 +0100] information/ | ||
+ | ' | ||
+ | [2015-12-12 10:19:03 +0100] information/ | ||
+ | [2015-12-12 10:19:03 +0100] information/ | ||
+ | ' | ||
+ | [2015-12-12 10:19:03 +0100] information/ | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | Die LOG-Datei ''/ | ||
+ | |||
+ | ===== icinga2-classicui ===== | ||
+ | |||
+ | Durch Eingabe der entsprechenden URL sollte nachfolgender Bildschirm in Browser erscheinen: | ||
- | FIXME | + | {{: |
tachtler/icinga2_-_classic_ui.1449910948.txt.gz · Zuletzt geändert: 2015/12/12 10:02 von klaus