[Nagiosplug-help] check_http problems

Saraj Mohammed saraj.a.mohammed at birmingham.gov.uk
Wed Nov 22 13:04:31 CET 2006


Hi list

Hello All,

id like to request some help as im going round in circles trying
to figuire out what is stopping me from getting check_http to work
within nagios.

i am using:

OS = Fedora Core 5
Nagios 2.5
Nagios Plugins 1.4.3

Nagios is working fine, running various checkes on differnt servers and
services.

when i try to use the Check_Http command it doesnt want to play nice.

i use:

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       WEBSITES
        service_description             CF6 Main System
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              4
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  admins
	notification_options		w,u,c,r
        notification_interval           60
        notification_period             24x7
	check_command			check_http!--onredirect=follow -I 10.100.152.89  -p 8101 -u /cfi/application_store/ -a nagiosadmin:nagios






--onredirect=follow -I 10.100.152.89  -p 8101 -u /cfi/application_store/ -a nagiosadmin:nagios

within my minimal.cfg file, but nagios produces a result of :

"HTTP WARNING: HTTP/1.1 403 Forbidden"


HOWEVER....

when i run the same command from the command line like:

 ./check_http --verbose --onredirect=follow -I 10.100.152.89  -p 8101 -u /cfi/application_store/ -a nagiosadmin:nagios

*adding verbose so i can see the website html output*


i get:

option f:4
GET /cfi/application_store/ HTTP/1.0
User-Agent: check_http/1.89 (nagios-plugins 1.4.3)
Authorization: Basic bmFnaW9zYWRtaW46bmFnaW9z


http://10.100.152.89:8101/cfi/application_store/ is 10050 characters
STATUS: HTTP/1.0 200 OK
**** HEADER ****
Set-Cookie: JSESSIONID=203015e730011e1953c3;path=/
Set-Cookie: CFID=1054841;expires=Fri, 14-Nov-2036 11:36:26 GMT;path=/
Set-Cookie: CFTOKEN=44127130;expires=Fri, 14-Nov-2036 11:36:26 GMT;path=/
Set-Cookie: JSESSIONID=2030870659a55158683f;path=/
Set-Cookie: CFAUTHORIZATION_CFi=;expires=Tue, 22-Nov-2005 11:36:26 GMT;path=/cfi
Set-Cookie: JSESSIONID=;expires=Tue, 22-Nov-2005 11:36:26 GMT;path=/cfi/
Set-Cookie: CFTOKEN=;expires=Tue, 22-Nov-2005 11:36:26 GMT;path=/cfi/
Set-Cookie: CFID=;expires=Tue, 22-Nov-2005 11:36:26 GMT;path=/cfi/
Date: Wed, 22 Nov 2006 11:36:26 GMT
Content-Language: en-GB
Content-Type: text/html; charset=UTF-8
Connection: close
Server: JRun Web Server
**** CONTENT ****

*********missed out lots of html for space saving *************

HTTP OK HTTP/1.0 200 OK - 10050 bytes in 0.252 seconds |time=0.251611s;;;0.000000 size=10050B;;;0





anyone got any ideas as to whats goin on? im completely bamboozled.

thanks in advance.


Saj.



- Saj

-----------------------
The mailing list archive is found here:
http://www.nagiosexchange.org/nagiosplug-help.32.0.html
				




More information about the Help mailing list