check_http -r search for sentence
Posted: Fri Apr 26, 2019 7:20 am
We are successfully reporting on individual words on a web page with the plugin [check_http], but checking for sentences/more than one word is not working.
For example:
./check_http -H <host name> -u "/plugins/servlet/applications/versions-licenses" -w 20 -c 30 --ssl -R "license has expired" -a <user>:<password> -f follow --invert-regex
Do we need some sort of escape character to specify the spaces between each words in -R "license has expired"
Any help or suggestions appreciated.
For example:
./check_http -H <host name> -u "/plugins/servlet/applications/versions-licenses" -w 20 -c 30 --ssl -R "license has expired" -a <user>:<password> -f follow --invert-regex
Do we need some sort of escape character to specify the spaces between each words in -R "license has expired"
Any help or suggestions appreciated.