support:nagios_installieren
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
support:nagios_installieren [2025/07/25 16:36] – admin | support:nagios_installieren [2025/08/07 04:35] (aktuell) – admin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | **<< | + | **<< |
====== Nagios installieren ====== | ====== Nagios installieren ====== | ||
Nagios ist ein Open-Source-Monitoringtool, | Nagios ist ein Open-Source-Monitoringtool, | ||
Zeile 156: | Zeile 156: | ||
#### Am Schluss testen, token wird verlangt | #### Am Schluss testen, token wird verlangt | ||
https:// | https:// | ||
+ | ==== NCPA Nagios Plugin installieren ==== | ||
+ | check_ncpa.py downloaden danach in das Plugin Verzeichnis kopieren. Danach Eintrag in Commands.cfg und Hostdatei.cfg \\ | ||
+ | ==== NCPA Nagios Plugin (check_ncpa.py) ==== | ||
+ | ###### Quelle: https:// | ||
+ | # | ||
+ | ###### downloaden danach in das plugin verzeichnis kopieren | ||
+ | https:// | ||
+ | / | ||
+ | ###### Eintrag in commands.cfg | ||
+ | #nano / | ||
+ | # | ||
+ | ###### In Datei hinzufügen | ||
+ | define command { | ||
+ | command_name | ||
+ | command_line | ||
+ | } | ||
+ | ###### In Datei hinzufügen ENDE | ||
+ | # | ||
+ | ##### Einträge in Hostdatei.cfg | ||
+ | ###### Hostname, IP Adresse und Icon überall ändern. | ||
+ | ###### datei Inhalt | ||
+ | define host { | ||
+ | host_name | ||
+ | address | ||
+ | check_command | ||
+ | max_check_attempts | ||
+ | check_interval | ||
+ | retry_interval | ||
+ | check_period | ||
+ | contacts | ||
+ | notification_interval | ||
+ | notification_period | ||
+ | notifications_enabled | ||
+ | icon_image | ||
+ | statusmap_image | ||
+ | register | ||
+ | } | ||
+ | | ||
+ | define service { | ||
+ | host_name | ||
+ | service_description | ||
+ | check_command | ||
+ | max_check_attempts | ||
+ | check_interval | ||
+ | retry_interval | ||
+ | check_period | ||
+ | notification_interval | ||
+ | notification_period | ||
+ | contacts | ||
+ | register | ||
+ | } | ||
+ | | ||
+ | define service { | ||
+ | host_name | ||
+ | service_description | ||
+ | check_command | ||
+ | max_check_attempts | ||
+ | check_interval | ||
+ | retry_interval | ||
+ | check_period | ||
+ | notification_interval | ||
+ | notification_period | ||
+ | contacts | ||
+ | register | ||
+ | } | ||
+ | | ||
+ | define service { | ||
+ | host_name | ||
+ | service_description | ||
+ | check_command | ||
+ | max_check_attempts | ||
+ | check_interval | ||
+ | retry_interval | ||
+ | check_period | ||
+ | notification_interval | ||
+ | notification_period | ||
+ | contacts | ||
+ | register | ||
+ | } | ||
+ | ###### datei Inhalt ENDE | ||
+ | # | ||
+ | ###### Dienst neu starten | ||
+ | #systemctl stop nagios.service | ||
+ | #systemctl start nagios.service | ||
support/nagios_installieren.1753454219.txt.gz · Zuletzt geändert: von admin