Configuration machine windows sous nagios(EON

Résolu/Fermé
jemna - 21 mars 2012 à 09:39
aalex57
Messages postés
91
Date d'inscription
dimanche 2 mars 2008
Statut
Membre
Dernière intervention
23 mars 2012
- 21 mars 2012 à 17:08
Bonjour,
j'ai définit un nouveau host dans host.cfg

define host{

use windows-server ; Inherit default values from a Windows server template

host_name PC-xxxxx

alias My Windows Server

address 192.168.4.143

}
puis j'ai définit les services que je veux l'afficher dans services.cfg

define service{

use generic-service

host_name PC-xxxxx

service_description NSClient++ Version

check_command check_nt!CLIENTVERSION

}


# service definition to monitor the uptime of the Windows server.

define service{

use generic-service

host_name PC-xxxxx

service_description Uptime

check_command check_nt!UPTIME

}


# service definition to monitor the CPU utilization on the Windows server and generate a CRITICAL alert if the 5-minute CPU load is 90% or more or a WARNING alert if the 5-minute load is 80% or greater.

define service{

use generic-service

host_name PC-xxxxx

service_description CPU Load

check_command check_nt!CPULOAD!-l 5,80,90

}


#service definition to monitor memory usage on the Windows server and generate a CRITICAL alert if memory usage is 90% or more or a WARNING alert if memory usage is 80% or greater.

define service{

use generic-service

host_name PC-xxxxx

service_description Memory Usage

check_command check_nt!MEMUSE!-w 80 -c 90

}


#service definition to monitor usage of the C:\ drive on the Windows server and generate a CRITICAL alert if disk usage is 90% or more or a WARNING alert if disk usage is 80% or greater.

define service{

use generic-service

host_name PC-xxxxx

service_description C:\ Drive Space

check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90

}


# service definition to monitor the W3SVC service state on the Windows machine and generate a CRITICAL alert if the service is stopped.

define service{

use generic-service

host_name PC-xxxxx

service_description W3SVC

check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC

}


# service definition to monitor the Explorer.exe process on the Windows machine and generate a CRITICAL alert if the process is not running.

define service{

use generic-service

host_name PC-xxxxx

service_description Explorer

check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe

}


et j'ai ajouter la commande check_nt dans command.cfg
define command{

command_name check_nt

command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s emna -v $ARG1$ $ARG2$

}



mais quand je vais sur interface nagios view status détails for all Hosts ma machine windows (192.168.4.143) ne trouve pas seulement localhost est affiché (existe)
comment faire pour que cette configuration soit realisable et la nouvelle machine sera affichée sur l'interface de nagios




1 réponse

aalex57
Messages postés
91
Date d'inscription
dimanche 2 mars 2008
Statut
Membre
Dernière intervention
23 mars 2012
25
21 mars 2012 à 17:08
Tu auras certainement plus d'aide sur le forum officiel : http://forum.eyesofnetwork.com/
0