12
Pandora FMS Administrator Manual End To End Exchange Monitoring

Pandora FMS: End to End Exchange Plugin

Embed Size (px)

DESCRIPTION

This plugin monitors the correct working of the Exchange mail system from the client point of view. For more information visit the following webpage: http://pandorafms.com/index.php?sec=Library&sec2=repository&lng=en&action=view_PUI&id_PUI=573

Citation preview

Page 1: Pandora FMS: End to End Exchange Plugin

Pandora FMSAdministrator Manual

End To End Exchange Monitoring

Page 2: Pandora FMS: End to End Exchange Plugin

Administrator Manual End To End Exchange Monitoring

© Artica Soluciones Tecnológicas 2005-2012

Index1Changelog...........................................................................................................................................32Introduction........................................................................................................................................4

2.1.Plugin Performance....................................................................................................................42.1.1.Email sending Latency ......................................................................................................42.1.2.Check mail entry ...............................................................................................................4

3Compatibility Matrix..........................................................................................................................54Documentation provided by the requesting area................................................................................65Modules provided by the plugin.........................................................................................................76Requisites...........................................................................................................................................8

6.1.Problem windows Execute MAPI (Outlook) as service............................................................86.2.Outlook 2010 Security Configuration........................................................................................8

7Installing.............................................................................................................................................98Monitoring Configuration................................................................................................................10

8.1.Plugin Parameters....................................................................................................................108.2.Configuring Control Emails.....................................................................................................108.3.Checking the interval...............................................................................................................11

9Creating one module in the agent ....................................................................................................12

Page 3: Pandora FMS: End to End Exchange Plugin

1 CHANGELOG

Date Author Change Version

15/02/12 Dario First version v1r1

Page 3

Page 4: Pandora FMS: End to End Exchange Plugin

2 INTRODUCTION

The main aim of this plugin is to monitor the correct working of the Exchange mail system from the

client point of view. To do this, you should use the Microsoft Outlook mail client, who will receive

an email in a periodic way and we will check that the mail will arrive in an specific time.

2.1. Plugin Performance

The plugin checks a file of a mail user through the Outlook program. In this query it could do two

kinds of checks: to calculate the email sending latency or to check that an specific email arrived.

2.1.1. Email sending Latency

The plugin searchs in the entry folder the emails that have an specific string text of reference.

Before calculating the sending-reception email latency, it is checked that this email arrived in a

reference intervale that guarantees that the emails are sent in a periodical way.

Once we get an email that has arrived in the time intervale, it compares the sending data (it should

be in the email subject) with the reception date that Exchanges has and it will return the difference,

that is the latency beetween the sending and the reception.

If the plugin finds the email with the reference string and this has arrived in the last interval, then

the plugin will return the sending-reception latency. If on the contrary, the plugin doesn't find the

email with the reference string or it comes out of the specified interval, then the plugin will not

return anything and the module that monitors this query will pass to the Unknown status.

2.1.2. Check mail entry

If the parameter only_check (will be explained after) the plugin will search a mail with the text

string of refernced and in this case it returns 1.

This way it doesn't check any kind o arriving interval in mails, so it will be necessary to delete the

email with the reference string in a manual way so if not, the monitoring will return false positives.

3 COMPATIBILITY MATRIX

Page 4

Page 5: Pandora FMS: End to End Exchange Plugin

The plugin compatibility matrix is the following:

Systems where it has been tested• Windows Server 2008 Server R2• Outlook 2010

Systems where it should work • Same system or higher.

It is possible that due to changes in the Outlook future versions it would be necessary to do changes

in the plugin.

4 DOCUMENTATION PROVIDED BY THE REQUESTING AREA

The requesting area must send the following information:

• Machine requirements:

Page 5

Page 6: Pandora FMS: End to End Exchange Plugin

◦ Pandora FMS agent installed.

◦ Outlook 2010 installed and properly configured with an account hosted in the Exchange

server.

• Information for modules:

◦ User account used to monitor, for example [email protected].

◦ Folder which has the emails to monitor, for example “Inbox”.

◦ String to search into mail subject.

◦ Type of check: only_check (only check if there is a mail) or interval (checks mail

latency)

5 MODULES PROVIDED BY THE PLUGIN

The plugin returns two types of modules:

• Send-receive latency which returns the email's delay from send to reception.

Page 6

Page 7: Pandora FMS: End to End Exchange Plugin

• Check mail arrival which checks whether a mail was received or not

6 REQUISITES

The plugin requires the following software and configuration to work:

• Windows Operative System with the con agente de Pandora FMS agent installed.

• ActivePerl 5.8.8 or higher.

Page 7

