Hi everyone,
I want to catch those strings : Server configuration error and NOQUEUE on a log file.
Here is my item (set as Active Check) :
According to regexp testers (such as regex101.com or regexr.com) this should work.
However, the item doesn't catches anything (nothing in Latest data). Example :
The item is not in red, so it's probably not a syntax problem.
I admit this is getting me crazy...
I want to catch those strings : Server configuration error and NOQUEUE on a log file.
Here is my item (set as Active Check) :
Code:
log[/var/log/mail.log,"(?=.*Server configuration error)(?=.*NOQUEUE).*",,,,]
However, the item doesn't catches anything (nothing in Latest data). Example :
Code:
echo "Server configuration error NOQUEUE" >> /var/log/mail.log
I admit this is getting me crazy...
Comment