nagios-nrpe: check_amavis: Update regex #104

Closed
benpro wants to merge 0 commits from nagios-nrpe-amavis-update into unstable
Contributor

I just installed a Debian Stretch with a pack mail and the check_amavis
was not checking the right regex.

Amavis is returning:
2.7.0 Ok, discarded, id=17556-09 - INFECTED: Eicar-Signature
So the regex should be:

-if ($result =~/2.7.0 Ok, discarded, id=[^,]+ - INFECTED: Eicar-Test-Signature/) {
+if ($result =~/2.7.0 Ok, discarded, id=\S+ - INFECTED: Eicar-Signature/) {
I just installed a Debian Stretch with a pack mail and the check_amavis was not checking the right regex. Amavis is returning: ```2.7.0 Ok, discarded, id=17556-09 - INFECTED: Eicar-Signature``` So the regex should be: ``` -if ($result =~/2.7.0 Ok, discarded, id=[^,]+ - INFECTED: Eicar-Test-Signature/) { +if ($result =~/2.7.0 Ok, discarded, id=\S+ - INFECTED: Eicar-Signature/) { ```
jlecour closed this pull request 2020-08-21 13:16:18 +02:00
Owner

merged in unstable

merged in unstable
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: evolix/ansible-roles#104
No description provided.