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


IMAP Sensor search for multiple keywords

Votes:

0

Your Vote:

Up

Down

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 by  Thomas Umbricht (2,818) 3 3



5 Replies

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

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 by  Thomas Umbricht (2,818) 3 3



Votes:

0

Your Vote:

Up

Down

Okay then, riddle solved :)

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



Votes:

0

Your Vote:

Up

Down

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 by  Thomas Umbricht (2,818) 3 3



Votes:

0

Your Vote:

Up

Down

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]



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.