LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-16-2009, 01:01 PM   #1
cluckinchicken
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
Nagios: check_http from CLI works, but...


when Nagios calls it, not so much.

My command from the command line is as follows:

./check_http -H <website> -S -t 15 -w 5 -c 10 -f follow

Result: HTTP OK HTTP/1.1 200 OK - 5124 bytes in 0.690 seconds |time=0.689690s;5.000000;10.000000;0.000000 size=5124B;;;0

When Nagios calls it, it results in a Warning state:

Result: HTTP WARNING: HTTP/1.1 403 Forbidden

Anybody have any ideas?

Thanks ya'alls.
cluckinchicken
 
Old 10-16-2009, 07:00 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
Is it possible that you are using different values for <website>?
If you have virtual hosts set up, you might get different results
depending on the hostname that you use.
 
Old 10-19-2009, 09:26 AM   #3
cluckinchicken
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I did get it worked out. This was working fine in my v2.11 environment with the commands that I had. Basically I put all my arguments in the commands def, rather than in my service def...except -H <website>. Same command though. Thanks for your reply carltm.
 
  


Reply

Tags
check, http, nagios


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios-Only Custom notification works... generaldaze Linux - Server 1 04-23-2009 03:52 PM
nagios check_http with authorization? ncsuapex Linux - Software 5 10-10-2008 09:21 AM
Nagios check_http adams901 Linux - Software 1 10-07-2008 10:55 AM
Nagios - Check_Dummy / Check_Http Brainli Linux - Software 3 10-02-2005 05:09 PM
NAGIOS: Unable to Execute check_http danfig Linux - Newbie 2 12-20-2004 03:53 PM


All times are GMT -5. The time now is 09:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration