Why check_http is showing warning alert

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
virtualcdc
Posts: 6
Joined: Thu Feb 27, 2025 2:50 am

Why check_http is showing warning alert

Post 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 ?
virtualcdc
Posts: 6
Joined: Thu Feb 27, 2025 2:50 am

Re: Why check_http is showing warning alert

Post by virtualcdc »

Would you please help me ?
virtualcdc
Posts: 6
Joined: Thu Feb 27, 2025 2:50 am

Re: Why check_http is showing warning alert

Post by virtualcdc »

Would you please help me about it ?
DoubleDoubleA
Posts: 160
Joined: Thu Feb 09, 2017 5:07 pm

Re: Why check_http is showing warning alert

Post 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."
Post Reply