Nagios: Unterschied zwischen den Versionen

Aus MeinWiki
Wechseln zu: Navigation, Suche
(WMI Überwachung Windows 2008)
Zeile 1: Zeile 1:
  
== WMI Überwachung Windows 2008 ==
+
=== WMI Überwachung Windows 2008 ===
 
*Nagiosuser zu Gruppen hinzufügen.
 
*Nagiosuser zu Gruppen hinzufügen.
 
**Distributed COM Users
 
**Distributed COM Users

Version vom 7. August 2015, 08:27 Uhr

WMI Überwachung Windows 2008

  • Nagiosuser zu Gruppen hinzufügen.
    • Distributed COM Users
    • Performance Monitor Users
  • WMI Security-Einstellungen anpassen
    • ROOT\CIMY2  (Nagioscheck, Execute Methods, Enable Account Remote Enable)
  • Windows Sicherheitseinstellung über die Konsole anpassen.
    sc sdshow SCMANAGER
    sc sdset SCMANAGER D:(A;;CCLCRPRC;;;AU)(A;;CCLCRPRC;;;IU)(A;;CCLCRPRC;;;SU)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)

Quelle: [1]

Linux Nagios NRPE Implementierung (Daemon)

  • Softwarepaket zlib-devel… installieren
  • Softwarepaket libopenssl-devel…. installieren
  • Softwarepaket nagios-plugin-1.4.15 installieren
Group icinga hinzufügen ID 5006
User icinga mit der ID 5005 (-u)   (-g 5006) anlegen / kein Password setzen
Verzeichnis /usr/local/icinga erstellen und Berechtigung setzen
Configure –with-nagios-user=icinga –with-nagios-group=icinga
Make
Make install
  • Softwarepaket nrpe
Configure
Make
Make install
Make install-daemon install-daemon-config
Copy init-script.debian /etc/init.d/nrpe /chmod 755 
Configuration austauschen / Server berechtigen
  • Zugriff überprüfen /usr/local/icings/libexec/check_nrpe –H
  1. The following examples use hardcoded command arguments...
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
#command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
command[check_sda1]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -M /
command[check_sdc1]=/usr/local/nagios/libexec/check_disk -w 5% -c 2% -M /opt/oracle
command[check_sdd1]=/usr/local/nagios/libexec/check_disk -w 20% -c 15% -M /opt/oracle/redolog
command[check_sde1]=/usr/local/nagios/libexec/check_disk -w 10% -c 5% -M /backup
command[check_sdf1]=/usr/local/nagios/libexec/check_disk -w 10% -c 5% -M /opt/oracle/oradata01
command[check_sdg1]=/usr/local/nagios/libexec/check_disk -w 10% -c 5% -M /opt/oracle/oradata02
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 50% -c 20%
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[check_icmp_gateway]=/usr/local/nagios/libexec/check_icmp -H 172.18.30.1 -w 40.0,10% -c 100.0,40% -p 2
command[check_icmp_virtualip]=/usr/local/nagios/libexec/check_icmp -H smuc-dbvp.paricorp.net -w 40.0,10% -c 100.0,40% -p 2