SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
Pandora FMS
Administrator Manual
IMAP Mail Monitoring
Administrator Manual IMAP Mail Monitoring
© Artica Soluciones Tecnológicas 2005­2013
Indice
1Changelog...........................................................................................................................................3
2Introduction........................................................................................................................................4
3Requirements......................................................................................................................................5
4Compatibility Matrix .........................................................................................................................6
5Modules generated..............................................................................................................................7
6Instalation...........................................................................................................................................8
7Monitoring........................................................................................................................................10
1 CHANGELOG
Date Author Change Version
04/07/13 Mario P. First Version v1r1
Page 3
2 INTRODUCTION
This document describing the email monitoring received from a data filtering.
This plugin perform the following features.
– Monitoring if we get a new mail with filtering that perform (Emitter, Subject, Body text, 
Date Received...)
– We can capture email information we receive. (numeric data or string)
– You have the option of choosing between different mailbox.
– Support SSL
Page 4
3 REQUIREMENTS
The plugin has the requirements to run:
• Have access to our mail server from Pandora server or from other server where you execute
the plugin.
• Have Perl installed on your computer.
• Is needed the perl library Mail::Simple and Mail::IMAPClient and for the proper 
functioning of the plugin.
• In the case of using SSL you should also have the IO::Socket::SSL. These libraries 
can be installed by default, in the case of not having them can be installed using 
cpan.
Page 5
4 COMPATIBILITY MATRIX 
The agent compatibility matrix is the following:
Systems where it has been tested
• Linux ( SUSE, Ubuntu... )
Systems where it should work
• Any system with Perl installed
Page 6
5 MODULES GENERATED
With this plugin you can generate all server modules that you want depending on the filtering
setting and all email accounts as needed.
Page 7
6 INSTALATION
Copy the plugin to the Pandora server plugins directory and perform the following performance:
perl pandora_imap_v1r1.pl -H host [-p port] -U username -P password -s ( FROM | BODY
| SUBJECT | TEXT | YOUNGER | OLDER ) -s 'string'[-m mailbox][ --capture-data XXXX ]
[-d 0][--ssl --ssl-ca-files XXX --tls ][--imap-retries <tries>] [-v X];
To upload it to the server we can do pandora by loading pspz or copying it directly into the server
directory Pandora /usr/share/pandora_server/util/plugin.
The plugin configuration should be this:
Once registered the plugin as shown in the image above, or through the pspz to generate a module
should follow the guidelines that we indicated in the Monitoring section.
Here you can also find a sample configuration of a module. In this case we will return the number
of emails we receive Pandora server for example.
Running the plugin might look like:
  perl   check_imap_receive   ­H   mail.artica.es   ­U   user@artica.es   ­P   pass   ­s   FROM   ­s 
