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

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

Votes:

0

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 will show the Down status.

However, the sensor shows the Down status even if there have been 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 Jan 4, 2023 2:35:48 PM by  Brandy Greger [Paessler Support]



1 Reply

Accepted Answer

Votes:

1

This article applies as of PRTG 22

Message age check with the IMAP sensor

The IMAP sensor provides several options to define a sensor status based on the emails that are in the inbox that you monitor. For example, you can set the sensor status to the Warning or Down status if the subject or body of a received email contains a certain text (or not).

You can also select the option Only Include Recent Emails (in versions previous to PRTG 16.3.26, Check Last Message Date) and set the sensor to the Warning or Down status 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 sorted by the time stamp that indicates when an email was touched the last time. Then the sensor checks the time stamp that indicates when an email was sent. As soon as the sensor finds an email with a “sent at” time stamp below the error threshold that you have defined, it stops reading the sorted 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, check your sensor configuration first. Make sure that 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 does not perform any email validation. (Note that in versions previous to PRTG 16.3.26, the setting No Matching Email Behavior in section Sensor Behavior overrides the settings from Check Last Message Date.)

Also, 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” time stamp 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, check the date format of the email time stamps. IMAP delivers the date as a 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 that send the emails. An inappropriate setup of the Region and language settings can result in a wrong “sent at” time stamp 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 that 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 correctly identify new emails. Changing to English (United States) helped.

More

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

Last change on Dec 29, 2022 12:20:48 PM by  Brandy Greger [Paessler Support]




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.