Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-16-2009, 02:01 PM   #1
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.
Old 10-16-2009, 08:00 PM   #2
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
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, 10:26 AM   #3
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.


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 04:52 PM
nagios check_http with authorization? ncsuapex Linux - Software 5 10-10-2008 10:21 AM
Nagios check_http adams901 Linux - Software 1 10-07-2008 11:55 AM
Nagios - Check_Dummy / Check_Http Brainli Linux - Software 3 10-02-2005 06:09 PM
NAGIOS: Unable to Execute check_http danfig Linux - Newbie 2 12-20-2004 04:53 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:23 PM.

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