check_Http:Multiple Regex Patterns
Posted: Thu Sep 23, 2021 11:43 am
Hi,
We currently use check_http to do a invert regex pattern:
Current check is:
However, recently I have been informed by our dev team that sometimes, when the connection drops, the page gets redirected and there is a different message that pops up with information as 'Configuration Error'.
Is it possible to add an OR field in the regex search, where it searches for 'Cannot' OR 'Configuration Error' and if it finds either record, raises a CRITICAL alarm (considering it is a invert regex search)?
We currently use check_http to do a invert regex pattern:
Current check is:
Code: Select all
-u "/mypath/serverstatus" -S --sni -w 30 -c 60 -r Cannot --invert-regexIs it possible to add an OR field in the regex search, where it searches for 'Cannot' OR 'Configuration Error' and if it finds either record, raises a CRITICAL alarm (considering it is a invert regex search)?