Pandora FMS
Administrator Manual
Microsoft Exchange Server Monitoring
Administrator Manual Microsoft Exchange Server Monitoring
© Artica Soluciones Tecnológicas 2005-2012
Index
1Changelog...........................................................................................................................................3
2Introduction........................................................................................................................................4
2.1.Exchange Environment: Server roles and optimum configurations..........................................4
3Compatibility Matrix..........................................................................................................................6
4Documentation provided by the requesting area................................................................................7
5Modules provided by the plugin.........................................................................................................8
6Requirements....................................................................................................................................10
6.1.Access Requirements to the Exchange Administration Shell..................................................11
7Installing...........................................................................................................................................12
7.1.Additional Configuration Settings ..........................................................................................12
7.1.1.Monitoring via Powershell..............................................................................................12
1 CHANGELOG
Date Author Change Version
15/02/12 Tomas First version v1r1
Page 3
2 INTRODUCTION
This document has as main aim to describe the Microsoft Exchange Server 2007-2010 servers
monitoring . We have selected a series of “base” module based on our experience in system
monitoring and the needs of some of our clients.
To extract the information we use:
• The software already installed in the system (WMI, Exchange Management Shell,
Powershell), for the monitoring done by the plugin without having to install libraries or
third part utilities.
• An already existing log parser (the one of Pandora) to process the Exchange alert logs.
• One series of basic checks “by default”. But they could be deleted or customized.
• An “open” interface(the one of Pandora, as extension of the administration section) to
specify free SQL queries.
• The system, that is integrated with the Windows agent and has the capacity of distribute file
colections, so it is posible to distribute the plugin by one way and also the file colections in
an individual way-by agent-and/or by policy.
It is important to say, that as with the rest of the monitoring with Pandora FMS, the Exchange
monitoring plugin could be used to collect information kind “text string” (to manage it as events) or
kind numeric (to do performance management).
2.1. Exchange Environment: Server roles and optimum
configurations
An Exchange server has grouped its different functionalities in the server roles. These server roles
are the following:
Mailbox Server: Contains the Mailbox and Public Folder databases.
Client Access Server: Gives connectivity between the clients and the mail boxes.
Hub Transport Server:Responsible for the mail flow between the organization.
Edge Transport Server: A server of special transport though for its implementation in DMZ
networks to provide an entry/exit mail flow that would be sure for the organization
Unified Messaging Server: Gives voice and telephony integration in Exchange.
In small environments the usual thing to do is a typical Exchange installing in a single server that
include the roles of Mailbox, CAS and Hub Servers.
For bigger environments the usual thing to do is to install the CAS and HUB server roles in the
same machine and separate them from the Mailbox servers.
Anyway and as a general rule, in big organizations usually each Exchange role is separated in
Page 4
servers dedicated for each one, to increase the flexibility and the performance. This way we manage
to scale them in an apropiate way.
We reach the conclusion that we can gather these roles between our servers in different ways:
• We can set several server roles that coexist in the same machine, but each of the should be
managed as separated entities.
• We can set the server roles in an individual way in dedicated servers.
• The Edge Transport Server server role could not coexist in the same machine with any of
the other roles of the Exchange server.
3 COMPATIBILITY MATRIX
Page 5
The plugin compatibility matrix is the following:
Systems where it has been tested
• Windows Server 2003, Exchange 2007
• Windows Server 2008, Exchange 2010
Systems where it should work • Same system or higher.
Depending on the operative system, the format in the Powershell scripts to extract the information
that you want could change, so it will be necessary to adapt the plugin according with those
circumstances.
4 DOCUMENTATION PROVIDED BY THE REQUESTING AREA
The requesting area must provide the following information:
Page 6
• Machine with Powershell and Echange Management Shell installed.
• It is necessary that the user with which the Pandora FMS agent is executed, that is the user
that will execute the plugin, has the following permissions of the system:
◦ Exchange administrator, Exchange administrator for reading only, or customized rol
with permission to use Remote Powershell and each of the Powershell cmdlets used by
the plugin without restrictions(Organization Management, View-Only Organization
Management, Custom Role.
◦ User of the domain (Domain Users)
◦ Administrator of Domain controller (optional).
• It is necessary that the Exchange server where the plugin is going to be executed would be
in the following groups:
◦ Domain Computers
◦ Exchange Servers
◦ Exchange Trusted Subsystem
• It should be an user extest_xxxxxxxxxxxxx member of Domain Users to do the Powershell
tests. This is checked being Domain Administrator, executing “Scriptsnew-
TestCasConnectivityUser.ps1”.
• The plugin will automatically get the path of each Exchange instance and will call to the
Exchange administrator shell to do several queries to get information.
• It should be posible to have access to the internal and external OWAs from the CAS server.
5 MODULES PROVIDED BY THE PLUGIN
The plugin generates the following modules:
Page 7
• Global Exchange Monitoring
◦ MSExchangeServiceHost
• CAS Exchange Monitoring
◦ MSExchangeAB, MSExchangeADTopology
◦ MSExchangeFBA, MSExchangeFDS, MSExchangeImap4
◦ MSExchangeMailboxReplication, MSExchangePop3
◦ MSExchangeProtectedServiceHost, MSExchangeRPC
◦ MSExchangeW3SVC
• HUB Exchange Monitoring
◦ MSExchangeADTopology, MSExchangeAntiSpamUpdate
◦ MSExchangeEdgeSync, MSExchangeProtectedServiceHost
◦ MSExchangeTransport
◦ MSExchangeTransportLogSearchAttendant
• Mailbox Exchange Monitoring
◦ MSExchangeADTopology
◦ MSExchangeIS, MSExchangeMailboxAssistants
◦ MSExchangeMailSubmission, MSExchangeMonitoring
◦ MSExchangeRepl, MSExchangeRPC, MSExchangeSA
◦ MSExchangeSearch, MSExchangeSearchB
◦ MSExchangeThrottling
◦ MSExchangeServerExtensionForWindowsServerBackup
◦ MSExchangeTransport, MSExchangeTransportLogSearchAttendant
• Public Folder Exchange Monitoring
◦ MSExchangeADTopology
Page 8
◦ MSExchangeIS, MSExchangeMailboxAssistants
◦ MSExchangeMailSubmission,
◦ MSExchangeRepl, MSExchangeRPC, MSExchangeSA
◦ MSExchangeSearch, MSExchangeSearchB
◦ MSExchangeThrottling
◦ MSExchangeTransport, MSExchangeTransportLogSearchAttendant
6 REQUIREMENTS
The requirements for this monitoring works correctly are the following:
• To install the Pandora FMS server in version 3.2.1 or higher.
Page 9
• To have an Exchange server (minimum 2007 SP1, because before SP1 several cmdlets such
as Get-Queue or Get-MessageTrackingLog, for example, can not be used in the plugin due
to a bug documented by Microsoft that is corrected from the SP1) installed in the machine
where it is going to be monitored, with the basic tools (Powershell, Exchange Management
Shell).
• It is necessary that the user with which the Pandora FMS agent is executed, that is the user
that will execute the plugin, has the following permissions of the system:
◦ Exchange administrator, Exchange administrator for reading only, or customized rol
with permission to use Remote Powershell and each of the Powershell cmdlets used by
the plugin without restrictions(Organization Management, View-Only Organization
Management, Custom Role(compulsory).
◦ User of the domain (Domain Users) (compulsory)
◦ Administrator of Domain controller (optional).
• It is necessary that the Exchange server where the plugin is going to be executed would be
in the following groups:
◦ Domain Computers (compulsory)
◦ Exchange Servers (compulsory)
◦ Exchange Trusted Subsystem (compulsory)
• It should be an user extest_xxxxxxxxxxxxx member of Domain Users to do the Powershell
tests. This is checked being Domain Administrator, executing “Scriptsnew-
TestCasConnectivityUser.ps1”.
• The plugin will automatically get the path of each Exchange instance and will call to the
Exchange administrator shell to do several queries to get information.
• It should be posible to have access to the internal and external OWAs from the CAS server.
6.1. Access Requirements to the Exchange Administration Shell
The plugin needs to be executed by an user with permissions to connect to the Exchange
administration shell depending on the server to which we want to connect. This user should have
enough priviledges to use the necessary cmdlets to get information.
To prepare the use of the Exchange administration shell it is necessary to have an user with access
Page 10
priviledges for some of the cmdlets.
It will be enough if we have the necesary permissions, with an installation by default of the Pandora
agent. We will not need to configure anything more.
Page 11
7 INSTALLING
Copy the plugin to the agent plugin directory, distributing it through file collections. The same with
the conf. File. The call from the agent will be similar to this, but using the paths where the plugin
and the conf are installed.
module_plugin "<ruta-powershell>powershell.exe" -PSConsoleFile "E:Program
FilesMicrosoftExchange ServerBinexshell.psc1" -command C:'<ruta-
plugin>pandora_exchange.ps1'
7.1. Additional Configuration Settings
NOTE: It is extremely important to consider that the configuration files though for the plugin in
WINDOWS should be edited and stored with carriage returns kind “WINDOWS” and that if we
use carriage returns kind “UNIX” the plugin will not work well.
There are some specific checks that have its own configuration “tokens”, that are described next:
7.1.1. Monitoring via Powershell
Starting from the basis that we have already installed and configured both Pandora and the
Exchange server, we are going to explain how to get information about the server status in general,
from the activity of the different services, and aslo the Exchange probes that through different
cmdlets have to check critical elements of our systems
For this case we should install both a Pandora software agent and the Exchange plugin in the
Exchange server machine. The Exchange plugin in Powershell is an agent plugin used by Pandora.
Summarizing, an agent plugin is one scrip that is executed in the local machine where the software
agent is installed, and that extracts an useful information in XML format that the agent will send
after to the Pandora server in order to be processed).
To do that the Pandora software agent that we have installed in our server to monitor executes this
script, we should edit the agent configuration file and do the call to the plugin through the
module_plugin. configuration token
We are going to edit the Pandora agent configuration file from the Pandora FMS administration
console. Before doing this, we should have activated the remote_config option in the same file to 1.
This file is located by default at:
C:Archivos de programapandora_agentpandora_agent.conf
Considering that we could edit the configuration remotely, we should go to the Administration →
Agent management and click on the remote configuration icon of the
Page 12
agent that we want to configure.
We introduce the following at the end of the configuration file:
# Plugin for monitoring Microsoft Exchange Server
module_plugin "<ruta-powershell>powershell.exe" -PSConsoleFile "E:Program
FilesMicrosoftExchange ServerBinexshell.psc1" -command C:'<ruta-
plugin>Pandora_Plugin_Exchange_vx.y.ps1'
Page 13
We save the file and start the Pandora agent.
Once it has been configured, we have to distribute the necessary files through file collections .
These are file packages that are sent to all the agents that have them assigned (either by separate or
because it is included in a policy with file collections assigned) through a centralized distribution
system integrated in Pandora FMS.
This process will be explained in detail through the document:
One of the most powerful features of the plugin in Powershell is the posibility of specifying instead
of the complete list of servers and do the same check for each one, to select one list of servers in
order the plugin does only one check and module for all the servers contained in this list. We
should put this list in the same folder where the plugin is, with the name mailbox_servers.txt
Let's see an example of its content:
ESTGVMSD201
ESTGVMSD202
ESTGVMSD401
ESTGVMST402
Containing these servers mailbox_servers.txt, for all the modules that checks all the server lists.
Instead this, it will do the query only of these four servers and will do the modules in base of the list
given by us. For the development of any other plugin that extracts information via Powershell, it is
important to consider the cmdet use:
Page 14
select-object -property *
We're able to add this cmdlet after any other one which return statistics by using a tube ( | ). This
way, the final execution will return to the standard output information regarding all the properties
this cmdlet contains, even when the execution of the first cmdlet without using any parameter only
returned the information from a default list.
This way our posibilities of monitoring using Powershell are notably extended.
In case that we want to add new modules to our plugin, before doing anything, try to execute the
cmdlet from which we want to extract information with the previously mentioned, to get all the
posible information.
An example of the use of this command woul be the following:
Get-Service | Select-Object -Property *
Usually, the result of the Get-Service cmdlet would be a list in table format of all services with their
description and status. But, when we apply this second cmdlet, we get for each service information
about all the propieties that this service have available:
Name : service
RequiredServices : {service1, service2}
CanPauseAndContinue : False
CanShutdown : True
CanStop : True
DisplayName : This is a Windows Service
DependentServices : {service3}
MachineName : .
ServiceName : service
ServicesDependedOn : {service1, service2}
ServiceHandle : SafeServiceHandle
Status : Stopped
ServiceType : Win32ShareProcess
Site :
Container :
Page 15

More Related Content

PDF
Weblogic cluster
PDF
An introduction to weblogic console
PPT
Clustering of Exchnage server
PDF
Notes2
PDF
WebLogic FAQs
DOC
weblogic perfomence tuning
PPTX
Weblogic application server
PPTX
Weblogic server cluster
Weblogic cluster
An introduction to weblogic console
Clustering of Exchnage server
Notes2
WebLogic FAQs
weblogic perfomence tuning
Weblogic application server
Weblogic server cluster

What's hot (20)

PDF
Diretrizes para Implementação do Citrix XenServer 6.2.0 em Servidores HP Prol...
PDF
Oracle SOA, BPM, OSB, BAM, & B2B 12C
PDF
MySQL 5.7 milestone
ODP
Introduction to DC/OS
PDF
Learn Oracle WebLogic Server 12c Administration
PPTX
EXCHANGE SERVER 2010
PDF
Enterprise managerclodcontrolinstallconfiguration emc12c
PDF
Weblogic 11g admin basic with screencast
PPTX
Upgrading from Windows Server 2008 / 2008 R2 to Windows Server 2012
PDF
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
PDF
Maxscale_메뉴얼
PPTX
Windows Server 2008 R2 Dev Session 01
PDF
Red hat enterprise_linux-7-load_balancer_administration-en-us
PDF
Reference architectures shows a microservices deployed to Kubernetes
DOCX
Instruction on creating a cluster on jboss eap environment
PDF
JBoss EAP / WildFly, State of the Union
PPTX
Weblogic
PPT
Exchange server 2007
PPTX
JBoss AS 7
Diretrizes para Implementação do Citrix XenServer 6.2.0 em Servidores HP Prol...
Oracle SOA, BPM, OSB, BAM, & B2B 12C
MySQL 5.7 milestone
Introduction to DC/OS
Learn Oracle WebLogic Server 12c Administration
EXCHANGE SERVER 2010
Enterprise managerclodcontrolinstallconfiguration emc12c
Weblogic 11g admin basic with screencast
Upgrading from Windows Server 2008 / 2008 R2 to Windows Server 2012
[발표자료] 오픈소스 Pacemaker 활용한 zabbix 이중화 방안(w/ Zabbix Korea Community)
Maxscale_메뉴얼
Windows Server 2008 R2 Dev Session 01
Red hat enterprise_linux-7-load_balancer_administration-en-us
Reference architectures shows a microservices deployed to Kubernetes
Instruction on creating a cluster on jboss eap environment
JBoss EAP / WildFly, State of the Union
Weblogic
Exchange server 2007
JBoss AS 7
Ad

Viewers also liked (20)

PDF
Pandora FMS: End to End Exchange Plugin
PDF
Pandora FMS: Open LDAP server monitoring administrator's manual
PDF
Pandora FMS: VMware Enterprise Plugin
PDF
Pandora FMS: Fim Events Plugin
PDF
Pandora FMS: Hyper V Plugin
PDF
Pandora FMS: Exchange OWA Plugin
PDF
Pandora FMS - Selenium Enterprise Plugin
PDF
Pandora FMS: Monitorización básica WMI
PDF
Pandora FMS: SQL Enterprise PIugin
PDF
Pandora FMS: Windows Phone 7 Agent
PDF
Pandora FMS: ePolicy Orchestrator
PDF
Pandora FMS: Plugin Enterprise de Exchange
PDF
Whats new in Pandora FMS 5.0
PDF
Pandora FMS: Tomcat Monitoring
PDF
Novedades en Pandora FMS 5.0
PDF
Pandora FMS: Apache Tomcat Enterprise Plugin
PDF
Pandora FMS: ePolicy Orchestrator Manual
PDF
Pandora FMS: Plugin de Apache Hbase
PDF
Pandora FMS: Plugin de monitorización de Hyper V
PDF
Pandora FMS: Analizador de logs avanzado
Pandora FMS: End to End Exchange Plugin
Pandora FMS: Open LDAP server monitoring administrator's manual
Pandora FMS: VMware Enterprise Plugin
Pandora FMS: Fim Events Plugin
Pandora FMS: Hyper V Plugin
Pandora FMS: Exchange OWA Plugin
Pandora FMS - Selenium Enterprise Plugin
Pandora FMS: Monitorización básica WMI
Pandora FMS: SQL Enterprise PIugin
Pandora FMS: Windows Phone 7 Agent
Pandora FMS: ePolicy Orchestrator
Pandora FMS: Plugin Enterprise de Exchange
Whats new in Pandora FMS 5.0
Pandora FMS: Tomcat Monitoring
Novedades en Pandora FMS 5.0
Pandora FMS: Apache Tomcat Enterprise Plugin
Pandora FMS: ePolicy Orchestrator Manual
Pandora FMS: Plugin de Apache Hbase
Pandora FMS: Plugin de monitorización de Hyper V
Pandora FMS: Analizador de logs avanzado
Ad

Similar to Pandora FMS: Exchange Enterprise plugin (20)

PDF
Protocol
PPTX
Docker Swarm secrets for creating great FIWARE platforms
DOC
Windows Server 2003
PPT
WebSphere Message Broker Training | IBM WebSphere Message Broker Online Training
PDF
FIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE Platforms
PDF
Demystifying puppet
PDF
What’s new in WSO2 Enterprise Integrator 6.6
PDF
16.7_Release_Notes.pdf
PDF
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
PDF
Pandora FMS: Outlook Anywhere Plugin
PDF
Build cloud native solution using open source
PDF
Solution Manager 7.2 SAP Monitoring - Part 3 - Managed System Configuration
PDF
vRO Training Document
PDF
Mule esb and_relevant_components
PPTX
Windows 2012 R2 Multi Server Management
PDF
Wissbi osdc pdf
PDF
Deployment Cookbook: Quick Migration with Virtual Server Host ...
PDF
Weblogic console
PDF
Weblogic Cluster Console
PDF
Weblogic cluster console
Protocol
Docker Swarm secrets for creating great FIWARE platforms
Windows Server 2003
WebSphere Message Broker Training | IBM WebSphere Message Broker Online Training
FIWARE Tech Summit - Docker Swarm Secrets for Creating Great FIWARE Platforms
Demystifying puppet
What’s new in WSO2 Enterprise Integrator 6.6
16.7_Release_Notes.pdf
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Pandora FMS: Outlook Anywhere Plugin
Build cloud native solution using open source
Solution Manager 7.2 SAP Monitoring - Part 3 - Managed System Configuration
vRO Training Document
Mule esb and_relevant_components
Windows 2012 R2 Multi Server Management
Wissbi osdc pdf
Deployment Cookbook: Quick Migration with Virtual Server Host ...
Weblogic console
Weblogic Cluster Console
Weblogic cluster console

More from Pandora FMS (20)

PDF
Pandora FMS: Plugin de Raven DB
PDF
Pandora FMS: Raven DB Plugin
PDF
Pandora FMS: Cisco Remote inventory modules
PDF
Pandora FMS: Plugin de exchange de acceso de web
PDF
Pandora FMS: Plugin de monitorización de Outlook Anywhere
PDF
Pandora FMS: Plugin de monitorización de cliente de Exchage
PDF
Pandora FMS: Monitorización de Blackberry Exchange
PDF
Pandora FMS: Blackberry Exchange Monitoring
PDF
Pandora FMS: Plugin de Exchange ActivSync
PDF
Pandora FMS: Exchange ActivSync Plugin
PDF
Pandora FMS: Plugin Enterprise de VMware
PDF
Pandora FMS: Plugin de correo Imap
PDF
Pandora FMS: PostgreSQL Plugin
PDF
Pandora FMS: Monitorización de servidores MySQL
PDF
Pandora FMS: Mysql Server Monitoring
PDF
Pandora FMS: MongoDB plugin
PDF
Pandora FMS: Informix plugin
PDF
Pandora FMS: Informix Plugin
PDF
Pandora FMS: Plugin Enterprise de monitorización de servidor DB2
PDF
Pandora FMS: DB2 Enterprise Plugin
Pandora FMS: Plugin de Raven DB
Pandora FMS: Raven DB Plugin
Pandora FMS: Cisco Remote inventory modules
Pandora FMS: Plugin de exchange de acceso de web
Pandora FMS: Plugin de monitorización de Outlook Anywhere
Pandora FMS: Plugin de monitorización de cliente de Exchage
Pandora FMS: Monitorización de Blackberry Exchange
Pandora FMS: Blackberry Exchange Monitoring
Pandora FMS: Plugin de Exchange ActivSync
Pandora FMS: Exchange ActivSync Plugin
Pandora FMS: Plugin Enterprise de VMware
Pandora FMS: Plugin de correo Imap
Pandora FMS: PostgreSQL Plugin
Pandora FMS: Monitorización de servidores MySQL
Pandora FMS: Mysql Server Monitoring
Pandora FMS: MongoDB plugin
Pandora FMS: Informix plugin
Pandora FMS: Informix Plugin
Pandora FMS: Plugin Enterprise de monitorización de servidor DB2
Pandora FMS: DB2 Enterprise Plugin

Recently uploaded (20)

PDF
Sun and Bloombase Spitfire StoreSafe End-to-end Storage Security Solution
PPTX
Human Computer Interaction lecture Chapter 2.pptx
PPTX
ROI from Efficient Content & Campaign Management in the Digital Media Industry
PDF
Lumion Pro Crack New latest version Download 2025
PPTX
DevOpsDays Halifax 2025 - Building 10x Organizations Using Modern Productivit...
PDF
MiniTool Power Data Recovery 12.6 Crack + Portable (Latest Version 2025)
PPTX
Plex Media Server 1.28.2.6151 With Crac5 2022 Free .
DOCX
Industrial Bio-Lynx: Advanced Biometric Solution for Workforce Management
PDF
SOFTWARE ENGINEERING Software Engineering (3rd Edition) by K.K. Aggarwal & Yo...
PDF
infoteam HELLAS company profile 2025 presentation
PPTX
Chapter_05_System Modeling for software engineering
PPTX
Foundations of Marketo Engage: Nurturing
PDF
IDM Crack 6.42 Build 42 Patch Serial Key 2025 Free New Version
PDF
IT Consulting Services to Secure Future Growth
PPT
3.Software Design for software engineering
PPTX
Viber For Windows 25.7.1 Crack + Serial Keygen
PDF
Crypto Loss And Recovery Guide By Expert Recovery Agency.
PPTX
Lesson-3-Operation-System-Support.pptx-I
PPTX
Chapter 1 - Transaction Processing and Mgt.pptx
PDF
Top 10 Project Management Software for Small Teams in 2025.pdf
Sun and Bloombase Spitfire StoreSafe End-to-end Storage Security Solution
Human Computer Interaction lecture Chapter 2.pptx
ROI from Efficient Content & Campaign Management in the Digital Media Industry
Lumion Pro Crack New latest version Download 2025
DevOpsDays Halifax 2025 - Building 10x Organizations Using Modern Productivit...
MiniTool Power Data Recovery 12.6 Crack + Portable (Latest Version 2025)
Plex Media Server 1.28.2.6151 With Crac5 2022 Free .
Industrial Bio-Lynx: Advanced Biometric Solution for Workforce Management
SOFTWARE ENGINEERING Software Engineering (3rd Edition) by K.K. Aggarwal & Yo...
infoteam HELLAS company profile 2025 presentation
Chapter_05_System Modeling for software engineering
Foundations of Marketo Engage: Nurturing
IDM Crack 6.42 Build 42 Patch Serial Key 2025 Free New Version
IT Consulting Services to Secure Future Growth
3.Software Design for software engineering
Viber For Windows 25.7.1 Crack + Serial Keygen
Crypto Loss And Recovery Guide By Expert Recovery Agency.
Lesson-3-Operation-System-Support.pptx-I
Chapter 1 - Transaction Processing and Mgt.pptx
Top 10 Project Management Software for Small Teams in 2025.pdf

Pandora FMS: Exchange Enterprise plugin

  • 1. Pandora FMS Administrator Manual Microsoft Exchange Server Monitoring
  • 2. Administrator Manual Microsoft Exchange Server Monitoring © Artica Soluciones Tecnológicas 2005-2012 Index 1Changelog...........................................................................................................................................3 2Introduction........................................................................................................................................4 2.1.Exchange Environment: Server roles and optimum configurations..........................................4 3Compatibility Matrix..........................................................................................................................6 4Documentation provided by the requesting area................................................................................7 5Modules provided by the plugin.........................................................................................................8 6Requirements....................................................................................................................................10 6.1.Access Requirements to the Exchange Administration Shell..................................................11 7Installing...........................................................................................................................................12 7.1.Additional Configuration Settings ..........................................................................................12 7.1.1.Monitoring via Powershell..............................................................................................12
  • 3. 1 CHANGELOG Date Author Change Version 15/02/12 Tomas First version v1r1 Page 3
  • 4. 2 INTRODUCTION This document has as main aim to describe the Microsoft Exchange Server 2007-2010 servers monitoring . We have selected a series of “base” module based on our experience in system monitoring and the needs of some of our clients. To extract the information we use: • The software already installed in the system (WMI, Exchange Management Shell, Powershell), for the monitoring done by the plugin without having to install libraries or third part utilities. • An already existing log parser (the one of Pandora) to process the Exchange alert logs. • One series of basic checks “by default”. But they could be deleted or customized. • An “open” interface(the one of Pandora, as extension of the administration section) to specify free SQL queries. • The system, that is integrated with the Windows agent and has the capacity of distribute file colections, so it is posible to distribute the plugin by one way and also the file colections in an individual way-by agent-and/or by policy. It is important to say, that as with the rest of the monitoring with Pandora FMS, the Exchange monitoring plugin could be used to collect information kind “text string” (to manage it as events) or kind numeric (to do performance management). 2.1. Exchange Environment: Server roles and optimum configurations An Exchange server has grouped its different functionalities in the server roles. These server roles are the following: Mailbox Server: Contains the Mailbox and Public Folder databases. Client Access Server: Gives connectivity between the clients and the mail boxes. Hub Transport Server:Responsible for the mail flow between the organization. Edge Transport Server: A server of special transport though for its implementation in DMZ networks to provide an entry/exit mail flow that would be sure for the organization Unified Messaging Server: Gives voice and telephony integration in Exchange. In small environments the usual thing to do is a typical Exchange installing in a single server that include the roles of Mailbox, CAS and Hub Servers. For bigger environments the usual thing to do is to install the CAS and HUB server roles in the same machine and separate them from the Mailbox servers. Anyway and as a general rule, in big organizations usually each Exchange role is separated in Page 4
  • 5. servers dedicated for each one, to increase the flexibility and the performance. This way we manage to scale them in an apropiate way. We reach the conclusion that we can gather these roles between our servers in different ways: • We can set several server roles that coexist in the same machine, but each of the should be managed as separated entities. • We can set the server roles in an individual way in dedicated servers. • The Edge Transport Server server role could not coexist in the same machine with any of the other roles of the Exchange server. 3 COMPATIBILITY MATRIX Page 5
  • 6. The plugin compatibility matrix is the following: Systems where it has been tested • Windows Server 2003, Exchange 2007 • Windows Server 2008, Exchange 2010 Systems where it should work • Same system or higher. Depending on the operative system, the format in the Powershell scripts to extract the information that you want could change, so it will be necessary to adapt the plugin according with those circumstances. 4 DOCUMENTATION PROVIDED BY THE REQUESTING AREA The requesting area must provide the following information: Page 6
  • 7. • Machine with Powershell and Echange Management Shell installed. • It is necessary that the user with which the Pandora FMS agent is executed, that is the user that will execute the plugin, has the following permissions of the system: ◦ Exchange administrator, Exchange administrator for reading only, or customized rol with permission to use Remote Powershell and each of the Powershell cmdlets used by the plugin without restrictions(Organization Management, View-Only Organization Management, Custom Role. ◦ User of the domain (Domain Users) ◦ Administrator of Domain controller (optional). • It is necessary that the Exchange server where the plugin is going to be executed would be in the following groups: ◦ Domain Computers ◦ Exchange Servers ◦ Exchange Trusted Subsystem • It should be an user extest_xxxxxxxxxxxxx member of Domain Users to do the Powershell tests. This is checked being Domain Administrator, executing “Scriptsnew- TestCasConnectivityUser.ps1”. • The plugin will automatically get the path of each Exchange instance and will call to the Exchange administrator shell to do several queries to get information. • It should be posible to have access to the internal and external OWAs from the CAS server. 5 MODULES PROVIDED BY THE PLUGIN The plugin generates the following modules: Page 7
  • 8. • Global Exchange Monitoring ◦ MSExchangeServiceHost • CAS Exchange Monitoring ◦ MSExchangeAB, MSExchangeADTopology ◦ MSExchangeFBA, MSExchangeFDS, MSExchangeImap4 ◦ MSExchangeMailboxReplication, MSExchangePop3 ◦ MSExchangeProtectedServiceHost, MSExchangeRPC ◦ MSExchangeW3SVC • HUB Exchange Monitoring ◦ MSExchangeADTopology, MSExchangeAntiSpamUpdate ◦ MSExchangeEdgeSync, MSExchangeProtectedServiceHost ◦ MSExchangeTransport ◦ MSExchangeTransportLogSearchAttendant • Mailbox Exchange Monitoring ◦ MSExchangeADTopology ◦ MSExchangeIS, MSExchangeMailboxAssistants ◦ MSExchangeMailSubmission, MSExchangeMonitoring ◦ MSExchangeRepl, MSExchangeRPC, MSExchangeSA ◦ MSExchangeSearch, MSExchangeSearchB ◦ MSExchangeThrottling ◦ MSExchangeServerExtensionForWindowsServerBackup ◦ MSExchangeTransport, MSExchangeTransportLogSearchAttendant • Public Folder Exchange Monitoring ◦ MSExchangeADTopology Page 8
  • 9. ◦ MSExchangeIS, MSExchangeMailboxAssistants ◦ MSExchangeMailSubmission, ◦ MSExchangeRepl, MSExchangeRPC, MSExchangeSA ◦ MSExchangeSearch, MSExchangeSearchB ◦ MSExchangeThrottling ◦ MSExchangeTransport, MSExchangeTransportLogSearchAttendant 6 REQUIREMENTS The requirements for this monitoring works correctly are the following: • To install the Pandora FMS server in version 3.2.1 or higher. Page 9
  • 10. • To have an Exchange server (minimum 2007 SP1, because before SP1 several cmdlets such as Get-Queue or Get-MessageTrackingLog, for example, can not be used in the plugin due to a bug documented by Microsoft that is corrected from the SP1) installed in the machine where it is going to be monitored, with the basic tools (Powershell, Exchange Management Shell). • It is necessary that the user with which the Pandora FMS agent is executed, that is the user that will execute the plugin, has the following permissions of the system: ◦ Exchange administrator, Exchange administrator for reading only, or customized rol with permission to use Remote Powershell and each of the Powershell cmdlets used by the plugin without restrictions(Organization Management, View-Only Organization Management, Custom Role(compulsory). ◦ User of the domain (Domain Users) (compulsory) ◦ Administrator of Domain controller (optional). • It is necessary that the Exchange server where the plugin is going to be executed would be in the following groups: ◦ Domain Computers (compulsory) ◦ Exchange Servers (compulsory) ◦ Exchange Trusted Subsystem (compulsory) • It should be an user extest_xxxxxxxxxxxxx member of Domain Users to do the Powershell tests. This is checked being Domain Administrator, executing “Scriptsnew- TestCasConnectivityUser.ps1”. • The plugin will automatically get the path of each Exchange instance and will call to the Exchange administrator shell to do several queries to get information. • It should be posible to have access to the internal and external OWAs from the CAS server. 6.1. Access Requirements to the Exchange Administration Shell The plugin needs to be executed by an user with permissions to connect to the Exchange administration shell depending on the server to which we want to connect. This user should have enough priviledges to use the necessary cmdlets to get information. To prepare the use of the Exchange administration shell it is necessary to have an user with access Page 10
  • 11. priviledges for some of the cmdlets. It will be enough if we have the necesary permissions, with an installation by default of the Pandora agent. We will not need to configure anything more. Page 11
  • 12. 7 INSTALLING Copy the plugin to the agent plugin directory, distributing it through file collections. The same with the conf. File. The call from the agent will be similar to this, but using the paths where the plugin and the conf are installed. module_plugin "<ruta-powershell>powershell.exe" -PSConsoleFile "E:Program FilesMicrosoftExchange ServerBinexshell.psc1" -command C:'<ruta- plugin>pandora_exchange.ps1' 7.1. Additional Configuration Settings NOTE: It is extremely important to consider that the configuration files though for the plugin in WINDOWS should be edited and stored with carriage returns kind “WINDOWS” and that if we use carriage returns kind “UNIX” the plugin will not work well. There are some specific checks that have its own configuration “tokens”, that are described next: 7.1.1. Monitoring via Powershell Starting from the basis that we have already installed and configured both Pandora and the Exchange server, we are going to explain how to get information about the server status in general, from the activity of the different services, and aslo the Exchange probes that through different cmdlets have to check critical elements of our systems For this case we should install both a Pandora software agent and the Exchange plugin in the Exchange server machine. The Exchange plugin in Powershell is an agent plugin used by Pandora. Summarizing, an agent plugin is one scrip that is executed in the local machine where the software agent is installed, and that extracts an useful information in XML format that the agent will send after to the Pandora server in order to be processed). To do that the Pandora software agent that we have installed in our server to monitor executes this script, we should edit the agent configuration file and do the call to the plugin through the module_plugin. configuration token We are going to edit the Pandora agent configuration file from the Pandora FMS administration console. Before doing this, we should have activated the remote_config option in the same file to 1. This file is located by default at: C:Archivos de programapandora_agentpandora_agent.conf Considering that we could edit the configuration remotely, we should go to the Administration → Agent management and click on the remote configuration icon of the Page 12
  • 13. agent that we want to configure. We introduce the following at the end of the configuration file: # Plugin for monitoring Microsoft Exchange Server module_plugin "<ruta-powershell>powershell.exe" -PSConsoleFile "E:Program FilesMicrosoftExchange ServerBinexshell.psc1" -command C:'<ruta- plugin>Pandora_Plugin_Exchange_vx.y.ps1' Page 13
  • 14. We save the file and start the Pandora agent. Once it has been configured, we have to distribute the necessary files through file collections . These are file packages that are sent to all the agents that have them assigned (either by separate or because it is included in a policy with file collections assigned) through a centralized distribution system integrated in Pandora FMS. This process will be explained in detail through the document: One of the most powerful features of the plugin in Powershell is the posibility of specifying instead of the complete list of servers and do the same check for each one, to select one list of servers in order the plugin does only one check and module for all the servers contained in this list. We should put this list in the same folder where the plugin is, with the name mailbox_servers.txt Let's see an example of its content: ESTGVMSD201 ESTGVMSD202 ESTGVMSD401 ESTGVMST402 Containing these servers mailbox_servers.txt, for all the modules that checks all the server lists. Instead this, it will do the query only of these four servers and will do the modules in base of the list given by us. For the development of any other plugin that extracts information via Powershell, it is important to consider the cmdet use: Page 14
  • 15. select-object -property * We're able to add this cmdlet after any other one which return statistics by using a tube ( | ). This way, the final execution will return to the standard output information regarding all the properties this cmdlet contains, even when the execution of the first cmdlet without using any parameter only returned the information from a default list. This way our posibilities of monitoring using Powershell are notably extended. In case that we want to add new modules to our plugin, before doing anything, try to execute the cmdlet from which we want to extract information with the previously mentioned, to get all the posible information. An example of the use of this command woul be the following: Get-Service | Select-Object -Property * Usually, the result of the Get-Service cmdlet would be a list in table format of all services with their description and status. But, when we apply this second cmdlet, we get for each service information about all the propieties that this service have available: Name : service RequiredServices : {service1, service2} CanPauseAndContinue : False CanShutdown : True CanStop : True DisplayName : This is a Windows Service DependentServices : {service3} MachineName : . ServiceName : service ServicesDependedOn : {service1, service2} ServiceHandle : SafeServiceHandle Status : Stopped ServiceType : Win32ShareProcess Site : Container : Page 15