Überwachung eines Windows 2003 Terminalserver


NSClient++ Installieren

  • http://www.nsclient.org/nscp/downloads
  • NSC.ini bearbeiten:

Im Abschnitt [modules] die .dlls freischalten.

[Settings] allowed_hosts=IP Icinga Server

[NRPE]

port=5666
allow_arguments=1
allow_nasty_meta_chars=1
allowed_hosts=IP Icinga Server

Speichern und den NSClient++ Dienst neustarten

 

Auf dem Icinga Server:

windows.cfg

define host{
use windows-server;
host_name Win2003;
alias Win2003;
address 192.168.3.20;
}

define service{
use generic-service
host_name Win2003
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}

define service{
use  generic-service
host_name Win2003
service_description Uptime
check_command check_nt!UPTIME
}

define service{
use   generic-service
host_name Win2003
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}

define service{
use   generic-service
host_name Win2003
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}

define service{
use   generic-service
host_name Win2003
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 90 -c 95
}

define service{
use   generic-service
host_name Win2003
service_description RDP
check_command check_tcp!3389
}

define service{
use   generic-service
host_name Win2003
service_description Aktive Terminalsitzungen
check_command check_perfcounter!5666!Max!10!14!“\\Terminaldienste\\Aktive Sitzungen“
}

define service{
use   generic-service
host_name Win2003
service_description Inaktive Terminalsitzungen
check_command check_perfcounter!5666!Max!10!14!“\\Terminaldienste\\Inaktive Sitzungen“
}

define service{
use   generic-service
host_name Win2003
service_description LDAP
check_command check_ldap!DC=firma,DC=de!CN=USERNAME,CN=Users,DC=firma,DC=de!PASSWORT
}

 

commands.cfg

define command{
command_name check_perfcounter
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p $ARG1$ -c CheckCounter -a $ARG5$ $ARG2$Warn=$ARG3$ $ARG2$Crit=$ARG4$ ShowAll
}

/etc/init.d/icinga reload

Flattr this!