server@pandorafms.com 
Page 8
Module setting in Pandora:
Page 9
7 MONITORING
The plugin aims to monitor emails received through a set of filters that you can set.
Plugin's parameterization:
­H host: This shall include the address of the host where the mail server you want to 
monitor. For example: mail.artica.es. Mandatory parameter.
­p port: Service port on the IMAP server. Default is 143. If you use SSL, default is 993. 
If you need setting a different port, you have to indicate in the call of the plugin
­u user.  We indicate our IMAP mail address. Mandatory parameter.  For example: 
usuario@artica.es
­p password. Password of own account. Mandatory parameter. For configure it from 
the Pandora Console know that this password is encrypted.
­m mailbox. The default mailbox is INBOX. In case you want to look elsewhere should 
be stated. If we dont know the available mailbox, we can run the plugin as follows and will show 
different mailbox that is in our account: 
>perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­m  ­s FROM ­s a ­v 3
Mailbox list: 
INBOX 
INBOX.Trash 
INBOX.old­messages 
INBOX.Drafts 
INBOX.Sent 
­s ( FROM | BODY | SUBJECT | TEXT | YOUNGER | OLDER | ALL ) ­s 'text': These 
are all tokens with which we can perform email filter.
• FROM.­ With this token, we can filter the sender of the email received. Example.
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­s FROM ­s server@pandorafms.com 
Page 10
• SUBJECT.­ Email Subject Filtering. If you receive such a message from a backup made 
that has the subject "Backup daily production X" will make this setting in the call.
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­s SUBJECT ­s “Backup produccion”
• BODY.­ We filter a string of the message body. Example:
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­s BODY ­s “Text example”
We have the ability to link multiple filters such as filter you something of the subject 
and the body of the message at a time, like this:
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­s SUBJECT ­s “Backup produccion”  
­s BODY ­s “Text example”
• TEXT.­ Filtering of any text in the mail, and do not know where it will appear.
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­s TEXT ­s “Text example”.
• YOUNGER.­ Time in seconds that can be defined in the call of the plugin to limit the 
number of messages that will show us the output. This time equates to less than X 
seconds, for example if we want to show the number of emails received in the last hour 
we would do this.
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­s YOUNGER ­s 3600
• OLDER.­ As parameter YOUNGER but in this case when we get the messages received 
over X time. Over an hour.
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­s OLDER ­s 3600
• ALL.­ With this token shows all messages.
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­s ALL
­­capture­data. By this token you can perform another operation remarkable function of 
this plugin is to capture the data we receive in the mail. To do this we use regular expressions in its 
filtering. If for example we received an email with the information from the last backup that was 
made on a machine, and indicates the disk size occupied what we could get in the following way:
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­s SUBJECT ­s “Backup produccion”  
­­capture­data “Backup size: (d+)”
So in this case would have to make generic_data module type.
Page 11
­d 0:  By default the plugin is configured so that each time scan in our email of the 
emails we have, check that has already shown us and the next execution will not take them into 
account and we return 0, if who has not received a new mail that matches the filter set. So by this 
token can configure mails are not marked and so that in each execution all emails show us there in 
our inbox that meet the filter set.
Example:
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass ­d 0 ­s FROM ­s user2@artica.es
­­imap­retries X:  Number of retries to be made in the event that an error occurs in 
contact with the mail server or the scan when the result is 0. The default value is 1. in the case of 
adding   a   high   number,   it   may   be   that   in   the   case   of   errors,   the   execution   time   increases 
significantly.
­­ssl: Enable SSL. Requires IO::Socket::SSL.Using this option automatically changes the 
default port 143­993. You can still replace the command line with the ­ port option.
Use with Gmail:
perl check_imap_receive ­H imap.gmail.com –ssl ­U user@gmail.com ­P pass ­s FROM ­s 
user2@artica.es
­­ ssl­ca­file XXXX: Use this option to verify the SSL certificate to a local file server pem. 
Need to specify the path to the file .pem as a parameter.
Example:
perl check_imap_receive ­H mail.XX.com ­U user@artica.es ­P pass –ssl –imap_ssl_cert cert.pem ­d 0 ­s 
FROM ­s user2@artica.es
­­tls: Enable TLS protocol.
Use with Gmail:
perl check_imap_receive ­H imap.gmail.com –tls ­U user@gmail.com ­P pass ­s FROM ­s 
user2@artica.es
Page 12

Más contenido relacionado

Destacado

Destacado (20)

Pandora FMS: SQL Enterprise PIugin
Pandora FMS: SQL Enterprise PIuginPandora FMS: SQL Enterprise PIugin
Pandora FMS: SQL Enterprise PIugin
 
Pandora FMS: Plugin de monitorización de eventos Fim
Pandora FMS: Plugin de monitorización de eventos FimPandora FMS: Plugin de monitorización de eventos Fim
Pandora FMS: Plugin de monitorización de eventos Fim
 
Pandora FMS: Outlook Anywhere Plugin
Pandora FMS: Outlook Anywhere PluginPandora FMS: Outlook Anywhere Plugin
Pandora FMS: Outlook Anywhere Plugin
 
Pandora FMS: Monitorización de servidor Open LDAP para administradores
Pandora FMS: Monitorización de servidor Open LDAP para administradoresPandora FMS: Monitorización de servidor Open LDAP para administradores
Pandora FMS: Monitorización de servidor Open LDAP para administradores
 
Pandora FMS: ePolicy Orchestrator
Pandora FMS: ePolicy Orchestrator Pandora FMS: ePolicy Orchestrator
Pandora FMS: ePolicy Orchestrator
 
Pandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise PluginPandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise Plugin
 
Pandora FMS: Plugin Enterprise de VMware
Pandora FMS: Plugin Enterprise de VMwarePandora FMS: Plugin Enterprise de VMware
Pandora FMS: Plugin Enterprise de VMware
 
Pandora FMS: Exchange OWA Plugin
Pandora FMS: Exchange OWA PluginPandora FMS: Exchange OWA Plugin
Pandora FMS: Exchange OWA Plugin
 
