Page 1 of 1

Why check_http is showing warning alert

Posted: Mon Mar 10, 2025 10:39 am
by virtualcdc
I am using follow

Code: Select all

define service{
        use                     local-service
        host_name               credit
        service_description     Admin URL
        servicegroups           TS
        check_command           check_nrpe!check_http!'-I localhost -w 8 -c 10 -p 8580 -u /login/'
        }

but it is showing follow warning in nagios

HTTP WARNING: HTTP/1.1 404 - 664 bytes in 0.005 second response time

How can change threshold ? I changes -w and -c variables but it is still showing the warning error .
How can solve it ?

Re: Why check_http is showing warning alert

Posted: Mon Mar 10, 2025 3:57 pm
by virtualcdc
Would you please help me ?

Re: Why check_http is showing warning alert

Posted: Thu Mar 13, 2025 1:47 am
by virtualcdc
Would you please help me about it ?

Re: Why check_http is showing warning alert

Posted: Thu Mar 13, 2025 8:40 am
by DoubleDoubleA
The warning appears to be because the response is a 404, and not because it exceeded the timeout.

https://nagios-plugins.org/doc/man/check_http.html

"Successful connects, but incorrect response messages from the host result in STATE_WARNING return values."