What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

imap email body matching

Votes:

0

I'm trying to scan my backup emails to see if they were successful. I have had success using the imap sensor and scanning the subject for certain words. However, when I try to scan the 'body' for certain words, it never finds the words even when they are most certainly contained within the email.

For example: Email subject: Alert Notification Email body contains phrase: Backup Operation Successful

I have the imap sensor set to identify by Subject Field: Alert Notification (which it successfully identifies) and the Set to Alarm If mail body does not contain: Backup Operation Successful

I even have a special error message 'Search text not found' that should appear if the body does not contain the specified text.

When the sensor runs, it fails saying 'Search text not found' but the email DOES have the text 'Backup Operation Successful' in the message.

What can the problem be? I'm using a basic 'String search' and the text is an exact match. I even tried searching the body for 'e' which is obviously in the message, but that still fails.

It seems body search does work for me but subject is fine. Does anyone know what the problem might be?

e-mail-body error imap

Created on Dec 26, 2013 6:15:00 PM



4 Replies

Votes:

0

Hello,

thank you very much for your KB-Post. May I ask, which exact version of PRTG are you using?

best regards

Created on Dec 27, 2013 10:43:43 AM by  Torsten Lindner [Paessler Support]



Votes:

0

Our version is: 13.1.1.1182 x64. I didn't see it as a known issue in any version, but if it is known to be fixed in a newer version, we may upgrade sooner.

Created on Dec 27, 2013 2:35:58 PM



Votes:

0

Please update to the current version 13.4.7 first, we recently fixed an issue with the IMAP Sensor on multi-part emails (most likely listed as "minor fix" in the version history).

Created on Dec 27, 2013 2:40:51 PM by  Torsten Lindner [Paessler Support]



Votes:

0

We upgraded to 13.4.7.3706 x64 and our problem still exists.

I have also tried to setup a filecontent sensor, and it also cannot find strings that ARE in the file.

Interestingly, I have a similar email content sensor that DOES work correctly. It seems to be something with the email that causes the sensor to not scan correctly. Is there a certain structure emails must conform to for these sensors to work? The one that DOES work contains an email footer, but it doesn't look like this would be required to scan the 'body' of the email.

The email I'm trying to scan looks like: From: [email protected] [mailto:[email protected]] Sent: Wednesday, January 8, 2014 2:02 AM To: Oncall - Support Subject: Alert Notification

OTCAD1: [JobID:3218 AD LDS Backup - New] Backup Operation Successful.

And the sensor is set to 'fail if body does not contain': Backup Operation Successful The error thrown in this case will be: Search Text not Found

Each time it scans it fails with the error 'Search Text not Found' which should not be causing the failure.

If I change the sensor to scan for things in the subject, everything works perfectly, but in this case, we don't have the pass/fail criteria in the subject, so we need to scan the body.

Does anyone know why the email body scanning doesn't seem to work in my case? Any help would be appreciated. I assume our problem with the file content sensor is related as well.

Created on Jan 8, 2014 2:29:40 PM




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.