Pandora FMS: Analizador de logs avanzado
Pandora FMS: Analizador de logs avanzadoPandora FMS: Analizador de logs avanzado
Pandora FMS: Analizador de logs avanzado
 
Pandora FMS: Monitorización básica WMI
Pandora FMS: Monitorización básica WMIPandora FMS: Monitorización básica WMI
Pandora FMS: Monitorización básica WMI
 
Pandora FMS: VMware Enterprise Plugin
Pandora FMS: VMware Enterprise PluginPandora FMS: VMware Enterprise Plugin
Pandora FMS: VMware Enterprise Plugin
 
Pandora FMS: Plugin Enterprise de SQL
Pandora FMS: Plugin Enterprise de SQLPandora FMS: Plugin Enterprise de SQL
Pandora FMS: Plugin Enterprise de SQL
 
Pandora FMS: Apache Tomcat Enterprise Plugin
Pandora FMS: Apache Tomcat Enterprise PluginPandora FMS: Apache Tomcat Enterprise Plugin
Pandora FMS: Apache Tomcat Enterprise Plugin
 
Pandora FMS: Jboss monitoring
Pandora FMS: Jboss monitoring Pandora FMS: Jboss monitoring
Pandora FMS: Jboss monitoring
 
Pandora FMS: Plugin Enterprise de Exchange
Pandora FMS: Plugin Enterprise de ExchangePandora FMS: Plugin Enterprise de Exchange
Pandora FMS: Plugin Enterprise de Exchange
 
Pandora FMS - Selenium Enterprise Plugin
Pandora FMS - Selenium Enterprise PluginPandora FMS - Selenium Enterprise Plugin
Pandora FMS - Selenium Enterprise Plugin
 
Pandora FMS: Plugin enterprise de Oracle
Pandora FMS: Plugin enterprise de OraclePandora FMS: Plugin enterprise de Oracle
Pandora FMS: Plugin enterprise de Oracle
 
Pandora FMS: Informix Plugin
Pandora FMS: Informix PluginPandora FMS: Informix Plugin
Pandora FMS: Informix Plugin
 
Pandora FMS: ePolicy Orchestrator Manual
Pandora FMS: ePolicy Orchestrator ManualPandora FMS: ePolicy Orchestrator Manual
Pandora FMS: ePolicy Orchestrator Manual
 
Pandora FMS: End to End Exchange Plugin
Pandora FMS: End to End Exchange PluginPandora FMS: End to End Exchange Plugin
Pandora FMS: End to End Exchange Plugin
 

Más de Pandora FMS

Más de Pandora FMS (18)

Pandora FMS: Plugin de Raven DB
Pandora FMS: Plugin de Raven DBPandora FMS: Plugin de Raven DB
Pandora FMS: Plugin de Raven DB
 
Pandora FMS: Raven DB Plugin
Pandora FMS: Raven DB PluginPandora FMS: Raven DB Plugin
Pandora FMS: Raven DB Plugin
 
Pandora FMS: Cisco Remote inventory modules
Pandora FMS: Cisco Remote inventory modulesPandora FMS: Cisco Remote inventory modules
Pandora FMS: Cisco Remote inventory modules
 
Pandora FMS: Plugin de exchange de acceso de web
Pandora FMS: Plugin de exchange de acceso  de web Pandora FMS: Plugin de exchange de acceso  de web
Pandora FMS: Plugin de exchange de acceso de web
 
Pandora FMS: Exchange Enterprise plugin
Pandora FMS: Exchange Enterprise pluginPandora FMS: Exchange Enterprise plugin
Pandora FMS: Exchange Enterprise plugin
 
Pandora FMS: Plugin de monitorización de cliente de Exchage
Pandora FMS: Plugin de monitorización de cliente de ExchagePandora FMS: Plugin de monitorización de cliente de Exchage
Pandora FMS: Plugin de monitorización de cliente de Exchage
 
Pandora FMS: Monitorización de Blackberry Exchange
Pandora FMS: Monitorización de Blackberry ExchangePandora FMS: Monitorización de Blackberry Exchange
Pandora FMS: Monitorización de Blackberry Exchange
 
Pandora FMS: Blackberry Exchange Monitoring
Pandora FMS: Blackberry Exchange MonitoringPandora FMS: Blackberry Exchange Monitoring
Pandora FMS: Blackberry Exchange Monitoring
 
