New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


My IMAP sensor does not find emails when I check for message date. What can I do?

Votes:

0

Your Vote:

Up

Down

I use the IMAP sensor to check emails from my backup solution. For this purpose I defined a message date check in the sensor settings: if the monitored inbox has not received emails about the backup status within the last few hours, the sensor should show an error.

IMAP Sensor Message Date Check

However, the sensor is in down status even if there are new emails within the time span set as error threshold (for example, within the last 48 hours).

Why does the IMAP sensor ignore new emails? What can I check to get correct IMAP sensor states?

email imap imap-sensor prtg sensor status

Created on Jun 2, 2016 1:45:09 PM by  Gerald Schoch [Paessler Support]

Last change on Sep 22, 2016 9:14:24 AM by  Gerald Schoch [Paessler Support]



1 Reply

Accepted Answer

Votes:

1

Your Vote:

Up

Down

This article applies to PRTG Network Monitor 16.3.26 or later

Message Age Check with the IMAP Sensor

The IMAP sensor provides several options to define a sensor status based on the emails which are in the inbox that you monitor. For example, you can set the sensor status to warning or down if subject or body of a received email contain a certain text (or not). You can also choose the option Only Include Recent Emails (in PRTG version previous to 16.3.26 "Check Last Message Date") and set the sensor to warning or down if there is no matching email in the inbox covered by the defined time span.

This message age check basically works like this: The IMAP sensor retrieves a list of the emails in the inbox. This list is ordered by the timestamp that indicates when an email has been touched the last time. Then the sensor checks the timestamp that indicates when an email has been sent. As soon as the sensor finds an email with a “sent at” timestamp below the error threshold that you have defined, it stops reading the ordered list of emails and ignores all other emails in the list. If there is an email below the warning threshold, the sensor continues analyzing the emails to check for the error threshold.

Troubleshooting

If the IMAP sensor does not show the correct status, please check your sensor configuration first. Make sure your filter and validation settings are defined in a way to find the emails you want to consider. For example, email validation only takes place with the latest email that matches the filters in section Filter Emails in Inbox. If no email is found, the sensor will not perform any email validation. (Note that in PRTG versions previous to 16.3.26, the setting "No Matching Email Behavior" in section "Sensor Behavior" overrides the settings from "Check Last Message Date".)

Also, please use a dedicated IMAP account that is accessed by PRTG only. For example, if some client accesses the inbox (a webmail client can be enough), the “last touched” timestamp may change and so does the order of emails for the IMAP sensor. This can result in an unwanted behavior of the IMAP sensor.

If you can rule out these common error sources, please check the date format of the email timestamps. IMAP delivers the date as string and if the responsible PRTG component cannot read it, the date is interpreted as 1/1/1900. Check the configured date format on the email servers and on the machines which send the emails. An inappropriate setup of the Region and language settings can result in a wrong “sent at” timestamp of the email. Try United States (en-us) if you have issues with the message age check.

For example, a customer reported that a server which sends backup emails had an incorrect region and language setting for non-unicode programs. This resulted in a wrong month for the sent date in the email from the backup solution so that the IMAP sensor could not recognize new emails correctly. Changing to English (United States) has helped.


See Also

Created on Jun 2, 2016 1:49:44 PM by  Gerald Schoch [Paessler Support]

Last change on Sep 22, 2016 9:27:45 AM by  Gerald Schoch [Paessler Support]



Please log in or register to enter your reply.


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.