Nagios: Unterschied zwischen den Versionen

Aus MeinWiki
Wechseln zu: Navigation, Suche
(Linux Nagios NRPE Implementierung (Daemon))
(Linux Nagios NRPE Implementierung (Daemon))
Zeile 22: Zeile 22:
 
  User nagios mit der ID 5003 (-u)(-g 5004) anlegen / kein Password setzen
 
  User nagios mit der ID 5003 (-u)(-g 5004) anlegen / kein Password setzen
 
  Verzeichnis /usr/local/nagios erstellen und Berechtigung setzen
 
  Verzeichnis /usr/local/nagios erstellen und Berechtigung setzen
  Configure –with-nagios-user=nagios –with-nagios-group=nagios
+
  configure –with-nagios-user=nagios –with-nagios-group=nagios
  Make
+
  make
  Make install
+
  make install
 
*Softwarepaket nrpe
 
*Softwarepaket nrpe
  Configure
+
  configure
  Make
+
  make
  Make install
+
  make install
  Make install-daemon install-daemon-config
+
  make install-daemon install-daemon-config
  Copy init-script.debian /etc/init.d/nrpe /chmod 755  
+
  copy init-script.debian /etc/init.d/nrpe /chmod 755  
 
  Configuration austauschen / Server berechtigen
 
  Configuration austauschen / Server berechtigen
 
*Zugriff überprüfen /usr/local/icings/libexec/check_nrpe –H
 
*Zugriff überprüfen /usr/local/icings/libexec/check_nrpe –H

Version vom 7. August 2015, 12:49 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 nagios hinzufügen ID 5004
User nagios mit der ID 5003 (-u)(-g 5004) anlegen / kein Password setzen
Verzeichnis /usr/local/nagios erstellen und Berechtigung setzen
configure –with-nagios-user=nagios –with-nagios-group=nagios
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