http content check for value error on more than
Posted: Tue Jan 09, 2024 11:13 am
Hi
I am looking for a check that looks at the response from a http check on a webpage and return an error is the content returned is more than a particular value.
At the moment the webpage URL returns a 0 and the I want to only issue a critical if it returns a value of more than 30.
The check_http is okay for erroring if a particular string is not found, but does not help with Warnings or Criticals on the content return.
Any assistance appreciated. My scripting skill are very limited and was hoping for something pre-build.
Thanks
I am looking for a check that looks at the response from a http check on a webpage and return an error is the content returned is more than a particular value.
At the moment the webpage URL returns a 0 and the I want to only issue a critical if it returns a value of more than 30.
The check_http is okay for erroring if a particular string is not found, but does not help with Warnings or Criticals on the content return.
Any assistance appreciated. My scripting skill are very limited and was hoping for something pre-build.
Thanks