[Nagios-users] check_http not returning expected 502

2008-12-07 Thread jimj
Hello,

I've got nagios installed and seems to be running ok except for one thing. I'm 
running https checks with check_http and get the expected result when I run 
it on the command line:

./check_http -H somehost.com -S

HTTP CRITICAL: HTTP/1.1 502 Bad Gateway


But in the UI its giving me:

HTTP OK HTTP/1.1 200 OK

My config runs it like this:

check_command   check_http!-S -t 30

Anybody have any ideas?

Thanks,
Jim


  

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http not returning expected 502

2008-12-07 Thread Mark Elsen
 Hello,

 I've got nagios installed and seems to be running ok except for one thing. 
 I'm running https checks with check_http and get the expected result when I 
 run it on the command line:

 ./check_http -H somehost.com -S

 HTTP CRITICAL: HTTP/1.1 502 Bad Gateway


 But in the UI its giving me:

 HTTP OK HTTP/1.1 200 OK

 My config runs it like this:

 check_command   check_http!-S -t 30

 Anybody have any ideas?

 Check your webserver's log file, in both case. Turn on full logging,
including request headers.

 Compare the output, may be indicative.

 M.

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http not returning expected 502

2008-12-07 Thread Marc Powell

On Dec 7, 2008, at 11:04 AM, jimj wrote:

 Hello,

 I've got nagios installed and seems to be running ok except for one  
 thing. I'm running https checks with check_http and get the  
 expected result when I run it on the command line:

 ./check_http -H somehost.com -S

 HTTP CRITICAL: HTTP/1.1 502 Bad Gateway


 But in the UI its giving me:

 HTTP OK HTTP/1.1 200 OK

 My config runs it like this:

 check_command   check_http!-S -t 30

 Anybody have any ideas?


The command line that nagios is actually executing comes from the  
check_http command{} definition. Is it the same as your test above  
with the $ARG1$ substitution? Based on what you've shown so far,  
there's already a minor difference...

--
Marc


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http not returning expected 502

2008-12-07 Thread Hugo van der Kooij
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

jimj wrote:

 I've got nagios installed and seems to be running ok except for one thing. 
 I'm running https checks with check_http and get the expected result when I 
 run it on the command line:
 
 ./check_http -H somehost.com -S
 
 HTTP CRITICAL: HTTP/1.1 502 Bad Gateway
 
 
 But in the UI its giving me:
 
 HTTP OK HTTP/1.1 200 OK
 
 My config runs it like this:
 
 check_command   check_http!-S -t 30

This will not work as you expect. There must be plenty of samples in the
mailinglist archives to show you how it can done.

But to add one more to the archives:

define command{
command_namecheck_https_credentials
command_line$USER1$/check_http -H $HOSTADDRESS$ -S -a $ARG1$
}

define service{
use waakhond.net-service
host_name   https_with_login-server
service_description HTTPS
check_command
check_https_credentials!user:password
contact_groups  customers
}

I always will advocate to add your own check_http like commands and use
them in your services.

Hugo.

- --
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

A: Yes.
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

Nid wyf yn y swyddfa ar hyn o bryd. Anfonwch unrhyw waith i'w gyfieithu.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFJPFQEBvzDRVjxmYERAkG8AJ9ad5+Dx6QdGvIvLWH6ZAo3bRNYUQCggK8g
MM/ZrbI+2AMlraWjdb3G7+8=
=0rc6
-END PGP SIGNATURE-

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http not returning expected 502

2008-12-07 Thread jimj
Thanks Hugo, I see how I mis-configured it now. I appreciate the response!

Jim