Pandora FMS: Plugin de Exchange ActivSync
Pandora FMS: Plugin de Exchange ActivSyncPandora FMS: Plugin de Exchange ActivSync
Pandora FMS: Plugin de Exchange ActivSync
 
Pandora FMS: Exchange ActivSync Plugin
Pandora FMS: Exchange ActivSync PluginPandora FMS: Exchange ActivSync Plugin
Pandora FMS: Exchange ActivSync Plugin
 
Pandora FMS: Plugin de monitorización de Hyper V
Pandora FMS: Plugin de monitorización de Hyper VPandora FMS: Plugin de monitorización de Hyper V
Pandora FMS: Plugin de monitorización de Hyper V
 
Pandora FMS: Plugin de correo Imap
Pandora FMS: Plugin de correo ImapPandora FMS: Plugin de correo Imap
Pandora FMS: Plugin de correo Imap
 
Pandora FMS: PostgreSQL Plugin
Pandora FMS: PostgreSQL PluginPandora FMS: PostgreSQL Plugin
Pandora FMS: PostgreSQL Plugin
 
Pandora FMS: Monitorización de servidores MySQL
Pandora FMS: Monitorización de servidores MySQLPandora FMS: Monitorización de servidores MySQL
Pandora FMS: Monitorización de servidores MySQL
 
Pandora FMS: Mysql Server Monitoring
Pandora FMS: Mysql Server MonitoringPandora FMS: Mysql Server Monitoring
Pandora FMS: Mysql Server Monitoring
 
Pandora FMS: MongoDB plugin
Pandora FMS: MongoDB pluginPandora FMS: MongoDB plugin
Pandora FMS: MongoDB plugin
 
Pandora FMS: Plugin Enterprise de monitorización de servidor DB2
Pandora FMS: Plugin Enterprise de monitorización de servidor DB2Pandora FMS: Plugin Enterprise de monitorización de servidor DB2
Pandora FMS: Plugin Enterprise de monitorización de servidor DB2
 
Pandora FMS:Cassandra Plugin
Pandora FMS:Cassandra PluginPandora FMS:Cassandra Plugin
Pandora FMS:Cassandra Plugin
 

Último

AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
Alluxio, Inc.
 
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
mbmh111980
 
JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)
Max Lee
 

Último (20)

Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
Facemoji Keyboard released its 2023 State of Emoji report, outlining the most...
 
KLARNA - Language Models and Knowledge Graphs: A Systems Approach
KLARNA -  Language Models and Knowledge Graphs: A Systems ApproachKLARNA -  Language Models and Knowledge Graphs: A Systems Approach
KLARNA - Language Models and Knowledge Graphs: A Systems Approach
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
AI Hackathon.pptx
AI                        Hackathon.pptxAI                        Hackathon.pptx
AI Hackathon.pptx
 
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
Tree in the Forest - Managing Details in BDD Scenarios (live2test 2024)
 
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product UpdatesGraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
GraphSummit Stockholm - Neo4j - Knowledge Graphs and Product Updates
 
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
 
Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024
 
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdfImplementing KPIs and Right Metrics for Agile Delivery Teams.pdf
Implementing KPIs and Right Metrics for Agile Delivery Teams.pdf
 
How to install and activate eGrabber JobGrabber
How to install and activate eGrabber JobGrabberHow to install and activate eGrabber JobGrabber
How to install and activate eGrabber JobGrabber
 
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
 
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
 
Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024Secure Software Ecosystem Teqnation 2024
Secure Software Ecosystem Teqnation 2024
 
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdfMastering Windows 7 A Comprehensive Guide for Power Users .pdf
Mastering Windows 7 A Comprehensive Guide for Power Users .pdf
 
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdfMicrosoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
Microsoft 365 Copilot; An AI tool changing the world of work _PDF.pdf
 
OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024OpenChain @ LF Japan Executive Briefing - May 2024
OpenChain @ LF Japan Executive Briefing - May 2024
 
JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)JustNaik Solution Deck (stage bus sector)
JustNaik Solution Deck (stage bus sector)
 
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdfA Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
 
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
Entropy, Software Quality, and Innovation (presented at Princeton Plasma Phys...
 
Crafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM IntegrationCrafting the Perfect Measurement Sheet with PLM Integration
Crafting the Perfect Measurement Sheet with PLM Integration
 

Pandora FMS: Imap Mail Plugin