Service in Warning state

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.
Locked
Pratapa
Posts: 150
Joined: Tue Oct 01, 2019 1:33 am

Service in Warning state

Post by Pratapa »

Hi,

One of the services is in Warning state. Remote server is Windows server.

We are using Nagios core.

Following is the check command.

check_http -H 10.211.68.12 -u VoiceConsole/login.action?error=true -p 9090

[root@nagios server]#./check_http -H 10.211.68.12 -u VoiceConsole/login.action?error=true -p 9090
HTTP WARNING: HTTP/1.1 400 - 1339 bytes in 0.002 second response time |time=0.002331s;;;0.000000 size=1339B;;;0


I did some troubleshooting.

[root@nagios server]# ./check_nrpe -H 10.211.68.12
Could not construct return paket in NRPE handler check clientside (nsclient.log) logs...

[root@nagios server]# ./check_nrpe -H 10.211.68.12 -2
I (0.3.8.76 2010-05-27) seem to be doing fine...



[root@nagios server]# ./check_http -H 10.211.68.12 -u VoiceConsole/login.action?error=true -p 9090 -v
GET VoiceConsole/login.action?error=true HTTP/1.1
User-Agent: check_http/v2.2.1 (nagios-plugins 2.2.1)
Connection: close
Host: 10.211.68.12:9090
Accept: */*


http://10.211.68.12:9090VoiceConsole/login.action?error=true is 1339 characters
STATUS: HTTP/1.1 400
**** HEADER ****
vary: accept-encoding
Content-Type: text/html;charset=utf-8
Content-Language: en
Content-Length: 1160
Date: Wed, 04 Mar 2020 10:53:26 GMT
Connection: close
**** CONTENT ****
<!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 400 – Bad Request</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Invalid URI</p><p><b>Description</b> The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).</p><hr class="line" /><h3>Apache Tomcat/9.0.12</h3></body></html>
HTTP WARNING: HTTP/1.1 400 - 1339 bytes in 0.002 second response time |time=0.002452s;;;0.000000 size=1339B;;;0


What could be the problem.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service in Warning state

Post by scottwilkerson »

This looks like the plugin is returning a WARNING because the page is returning a 400 server response which would be expected

you should see the same results with a curl of the URL

Code: Select all

curl "http://10.211.68.12:9090VoiceConsole/login.action?error=true" -vvv
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service in Warning state

Post by scottwilkerson »

Looking at my response I think I see the error, you are missing the leading / in the URI

try

Code: Select all

./check_http -H 10.211.68.12 -u /VoiceConsole/login.action?error=true -p 9090
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Pratapa
Posts: 150
Joined: Tue Oct 01, 2019 1:33 am

Re: Service in Warning state

Post by Pratapa »

I tried this and it is working fine.

./check_http -H 10.211.68.12 -u /VoiceConsole/login.action?error=true -p 9090


Thank you so much for your help.

You may close this thread.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service in Warning state

Post by scottwilkerson »

Pratapa wrote:I tried this and it is working fine.

./check_http -H 10.211.68.12 -u /VoiceConsole/login.action?error=true -p 9090


Thank you so much for your help.

You may close this thread.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked