New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.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


Regex for imap sensor

Votes:

0

Your Vote:

Up

Down

Hi,

I try to use a regex for Acronis Backup email.

In all email subject we have the same sentence :

SHP - RÉSUMÉ DES ALERTES ACTIVÉ Thu Oct 24 06:00:59 2019 (Critique : 0, Erreur : 0, Avertissement : 0) Device:  Plan:

The idea, detect if the count of "Erreur" is more than zero.

So i have try with this regex :

(?=.([Erreur :])+([1-9])).*

But it's doesn't work.

thanks.

email-sensor imap-sensor regex

Created on Oct 24, 2019 12:32:23 PM by  kyoann (10) 1

Last change on Oct 24, 2019 1:41:44 PM by  Birk Guttmann [Paessler Support]



Best Answer

Accepted Answer

Votes:

1

Your Vote:

Up

Down

The following regex should match all mails that contain anything but Erreur : 0:

(Erreur.:.[1-9]{1}\d{0,5})

Let me know if it worked!

Created on Oct 30, 2019 8:15:45 AM by  Stephan Linke [Paessler Support]



3 Replies

Votes:

0

Your Vote:

Up

Down

Any idea ?

thanks

Created on Oct 30, 2019 7:39:10 AM by  kyoann (10) 1



Accepted Answer

Votes:

1

Your Vote:

Up

Down

The following regex should match all mails that contain anything but Erreur : 0:

(Erreur.:.[1-9]{1}\d{0,5})

Let me know if it worked!

Created on Oct 30, 2019 8:15:45 AM by  Stephan Linke [Paessler Support]



Votes:

1

Your Vote:

Up

Down

Thanks, it's work prefectly !!

Created on Oct 31, 2019 8:09:46 AM by  kyoann (10) 1



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.