--- On Sun, 12/7/08, Hugo van der Kooij [EMAIL PROTECTED] wrote:

 From: Hugo van der Kooij [EMAIL PROTECTED]
 Subject: Re: [Nagios-users] check_http not returning expected 502
 To: Nagios Users Mailinglist nagios-users@lists.sourceforge.net
 Date: Sunday, December 7, 2008, 2:53 PM
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 jimj wrote:
 
  I've got nagios installed and seems to be running
 ok except for one thing. I'm running https checks with
 check_http and get the expected result when I
 run it on the command line:
  
  ./check_http -H somehost.com -S
  
  HTTP CRITICAL: HTTP/1.1 502 Bad Gateway
  
  
  But in the UI its giving me:
  
  HTTP OK HTTP/1.1 200 OK
  
  My config runs it like this:
  
  check_command   check_http!-S -t 30
 
 This will not work as you expect. There must be plenty of
 samples in the
 mailinglist archives to show you how it can done.
 
 But to add one more to the archives:
 
 define command{
 command_namecheck_https_credentials
 command_line$USER1$/check_http -H $HOSTADDRESS$
 -S -a $ARG1$
 }
 
 define service{
 use
 waakhond.net-service
 host_name  
 https_with_login-server
 service_description HTTPS
 check_command
 check_https_credentials!user:password
 contact_groups  customers
 }
 
 I always will advocate to add your own check_http like
 commands and use
 them in your services.
 
 Hugo.
 
 - --
 [EMAIL PROTECTED]  
 http://hugo.vanderkooij.org/
 PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
 
   A: Yes.
   Q: Are you sure?
   A: Because it reverses the logical flow of
 conversation.
   Q: Why is top posting frowned upon?
 
 Bored? Click on http://spamornot.org/ and rate those
 images.
 
 Nid wyf yn y swyddfa ar hyn o bryd. Anfonwch unrhyw waith
 i'w gyfieithu.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (GNU/Linux)
 Comment: Using GnuPG with Fedora -
 http://enigmail.mozdev.org
 
 iD8DBQFJPFQEBvzDRVjxmYERAkG8AJ9ad5+Dx6QdGvIvLWH6ZAo3bRNYUQCggK8g
 MM/ZrbI+2AMlraWjdb3G7+8=
 =0rc6
 -END PGP SIGNATURE-
 
 --
 SF.Net email is Sponsored by MIX09, March 18-20, 2009 in
 Las Vegas, Nevada.
 The future of the web can't happen without you.  Join
 us at MIX09 to help
 pave the way to the Next Web now. Learn more and register
 at
 http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and
 OS when reporting any issue. 
 ::: Messages without supporting info will risk being sent
 to /dev/null


  

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] AUTO: Eliot Picken is out of the office (returning 11/12/2008)

2008-12-07 Thread Eliot . Picken

I am out of the office until 11/12/2008.

I am currently out of the office, returning Thursday 11th December

During this time my email and mobile will be checked occasionally.  For
urgent issues, please contact Alex Lawrie on +44 (0) 1224 894 000

Best regards

Eliot





Note: This is an automated response to your message  Re: [Nagios-users]
check_http not returning expected 502 sent on 12/7/2008 10:53:58 PM.

This is the only notification you will receive while this person is away.


 Important Note:  This message contains confidential information which is 
intended to be recevied by the addressee only.   We acknowledge that e-mail is 
not an entirely secure medium of communication and you should be aware of this 
when replying.  If you have received this email in error, please advise the 
sender of this at the earliest opportunity.  We take all reasonable steps to 
ensure this email is free from any malicious content, but cannot provide any 
guarantee that this is the case.  The company's  email and internet traffic is 
also monitored under the provisions of the Regulation of Investigatory Powers 
Act 2000. Wenaas UK Ltd is a limited company registered in Scotland, under 
company number 62062. Registered Office : Unit 1 Hareness Circle, Altens, 
Aberdeen, AB12 3LY, United Kingdom 

   
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Regarding Alert History.

2008-12-07 Thread Gaurav Ghimire
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dear all,

I wanna know more about the Nagios Alert History. What does it log? Is it only 
that it logs the downtimes and their corresponding uptimes? OR it
logs everything.
The case is in my nagios installation. I can see only the history for today. 
Once I try to see the same for the earlier days. It says that no
information was found in the log files. And I think that this mustn't be the 
case.I should be seeing any information collected for the host in
the period of time.

Regards,

Gaurav
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkk8we8ACgkQnfv7imVnL2vlLACeOdHXmbo+iZCDs8hACb8t7Raz
f6IAoJwUlQuPS4CrByuFhdWEOyA3H48F
=k+Nh
-END PGP SIGNATURE-

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null