1-Monitorer Exchange 2010 avec Nagios3.2.0 sur Debian 6 ( Squeeze ) grace a nsclient ++ et les commandes check_nt
2-Avoir installé NSclient++ sur le serveur Exchange a superviser:
64bits:
http://files.nsclient.org/x-0.3.x/NSClient%2B%2B-0.3.9-x64.msi
32bits:
http://files.nsclient.org/x-0.3.x_STABLE/NSClient++-0.3.1-Win32.msi
2- Créeer le fichier suivant dans /usr/local/nagios/etc
[notice]ExchangeCommands.cfg[/notice]
Tiré du site:
http://nagioswiki.com/wiki/index.php/Nagios_Checks_for_Exchange_Server_200x
3-Rajouter dans le fichier suivant /usr/local/nagios/etc/nagios.cfg les lignes ci-dessous:
[notice]#Fichier config pour monitorer exchange
cfg_file=/usr/local/nagios/etc/ExchangeCommands.cfg[/notice]
4- Ajouter dans le fichier de configuration du host /usr/local/nagios/etc/objects/windows.cfg la/les ligne(s) désirées a monitorer.
Ci-dessous un exemple des messages soumis:
exemple:
[notice]
define service{
use generic-service
host_name MAIL01
service_description EXCHANGE: Total des messages soumis
check_command exc-msg-sub
}
[/notice]