Page 1 of 1

http content check for value error on more than

Posted: Tue Jan 09, 2024 11:13 am
by jdk
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

Re: http content check for value error on more than

Posted: Tue Jan 09, 2024 1:57 pm
by jsimon
Hi @jdk,

I was able to find this plugin on the Nagios Exchange, which seems like it might be workable for you:

https://exchange.nagios.org/directory/P ... py/details

Please keep the following information in mind when using content from Nagios Exchange: https://exchange.nagios.org/about/

Re: http content check for value error on more than

Posted: Wed Jan 10, 2024 3:20 am
by jdk
Thanks for this, I will take a look