Page 8: Pandora FMS: End to End Exchange Plugin

• Outlook 2010 installed and configured with the account where the emails to monitor are

sended. The Outlook program shoud be executing at any moment

• To allow the access of external programs to the Outlook 2010 emails.

• Execution of the Pandora FMS agent as process.

• Mantain the session of the user that executes the agent as process always

active

• Periodical purge of emails of the account used to monitor, in all moment the maximum

number of emails should not be higher than 300 emails.

6.1. Problem windows Execute MAPI (Outlook) as service

There is a problem documented by Windows that consists on that is not posible to execute Outlook

due to a very strict requisites of the MAPI protocol, that could be checked in this KB:

http://support.microsoft.com/kb/237913

For this reason, the Pandora FMS agent that executes this plugin, should be executed as process.

To do this, you shoud open a terminal to the Pandora agent installing directory and execute the

following command:

PandoraAgent.exe –process

6.2. Outlook 2010 Security Configuration

In the Outlook 2010 program configuration options, you will find the Trust Center. In it you

should configure the access to programming in the following way:

To could configure this parameter, the user should be local administrator in the Windows system.

Page 8

Page 9: Pandora FMS: End to End Exchange Plugin

7 INSTALLING

To install the plugin you will only need to copy the file in the place of the machine that has installed

the Pandora FSM agent for Windows. We will explain later how to create the corresponding

modules in the agent.

8 MONITORING CONFIGURATION

Page 9

Page 10: Pandora FMS: End to End Exchange Plugin

8.1. Plugin Parameters

The plugin configuration parameters are the following:

• account: email account where the mails to monitor are received. For example:

[email protected]

• folder: folder that contains the emails to monitor. For example: Inbox

• needle: String that contains the subject of the mails to monitor.

• Auxiliary parameters:

◦ only_check: It only returns 1 or 0 when it finds the email with the subject specified, IT

DOESN'T CHECK THE INTERVAL OF THE MAILS.

◦ interval: maximum old interval for the mail to monitor in seconds. After this

parameter, it is necesary to add the interval in seconds.

An example of modules to execute the plugin would be:

m o d u l e _ e x e c p e r l " C : \ U s e r s \ P a n d o r a \ D e s k t o p \ c h e c k _ e x c h a n g e _ o u t l o o k . p l "

"[email protected]" "Bandeja de entrada" "CadenaRef" interval 900

m o d u l e _ e x e c p e r l " C : \ U s e r s \ P a n d o r a \ D e s k t o p \ c h e c k _ e x c h a n g e _ o u t l o o k . p l "

"[email protected]" "Bandeja de entrada" "CadenaRef" only_check

8.2. Configuring Control Emails

If you don't use the only_check the mail that is going to be monitored should have atext format in the subject.The required format is the the following:

Sending email monitoring 02/14/2012 11:00:00

It is very important to respect the order of each element (Subject date) (mm/dd/yyyy).

The first part of the attached, before the date, will be which the administrator will write inthe needle parameter to do the search. In our example, the needle parameter is:222

Sending Email monitoring

If you use the only_check parameter you don't have to use any kind of format for theattached and the needle parameter should be the same as the email subject. For

Page 10

Page 11: Pandora FMS: End to End Exchange Plugin

example. The mail subject is:

Sending email system test

The needle parameter will be:

Sending email system test

8.3. Checking the interval

The plugin checks that the last email get and that corresponds with the needle parameterhas arrived before the time intervale finish.

To do the check we use the date of arrival that Exchanges shows when an email is receivedand this is compared with the hour of the system to check that the intervale is fulfilled.

Supposing that are the 15:00:00 of the day 16/02/2012, and that we have and interval of 1hour and that we have received the last email with the following data:

• Subject: Report 02/14/2012 11:00:44• Date arrival: 14:30:00 del día 16/02/2012

Although in the subject any other date would be written, the right one is that of the arrival,so this email is in the interval.

9 CREATING ONE MODULE IN THE AGENT This plugin is used to execute modules in the agent, so they should be defined in the agent

configuration file. An example of one module could be this:

Page 11

Page 12: Pandora FMS: End to End Exchange Plugin

module_beginmodule_type generic_datamodule_name Latencia MailRefmodule_exec perl "C:\Users\Pandora\Desktop\check_exchange_outlook.pl" "[email protected]" "Bandeja de entrada" "MailRef" interval 900module_end

A second example could use the only_check plugin function:

module_beginmodule_type generic_datamodule_name Check MailRefmodule_exec perl "C:\Users\Pandora\Desktop\check_exchange_outlook.pl" "[email protected]" "Bandeja de entrada" "MailRef" only_checkmodule_end

Page 12