check_http warning

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
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

check_http warning

Post by rlinux57 »

Getting critical notification:

HTTP CRITICAL: HTTP/1.1 500 Internal Server Error - 864 bytes in 0.005 second response time

How to resolve it. ?
I've manually check it. it seems to be ok.
HTTP OK: HTTP/1.1 200 OK - 348 bytes in 0.002 second response time |time=0.001759s;5.000000;15.000000;0.000000 size=348B;;;0
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: check_http warning

Post by rlinux57 »

I have rotate the logs,restart httpd,restart nagios server and service, restart xinetd, stop iptables. All the possible solutions come into my mind had implemented but the error still same.

Kindly help me....
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_http warning

Post by slansing »

Can you share both your nagios command definition for this service, and the manual command you were running that came through fine? Thanks.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: check_http warning

Post by rlinux57 »

Here's the command i put manually:

command# /usr/lib64/nagios/plugins/check_http -H HOSTNAME
[output]
HTTP OK: HTTP/1.1 200 OK - 348 bytes in 0.002 second response time |time=0.001660s;;;0.000000 size=348B;;;0


Here's the command definition:
# 'check_http' command definition
define command{
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ -t 20
}

I'm using this command definition without timeout "-t 20" but no effect take place.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_http warning

Post by Box293 »

Your test and command use two different arguments.

Your manual test uses -H
-H, --hostname=ADDRESS
Host name argument for servers using host headers (virtual host)
Append a port to include it in the header (eg: example.com:5000)

Your command uses -I
-I, --IP-address=ADDRESS
IP address or name (use numeric address if possible to bypass DNS lookup).

Also, you've given us the command, but not the service definition so we don't know what is in your $ARG1$ field
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: check_http warning

Post by rlinux57 »

Wow that's the great, it seems to be a minor changes but the issue is resolved. :)
But we were using it with "-I" since the server was first configured.
Thanks for your cooperation.
Locked