Supervision Exchange Server 2016 avec Centreon

Hello, dans ce chapitre, nous allons voir comment mettre en place la supervision d’un serveur Exchange avec Centreon et ses plugins Centreon Plugin Packs. Nous verrons dans un autre article la supervision de l’application Exchange. Ici, nous allons superviser uniquement le serveur hébergeant Exchange…

Ce qu’il vous faut :

Ressources :

Supervision Exchange (CLI)

Voici comment je procède. Je teste d’abord en ligne de commande depuis le serveur Centreon, puis je passe à l’interface graphique Centreon pour créer la commande. Nous allons utiliser exclusivement les plugins Centreon.

Rappel :

[root@pixelabs plugins]# cd /usr/lib/centreon/plugins

Recherche de plugin :

[root@pixelabs plugins]# ./centreon_plugins.pl --list-plugin | grep -i windows | grep 'PLUGIN'

Afficher de l’aide :

[root@pixelabs plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --help

Afficher la liste des modes disponibles :

[root@pixelabs plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --list-mode

Check-ICMP

Création de commande Check-ICMP (ping). Cette commande est nécessaire lors de la création d’un hôte Windows/Linux…etc.

C’est expliqué en détail ici (Plugin Nagios) : #Commande_Check-CPU

Check-CPU

En ligne de commande :

[root@pixelabs plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=cpu --snmp-community=pixelabs --snmp-version=2c --hostname=172.16.1.2 --warning-average=80 --critical-average=90
----
OK: 2 CPU(s) average usage is: 13.00% | 'cpu0'=5.00%;;;0;100 'cpu1'=21.00%;;;0;100 'total_cpu_avg'=13.00%;0:80;0:90;0;100

Depuis l’interface graphique Centreon, nous allons utiliser les macros personnalisées. Vous devez avoir les mêmes macros que moi, tout est expliqué ici#Macros_personnalisees

Allez dans : Configuration > Commandes >Ajouter

  • Nom de commande : Check-CPU
  • Type de commande : Par défaut, Vérification
  • Ligne de commande : Copier/coller la commande
$USER2$/centreon_plugins.pl --plugin=$_SERVICEPLUGIN$ --mode=$_SERVICEMODE$ --hostname=$HOSTADDRESS$ --snmp-community=$_HOSTSNMPCOMMUNITY$ --snmp-version=$_HOSTSNMPVERSION$ --warning-average=$_SERVICEWARNING$ --critical-average=$_SERVICECRITICAL$

Remarque : $USER2$ = Chemin vers les plugins CENTREON (/usr/lib/centreon/plugins) et non Nagios ($USER1$ = /usr/lib/nagios/plugins) 

  • Cliquez sur décrire les macros et donnez un nom à vos macros, vous pouvez mettre un exemple de commande.
    • PLUGIN : Ex : os::windows::snmp::plugin ou simplement Plugin
    • MODE : Ex: CPU
    • WARNING : Ex : 80
    • CRITICAL : Ex : 90
    • SNMPCOMMUNITY : Ex : public, private, pixelabs
    • SNMPVERSION : Ex : 1,2c,3

Check-CPU Exchange Server 2016

Attention : il faut mettre : --warning-average=$_SERVICEWARNING$ --critical-average=$_SERVICECRITICAL$

  • Sélectionnez CPU pour le modèle graphique.
  • Sauvegarder

Remarque : Vous pouvez également mettre les paramètres directement dans la commande. Exemple : --snmp-community=public --snmp-version=2

Check-Memory

En ligne de commande :

[root@pixelabs plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=memory --snmp-community=pixelabs --snmp-version=2c --hostname=172.16.1.2 --warning-memory=80 --critical-memory=90
OK: RAM Total: 10.00GB Used: 5.90GB (59.05%) Free: 4.10GB (40.95%) | 'used'=6339624960B;0:8589515161;0:9663204556;0;10736893952
[root@pixelabs plugins]#

Depuis l’interface web : Configuration > Commandes > Ajouter

  • Nom de commande : Check-Memory
  • Type de commande : Par défaut, Vérification
  • Ligne de commande : Copier/coller la commande.
$USER2$/centreon_plugins.pl --plugin=$_SERVICEPLUGIN$ --mode=$_SERVICEMODE$ --hostname=$HOSTADDRESS$ --snmp-community=$_HOSTSNMPCOMMUNITY$ --snmp-version=$_HOSTSNMPVERSION$ --warning-memory=$_SERVICEWARNING$ --critical-memory=$_SERVICECRITICAL$
  • Décrire les macros 
  • Modèle graphique : Memory
  • Sauvegarder

Check-Disk

Il y a plusieurs disques à superviser : Disque C: et les disques cible ISCSI pour les bases de données Exchange.

Monitoring Disk iSCSI Exchange Server 2016

En ligne de commande : Check-Disk-C:

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=storage --snmp-community=pixelabs --snmp-version=2c --hostname=172.16.1.2 --warning-usage=80 --critical-usage=90 --storage=1
CRITICAL: Storage 'C:\ Label: Serial Number 74b305da' Usage Total: 49.51 GB Used: 45.42 GB (91.74%) Free: 4.09 GB (8.26%) | 'used'=48767512576B;0:42528561561;0:47844631756;0;53160701952
[root@pixelabs plugins]#

En ligne de commande : Check-Disk-E:  (BDD1)

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=storage --snmp-community=pixelabs --snmp-version=2c --hostname=172.16.1.2 --warning-usage=80 --critical-usage=90 --storage=3
OK: Storage 'E:\ Label:BDD1  Serial Number 1031614a' Usage Total: 2.00 GB Used: 289.04 MB (14.13%) Free: 1.71 GB (85.87%) | 'used'=303083520B;0:1715467059;0:1929900441;0;2144333824
[root@pixelabs plugins]#

En ligne de commande : Check-Disk-F (BDD1)

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=storage --snmp-community=pixelabs --snmp-version=2c --hostname=172.16.1.2 --warning-usage=80 --critical-usage=90 --storage=4
OK: Storage 'F:\ Label:BDD2  Serial Number 4244db67' Usage Total: 2.00 GB Used: 288.87 MB (14.13%) Free: 1.71 GB (85.87%) | 'used'=302899200B;0:1715467059;0:1929900441;0;2144333824
[root@pixelabs plugins]#

En ligne de commande : Check-Disk-L: (LOGS)

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=storage --snmp-community=pixelabs --snmp-version=2c --hostname=172.16.1.2 --warning-usage=80 --critical-usage=90 --storage=5
OK: Storage 'L:\ Label:LOGS  Serial Number b2521d69' Usage Total: 1021.00 MB Used: 79.88 MB (7.82%) Free: 941.12 MB (92.18%) | 'used'=83755008B;0:856473600;0:963532800;0;1070592000
[root@pixelabs plugins]#

Depuis l’interface web : Configuration > Commandes > Ajouter

  • Nom de commande : Check-Disk-C:
  • Type de commande : Par défaut, Vérification
  • Ligne de commande : Copier/coller la commande.
$USER2$/centreon_plugins.pl --plugin=$_SERVICEPLUGIN$ --mode=$_SERVICEMODE$ --hostname=$HOSTADDRESS$ --snmp-community=$_HOSTSNMPCOMMUNITY$ --snmp-version=$_HOSTSNMPVERSION$ --warning-usage=$_SERVICEWARNING$ --critical-usage=$_SERVICECRITICAL$ --storage=$_SERVICEDISK$

Check Disk C Exchange Server 2016

  • Décrire les macros 
  • Modèle graphique : Storage
  • Sauvegarder
  • Répétez l’opération pour les autres disques. Le champ : ligne de commande ne change pas pour les 4 disques. Pour aller plus vite, il suffit de dupliquer la première commande (Check-Disk-C:) et de changer simplement le nom.
    • Check-Disk-E:
    • Check-Disk-F:
    • Check-Disk-L:

Remarque : Pour superviser tous les disques avec une seule commande, supprimez le paramètre --storage=$_SERVICEDISK$

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=storage --snmp-community=pixelabs --snmp-version=2c --hostname=172.16.1.2 --warning-usage=80 --critical-usage=90
WARNING: Storage 'C:\ Label:  Serial Number 74b305da' Usage Total: 49.51 GB Used: 40.45 GB (81.70%) Free: 9.06 GB (18.30%) | 'used_C:\ Label:  Serial Number 74b305da'=43434708992B;0:42528561561;0:47844631756;0;53160701952 'used_E:\ Label:BDD1  Serial Number 1031614a'=303083520B;0:1715467059;0:1929900441;0;2144333824 'used_F:\ Label:BDD2  Serial Number 4244db67'=302899200B;0:1715467059;0:1929900441;0;2144333824 'used_L:\ Label:LOGS  Serial Number b2521d69'=98439168B;0:856473600;0:963532800;0;1070592000
[root@pixelabs plugins]#

Check-Traffic

Identifier l’ID de l’interface :

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=list-interfaces --hostname=172.16.1.2 --snmp-community=pixelabs --snmp-version=2c --interface= --name --oid-display=ifDesc --filter-status=up

Résultat :

List interfaces:
'Software Loopback Interface 1' [speed = 1073, status = up, id = 1]
'Intel(R) PRO/1000 MT Desktop Adapter-QoS Packet Scheduler-0000' [speed = 1000, status = up, id = 10]
'Intel(R) PRO/1000 MT Desktop Adapter-WFP 802.3 MAC Layer LightWeight' [speed = 1000, status = up, id = 11]
'Microsoft Failover Cluster Virtual Adapter-WFP Native MAC Layer LightWeight' [speed = 10000, status = up, id = 12]
'Microsoft Failover Cluster Virtual Adapter-QoS Packet Scheduler-0000' [speed = 10000, status = up, id = 13]
'Microsoft Failover Cluster Virtual Adapter-WFP 802.3 MAC Layer LightWeight' [speed = 10000, status = up, id = 14]
----
'Intel(R) PRO/1000 MT Desktop Adapter' [speed = 1000, status = up, id = 2] // Vous pouvez vérifier le nom sur le serveur.
----
Skipping interface 'Microsoft Kernel Debug Network Adapter': no matching filter status
Skipping interface 'Teredo Tunneling Pseudo-Interface': no matching filter status
Skipping interface 'Microsoft ISATAP Adapter #3': no matching filter status
'Microsoft Failover Cluster Virtual Adapter' [speed = 10000, status = up, id = 6]
Skipping interface 'Microsoft ISATAP Adapter #2': no matching filter status
Skipping interface 'Microsoft ISATAP Adapter': no matching filter status
'Intel(R) PRO/1000 MT Desktop Adapter-WFP Native MAC Layer LightWeight Filter-0000' [speed = 1000, status = up, id = 9]
[root@centreon plugins]#

En ligne de commande en utilisant l’ID(id = 2) de l’interface :

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=interfaces --hostname=172.16.1.2 --snmp-community=pixelabs --snmp-version=2c --interface=2 --add-traffic --add-status --warning-out-traffic=80 --warning-in-traffic=80 --critical-out-traffic=90 --critical-in-traffic=90
OK: Interface 'ethernet_32768' Status : up (admin: up), Traffic In : 143.50Kb/s (0.01%), Traffic Out : 67.95Kb/s (0.01%) | 'traffic_in'=143500.50b/s;0:800000000;0:900000000;0;1000000000 'traffic_out'=67953.50b/s;0:800000000;0:900000000;0;1000000000
[root@pixelabs plugins]#

Il est possible d’utiliser le nom au lieu de l’ID, mais c’est trop long…

Depuis l’interface web : Configuration > Commandes > Ajouter

  • Nom de commande : Check-traffic
  • Type de commande : Par défaut, Vérification
  • Ligne de commande : Copier/coller la commande.
$USER2$/centreon_plugins.pl --plugin=$_SERVICEPLUGIN$ --hostname=$HOSTADDRESS$ --snmp-community=$_HOSTSNMPCOMMUNITY$ --snmp-version=$_HOSTSNMPVERSION$ --mode=$_SERVICEMODE$ --interface=$_SERVICEINTERFACE$ --warning-in-traffic=$_SERVICEWARNINGIN$ --warning-out-traffic=$_SERVICEWARNINGOUT$ --critical-in-traffic=$_SERVICECRITICALIN$ --critical-out-traffic=$_SERVICECRITICALOUT$ $_SERVICEOPTION$ $_SERVICEOPTION$

$_SERVICEOPTION$ va nous permettre de renseigner les paramètres suivant : --add-traffic --add-status

Check traffic Echange Server 2016

  • Décrire les macros 
  • Modèle graphique : Traffic
  • Sauvegarder

Check-Exchange-Services

En ligne de commande :

  • Microsoft Exchange IMAP4
  • Microsoft Exchange POP3
  • Gestion de DAG Microsoft Exchange
  • …etc.
[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=service --hostname=172.16.1.2 --snmp-community=pixelabs --snmp-version=2c --service="Microsoft Exchange IMAP4" --service="Microsoft Exchange POP3" --service="Microsoft Exchange EdgeSync" --service="Gestion de DAG Microsoft Exchange" --verbose
OK: All service states are ok |
Service 'Microsoft Exchange IMAP4' match (pattern: 'Microsoft Exchange IMAP4') [operating state = active, installed state = installed]
Service pattern 'Microsoft Exchange IMAP4': service list Microsoft Exchange IMAP4
Service 'Microsoft Exchange POP3' match (pattern: 'Microsoft Exchange POP3') [operating state = active, installed state = installed]
Service pattern 'Microsoft Exchange POP3': service list Microsoft Exchange POP3
Service 'Microsoft Exchange EdgeSync' match (pattern: 'Microsoft Exchange EdgeSync') [operating state = active, installed state = installed]
Service pattern 'Microsoft Exchange EdgeSync': service list Microsoft Exchange EdgeSync
Service 'Gestion de DAG Microsoft Exchange' match (pattern: 'Gestion de DAG Microsoft Exchange') [operating state = active, installed state = installed]
Service pattern 'Gestion de DAG Microsoft Exchange': service list Gestion de DAG Microsoft Exchange
[root@centreon plugins]#

Vous pouvez rajouter d’autres services Exchange directement dans la commande --service=NOM_SERVICE_WINDOWSou superviser chaque service Exchange à part. Exemple :

Nom de commande : Check-Service-IMAP4

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=service --hostname=172.16.1.2 --snmp-community=pixelabs --snmp-version=2c --service="Microsoft Exchange IMAP4" --verbose
OK: All service states are ok |
Service 'Microsoft Exchange IMAP4' match (pattern: 'Microsoft Exchange IMAP4') [operating state = active, installed state = installed]
Service pattern 'Microsoft Exchange IMAP4': service list Microsoft Exchange IMAP4
[root@centreon plugins]#

Nom de commande :  Check-Service-POP3

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=service --hostname=172.16.1.2 --snmp-community=pixelabs --snmp-version=2c --service="Microsoft Exchange POP3" --verbose
OK: All service states are ok |
Service 'Microsoft Exchange POP3' match (pattern: 'Microsoft Exchange POP3') [operating state = active, installed state = installed]
Service pattern 'Microsoft Exchange POP3': service list Microsoft Exchange POP3
[root@pixelabs plugins]#

Nom de commande : Check-Service-EdgeSync

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=service --hostname=172.16.1.2 --snmp-community=pixelabs --snmp-version=2c --service="Microsoft Exchange EdgeSync" --verbose
OK: All service states are ok |
Service 'Microsoft Exchange EdgeSync' match (pattern: 'Microsoft Exchange EdgeSync') [operating state = active, installed state = installed]
Service pattern 'Microsoft Exchange EdgeSync': service list Microsoft Exchange EdgeSync
[root@pixelabs plugins]#

Depuis l’interface web : Configuration > Commandes > Ajouter

  • Nom de commande : Check-EXCHServices
  • Type de commande : Par défaut, Vérification
  • Ligne de commande : Copier/coller la commande.
$USER2$/centreon_plugins.pl --plugin=$_SERVICEPLUGIN$ --mode=$_SERVICEMODE$ --hostname=$HOSTADDRESS$ --snmp-community=$_HOSTSNMPCOMMUNITY$ --snmp-version=$_HOSTSNMPVERSION$ --service=$_SERVICENAME$ $_SERVICEOPTION$

$_SERVICEOPTION$ va nous permettre de renseigner les paramètres suivant : --verbose

Check Exchange Service Status

  • Décrire les macros 
  • Sauvegarder

Check-Exchange-Process

En plus des services, vous pouvez aussi superviser les process directement.

Process Exchange Server 2016

En ligne de commande : Microsoft.Exchange.*

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=processcount --hostname=172.16.1.2 --snmp-community=pixelabs --snmp-version=2c --process-name=Microsoft.Exchange --memory --cpu --regexp-name --verbose
OK: Number of current processes running: 15 - Total memory usage: 2.11 GB - Average memory usage: 144.19 MB - Total CPU usage: 3.70 % | 'nbproc'=15;;;0; 'mem_total'=2l'=3.70%;;;0;
Process '5336' [memory: 163.57 MB] [cpu: 0.14 %] [status: running] [name: Microsoft.Exchange.RpcClientAccess.Service.exe]
Process '5612' [memory: 111.05 MB] [cpu: 0.00 %] [status: running] [name: Microsoft.Exchange.Pop3Service.exe]
Process '5368' [memory: 133.40 MB] [cpu: 0.02 %] [status: running] [name: Microsoft.Exchange.Store.Service.exe]
Process '5540' [memory: 177.75 MB] [cpu: 0.64 %] [status: running] [name: Microsoft.Exchange.Search.Service.exe]
Process '5384' [memory: 92.68 MB] [cpu: 0.66 %] [status: running] [name: Microsoft.Exchange.EdgeSyncSvc.exe]
Process '8720' [memory: 212.16 MB] [cpu: 0.39 %] [status: running] [name: Microsoft.Exchange.Store.Worker.exe]
Process '5440' [memory: 213.38 MB] [cpu: 0.14 %] [status: running] [name: Microsoft.Exchange.ServiceHost.exe]
Process '3756' [memory: 126.19 MB] [cpu: 0.07 %] [status: running] [name: Microsoft.Exchange.Directory.TopologyService.exe]
Process '8804' [memory: 202.04 MB] [cpu: 0.84 %] [status: running] [name: Microsoft.Exchange.Store.Worker.exe]
Process '10316' [memory: 203.68 MB] [cpu: 0.39 %] [status: running] [name: Microsoft.Exchange.Diagnostics.Service.exe]
Process '5320' [memory: 120.66 MB] [cpu: 0.20 %] [status: running] [name: Microsoft.Exchange.UM.CallRouter.exe]
Process '13548' [memory: 110.35 MB] [cpu: 0.00 %] [status: running] [name: Microsoft.Exchange.Imap4Service.exe]
Process '16112' [memory: 132.71 MB] [cpu: 0.20 %] [status: running] [name: Microsoft.Exchange.Imap4.exe]
Process '5352' [memory: 29.74 MB] [cpu: 0.00 %] [status: running] [name: Microsoft.Exchange.AntispamUpdateSvc.exe]
Process '7580' [memory: 133.52 MB] [cpu: 0.02 %] [status: running] [name: Microsoft.Exchange.Pop3.exe]
[root@centreon plugins]#

En ligne de commande : MSExchange.*

[root@centreon plugins]# ./centreon_plugins.pl --plugin=os::windows::snmp::plugin --mode=processcount --hostname=172.16.1.2 --snmp-community=pixelabs --snmp-version=2c --process-name=MSExchange --memory --cpu --regexp-name --verbose
OK: Number of current processes running: 13 - Total memory usage: 2.34 GB - Average memory usage: 184.51 MB - Total CPU usage: 0.00 % | 'nbproc'=13;;;0; 'mem_total'=2515177472B;;;0; 'mem_avg'=193475190.15B;;;0; 'cpu_total'=0.00%;;;0;
Process '2180' [memory: 216.08 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeHMHost.exe]
Process '5424' [memory: 99.06 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeThrottling.exe]
Process '5312' [memory: 99.82 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeTransportLogSearch.exe]
Process '5360' [memory: 166.12 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeDelivery.exe]
Process '5548' [memory: 172.29 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeSubmission.exe]
Process '452' [memory: 460.23 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeHMWorker.exe]
Process '5620' [memory: 187.83 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeMailboxReplication.exe]
Process '5432' [memory: 324.71 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeMailboxAssistants.exe]
Process '5532' [memory: 244.16 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeFrontendTransport.exe]
Process '8828' [memory: 100.78 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeTransport.exe]
Process '5344' [memory: 169.57 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeDagMgmt.exe]
Process '2188' [memory: 33.02 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeHMRecovery.exe]
Process '5416' [memory: 124.98 MB] [cpu: 0.00 %] [status: running] [name: MSExchangeCompliance.exe]
[root@centreon plugins]

A vous maintenant de superviser ce qui vous semble nécessaire.

  • IIS Worker
  • Transport Edge

Depuis l’interface web : Configuration > Commandes > Ajouter

  • Nom de commande : Check-MSExchange
  • Type de commande : Par défaut, Vérification
  • Ligne de commande : Copier/coller la commande.
$USER2$/centreon_plugins.pl --plugin=$_SERVICEPLUGIN$ --mode=$_SERVICEMODE$ --hostname=$HOSTADDRESS$ --snmp-community=$_HOSTSNMPCOMMUNITY$ --snmp-version=$_HOSTSNMPVERSION$ --process-name=$_SERVICEPROCESS$ $_SERVICEOPTION$

$_SERVICEOPTION$ va nous permettre de renseigner les paramètres suivant : --memory --cpu --process- --regexp-name --verbose

Check MSExchange Process Running

  • Décrire les macros 
  • Sauvegarder

Exchange Server 2016 Monitoring Commands

Supervision Exchange (Centreon-web)

Ensuite, nous allons créer l’hôte que l’on veut superviser. Ici, le serveur Exchange EX-SERVER1 – 172.16.1.2/16

Allez dans Configuration > Hôtes > Ajouter

  • Nom : EX-SERVER1
  • Alias : Exchange Server 2016
  • Adresse IP / DNS : 172.16.1.2
  • Communauté SNMP & Version : pixelabs & 2c
  • Surveillé depuis le collecteur : Central
  • Fuseau horraire / Localisation : Europe/Paris
  • Modèles : Rien
  • Commande de vérification : Check-ICMP
    • Cliquez sur la flèche bleu pour appliquer les arguments.
  • Période de contrôle
    • 24×7 = La supervision est actif 7/7, 24h/24h
    • Workhours : du lundi au vendredi de 9h-17h. Vous pouvez modifier les horaires depuis : Configuration > Utilisateurs > Périodes temporelles > workhours
    • Remarque : Pour le trafic réseau (Check-Traffic) je vous conseille de laisser 24×7. Si vous remarquez une hausse soudaine du trafic le weekend, il faut revoir la sécurité de votre infrastructure.
  • Sauvegarder (je n’ai rien modifié dans les autres onglets)
  • Répétez l’opération et ajouter les autres serveurs Exchange. J’ai ajouté EX-DAG (pensez à dupliquer un hôte et le renommer)

Check-CPU

Passons maintenant à la création des services. Allez dans Configuration > Services > Ajouter

  •  Description : Check-CPU
  • Lié aux hôtes : EX-SERVER1
  • Commande de vérification : Check-CPU
    • PLUGIN : os::windows::snmp::plugin
    • MODE : cpu
    • WARNING : 80
    • CRITICAL : 90
  • Période de contrôle : workours

Check CPU Exchange Centreon

  • Onglet Information complémentaires
    • Modèle graphique : CPU
  • Sauvegarder

Check-Disk:C

Check-Disk:E

Check-Disk:F

Check-Disk:L

Allez dans Configuration > Services > Ajouter

  •  Description : Check-Disk:C
  • Lié aux hôtes : EX-SERVER1
  • Commande de vérification : Check-Disk:C
    • PLUGIN : os::windows::snmp::plugin
    • MODE : storage
    • WARNING : 80
    • CRITICAL : 90
    • DISK : 1
  • Période de contrôle : workours

Check Disk C Exchange Centreon

  • Onglet Information complémentaires
    • Modèle graphique : Storage
    • Catégorie : Disk
  • Sauvegarder
  • Répétez l’opération pour les autres disques.
    • Cochez la case Check-Disk-C: > Plus d’actions…> Dupliquer
    • Changez le nom, la commande et le DISK ID.
      • ID Disque C : 1
      • ID CD/DVD : 2
      • ID Disque E : 3
      • ID Disque F : 4
      • ID Disque L : 5

Check-Memory

Allez dans Configuration > Services > Ajouter

  • Description : Check-Memory
  • Lié aux hôtes : EX-SERVER1
  • Commande de vérification : Check-Memory
    • PLUGIN : os::windows::snmp::plugin
    • MODE : memory
    • WARNING : 80
    • CRITICAL : 90
  • Période de contrôle : workours

Check Memory Exchange Centreon

  • Onglet Information complémentaires
    • Modèle graphique : Memory
    • Catégorie : Memory
  • Sauvegarder

Check-traffic

Allez dans Configuration > Services > Ajouter

  • Description : Check-traffic
  • Lié aux hôtes : EX-SERVER1
  • Commande de vérification : Check-traffic
    • PLUGIN : os::windows::snmp::plugin
    • MODE : interfaces
    • INTERFACE : 2
    • WARNING IN : 80
    • WARNING OUT : 80
    • CRITICAL IN : 90
    • CRITICAL OUT : 90
    • OPTION : --add-traffic --add-status
  • Période de contrôle : workours

Check traffic Exchange Centreon

  • Onglet Information complémentaires
    • Modèle graphique : traffic
    • Catégorie : traffic
  • Sauvegarder

Check-Service-IMAP4

Allez dans Configuration > Services > Ajouter

  • Description : Check-Service-IMAP4
  • Lié aux hôtes : EX-SERVER1
  • Commande de vérification : Check-traffic
    • PLUGIN : os::windows::snmp::plugin
    • MODE : service
    • NAME : ‘Microsoft Exchange IMAP4’
    • OPTION : --verbose
  • Période de contrôle : workours

  • Sauvegarder
  • Superviser les autres services de la même manière :
    • Check-Service-POP3
    • Check-Service-EdgeSync
    • Check-Service-IIS
    • Check-Service-DNS
    • Check-Service-DHCP
    • …etc.

Check-Exchange-Process

Allez dans Configuration > Services > Ajouter

  • Description : Check-MSEProcess
  • Lié aux hôtes : EX-SERVER1
  • Commande de vérification : Check-MSExchange
    • PLUGIN : os::windows::snmp::plugin
    • MODE : processcount
    • NAME : ‘Microsoft.Exchange’
    • OPTION : --regexp-name --memory --cpu --verbose
  • Période de contrôle : workours

Check Process Exchange Server 2016

  • Sauvegarder
  • Superviser les autres process de la même manière.

Exporter la configuration

Pour finir, il faut redémarrer le collecteur pour prendre on compte ce qu’on vient de faire. Menu : Configuration > Collecteurs (Pollers)

  • Cochez la case Central
  • Cliquez sur le bouton Exporter la configuration
  • Cochez les cases comme sur l’image ci-dessous et choisir la méthode Redémarrer

  • Cliquez sur Exporter

Supervision Exchange (Résultat)

  • Résultat après quelques minutes : (Si vous êtes impatient comme moi, cochez toutes les cases et sélectionnez dans Plus d’actions… > Services : Planifier un contrôle immédiat (Forcé))

Monitoring Exchange Server Centreon

Remarque : cliquez sur un service pour voir plus de détail (selon la configuration des commandes (–verbose…etc.))

Si vous avez le statut suivant : UNKNOWN: Cannot write statefile ‘/var/lib/centreon/centplugins/cache_snmpstandard_172.16.1.2_161_storage’. Need write permissions on file.

  • Depuis Centreon Server, allez dans cd /var/lib/centreon/centplugins/
  • Vider le dossier (c’est sans risque)
  • Refaire un contrôle forcé

Remarque : si vous disposz d’un serveur Dell PowerEdge, n’hésitez pas à installer le programme Dell OpenManage afin de surveiller l’état physique de la machine via Centreon (Ram, Disk, RAID, VirtualDisk, Global Status,…etc.)  . N’hésitez pas en cas de besoin.

C’est terminé les amis. Nous venons de mettre en place la supervision d’un serveur Exchange en mode actif avec Centreon. Dans le prochain chapitre, nous allons superviser l’application Exchange via NRPE/NSClient++ toujours avec Centreon.

Bonne journée et à bientôt.

Supervision Systèmes & Réseaux

Voir également mes projets sur la supervision : /supervision

1 Response

  1. sysadmin dit :

    Mise à jour de l’article.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *