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 Sensor search for multiple keywords

Votes:

0

Hi all

Does anybody know if its possible in the IMAP Sensor to search for multiple keywords? I use the IMAP Sensor for checking if our backup was successful. The mails go into a specific mailbox and if any email has the subject ERROR the sensor turns red. Now there is a possibility that the email could have the keywords WARNING in the subject as well. Do I have to create an additional sensor, or is it possible to search for keyword WARNING "or" ERROR?

regards Thomas

imap-sensor keyword search

Created on Aug 24, 2015 8:01:14 AM



5 Replies

Votes:

0

You could use the regular expression check option for the various mail fields in the IMAP sensor. The following example will search the subject for warning or error: (warning|error)/i

Created on Aug 25, 2015 7:04:56 AM by  Stephan Linke [Paessler Support]



Votes:

0

Ah I see, ok regular expression it is then. But I had to use \b(error|warning)\b

regards Thomas

Created on Aug 25, 2015 8:06:31 AM



Votes:

0

Okay then, riddle solved :)

Created on Aug 25, 2015 8:16:21 AM by  Stephan Linke [Paessler Support]



Votes:

0

I hoped to use it without regular expressions...I hate them. Before I can understand regular expressions, I have to understand regular expressions....

Created on Aug 25, 2015 8:31:24 AM



Votes:

0

There are two kinds of users here:

  • Users who know regex but don't want to use it
  • Users who don't know regex and don't need it

:)

Created on Aug 25, 2015 8:44:22 AM by  Stephan Linke [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.