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

Regex for imap sensor

Votes:

0

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

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



Best Answer

Accepted Answer

Votes:

1

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

Any idea ?

thanks

Created on Oct 30, 2019 7:39:10 AM



Accepted Answer

Votes:

1

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

Thanks, it's work prefectly !!

Created on Oct 31, 2019 8:09:46 AM




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.