[Nagios-users] check_http SSL cert. date format

2013-08-17 Thread Niall O Broin
Making the date format for check_http --ssl configurable has been requested for quite a while now, but it hasn't seemed to bother any committers enough to ever fix it. I fixed it a while ago on my local copy of check_http (didn't make it configurable - just hard coded what I wanted in place of

Re: [Nagios-users] check_http SSL cert. date format

2013-08-17 Thread William Leibzon
If you clone nagios-plugins then simply do pull request from a clean copy. Otherwise send a patch to this mail list and I'll commit it being as I'm the last one to work on certificate certificate check for check_http. On Sat, Aug 17, 2013 at 11:37 AM, Niall O Broin ni...@makalumedia.comwrote:

[Nagios-users] check_http with regex on redirects

2013-08-02 Thread james
We were using an old version of check_http, 1.4.10, to look for the regex '/html' on our sites using check_http. Recently we upgraded to a different server (from centos to ubuntu) and re-installed nagios using the package system. Now we are at version 1.4.15 of check_http and this no longer

Re: [Nagios-users] check_http with regex on redirects

2013-08-02 Thread Justin T Pryzby
Try -f follow ? justinp@cerberus:~$ /usr/lib/nagios/plugins/check_http -h |grep -- -f [-b proxy_auth] [-f ok|warning|critcal|follow|sticky|stickyport] -f, --onredirect=ok|warning|critical|follow|sticky|stickyport On Fri, Aug 02, 2013 at 03:13:41PM -0400, james wrote: We were using an

Re: [Nagios-users] check_http with regex on redirects

2013-08-02 Thread james
Try -f follow ? justinp@cerberus:~$ /usr/lib/nagios/plugins/check_http -h |grep -- -f [-b proxy_auth] [-f ok|warning|critcal|follow|sticky|stickyport] -f, --onredirect=ok|warning|critical|follow|sticky|stickyport Looks like that will work, thank you!

Re: [Nagios-users] check_http with spaces problem

2013-05-09 Thread Claudio Kuenzler
Sun May 5 22:29:03 EEST 2013 /usr/lib64/nagios/plugins/check_http -H granma.gr -u http://granma.gr/index.html -R Web -w 10 -c 20 Name or service not known HTTP CRITICAL - Unable to open TCP socket You have to break up the -u argument. -u expects the path, not the complete URI. So in this

Re: [Nagios-users] check_http with spaces problem

2013-05-09 Thread Κοκμάδης Δημήτριος
Thank you for the answer, The problem doesn't seem to be at the url but at the -R option If I use -R Web the response is ok but if i use -R Web somethin it returns error! 2013/5/9 Claudio Kuenzler c...@claudiokuenzler.com Sun May 5 22:29:03 EEST 2013 /usr/lib64/nagios/plugins/check_http -H

Re: [Nagios-users] check_http with spaces problem

2013-05-09 Thread Claudio Kuenzler
If I use -R Web the response is ok but if i use -R Web somethin it returns error! Because the pattern needs to exist in the source code. ./check_http -H granma.gr -u /index.html -R Web somethin HTTP CRITICAL: HTTP/1.1 200 OK - pattern not found - 4342 bytes in 0.126 second response time

[Nagios-users] check_http with spaces problem

2013-05-05 Thread Κοκμάδης Δημήτριος
Hi, I am trying to check multiple http sites, so i configure a bash script which create the service definition but i faced a problem when the expected string has spaces. So the command definition is like: $USER1$/check_http -H $ARG1$ -s $ARG2$ -w 10 -c 20 if i pass an $ARG2$ without spaces

Re: [Nagios-users] check_http with spaces problem

2013-05-05 Thread Sunil Sankar
Please put it within quotes , that should help On Sun, May 5, 2013 at 8:53 PM, Κοκμάδης Δημήτριος dkokma...@gmail.comwrote: Hi, I am trying to check multiple http sites, so i configure a bash script which create the service definition but i faced a problem when the expected string has

Re: [Nagios-users] check_http with spaces problem

2013-05-05 Thread Páll Guðjón Sigurðsson
$_SERVICE_RESPONSE_WARNING$ -c $_SERVICE_RESPONSE_CRITICAL$ command_name okc-check_http } - Original Message - From: Κοκμάδης Δημήτριος dkokma...@gmail.com To: nagios-users@lists.sourceforge.net Sent: Sunday, May 5, 2013 3:23:02 PM Subject: [Nagios-users] check_http with spaces

Re: [Nagios-users] check_http with spaces problem

2013-05-05 Thread Κοκμάδης Δημήτριος
...@gmail.com To: nagios-users@lists.sourceforge.net Sent: Sunday, May 5, 2013 3:23:02 PM Subject: [Nagios-users] check_http with spaces problem Hi, I am trying to check multiple http sites, so i configure a bash script which create the service definition but i faced a problem when the expected

[Nagios-users] check_http --sni not working in nagios plugins 1.4.16

2013-03-21 Thread Justin Garrison
I am running Nagios Core 3.2.3 on RHEL 5.6 and cannot get certificate checking working for my SNI enabled web servers. Every time I check the certificate it only returns the host certificate instead of the vhost certificate. Is there documentation that lists what is required on the Nagios host to

[Nagios-users] check_http --sni not working in nagios plugins 1.4.16

2013-03-21 Thread Justin Garrison
I am running Nagios Core 3.2.3 on RHEL 5.6 and cannot get certificate checking working for my SNI enabled web servers. Every time I check the certificate it only returns the host certificate instead of the vhost certificate. Is there documentation that lists what is required on the Nagios host to

[Nagios-users] check_http fails on Cisco ASA

2013-01-31 Thread Frank Bulk
Does anyone have check_http working against the SSL VPN GUI interface of a Cisco ASA? Whenever I check it always closes, but wget and curl work fine: = nagios:/usr/lib/nagios/plugins# ./check_http -H ip -S -v GET / HTTP/1.1 User-Agent:

Re: [Nagios-users] check_http fails on Cisco ASA

2013-01-31 Thread Travis Runyard
Have you tried check_http -I ip -S The -H is for hostnames On Thu, Jan 31, 2013 at 8:35 PM, Frank Bulk frnk...@iname.com wrote: Does anyone have check_http working against the SSL VPN GUI interface of a Cisco ASA? Whenever I check it always closes, but wget and curl work fine:

Re: [Nagios-users] check_http fails on Cisco ASA

2013-01-31 Thread Frank Bulk
That was it – thanks! Frank From: Travis Runyard [mailto:travisruny...@gmail.com] Sent: Thursday, January 31, 2013 11:07 PM To: Nagios Users List Subject: Re: [Nagios-users] check_http fails on Cisco ASA Have you tried check_http -I ip -S The -H is for hostnames On Thu, Jan 31

[Nagios-users] check_http --ssl --sni returning host certificate

2013-01-11 Thread Justin Garrison
I am running red hat 5.6 with nagios core 3.2.3 and plugins 1.4.16 When I run the command check_http --sni --ssl -H apache-vhost.com -f follow -C 8 I get the apache host certificate instead of the vhost certificate The server is on apache 2.2.15 with sni enabled. The proper certificate works

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-22 Thread Claudio Kuenzler
[mailto:pitchf...@ederdrom.de] To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net] Sent: Mon, 19 Nov 2012 18:07:52 +0100 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK Your example /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-20 Thread Joerg Linge
@lists.sourceforge.net] Sent: Mon, 19 Nov 2012 18:07:52 +0100 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK Your example /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 is a proxy request! -I = ip address to connect to -H = HTTP/1.1 Host Header

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-20 Thread Travis Runyard
but not the 5xx error ;-) any ideas? Regards, Jaap From: Joerg Linge [mailto:pitchf...@ederdrom.de] To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net] Sent: Mon, 19 Nov 2012 18:07:52 +0100 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK Your

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-19 Thread Jaap van Arragon
Hello, Does anyone know why it gives me a 200 back? If you need more info, I will gladly provide it ;-) Thank you. Regards, Jaap On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote: Hello, I¹m trying to use the check_http plugin to verify if one of our website is

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-19 Thread Ryan Edwards
You said u are using it like so: Check: /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 Maybe drop the IP address? I dunno, maybe cuz you have both IP and the url its causing problems. Maybe its replying on the IP, but not on the URL your providing. You prob only

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-19 Thread Jaap van Arragon
Thank you for your reply. I¹ve tried the check without the ip adress option but it makes no difference. Any other ideas? Thanks. On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote: You said u are using it like so:    Check:    /usr/local/nagios/libexec/check_http -I ip address -u

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-19 Thread Joerg Linge
Your example /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 is a proxy request! -I = ip address to connect to -H = HTTP/1.1 Host Header -u = relative url to fetch without protocol infos like http:// some examples check nagios.org OMD[gearman]:~/lib/nagios/plugins$

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-19 Thread Jaap van Arragon
-users] Check_http status 503 gives 200 OK Your example /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 is a proxy request! -I = ip address to connect to -H = HTTP/1.1 Host Header -u = relative url to fetch without protocol infos like http:// some

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-19 Thread Joerg Linge
[mailto:pitchf...@ederdrom.de] To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net] Sent: Mon, 19 Nov 2012 18:07:52 +0100 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK Your example /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-19 Thread Jaap van Arragon
: Joerg Linge [mailto:pitchf...@ederdrom.de] To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net] Sent: Mon, 19 Nov 2012 18:07:52 +0100 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK Your example /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1

[Nagios-users] Check_http status 503 gives 200 OK

2012-11-16 Thread Jaap van Arragon
Hello, I¹m trying to use the check_http plugin to verify if one of our website is available. When I check our website it gives me a 200 OK status code back even when the website isn¹t available en the URL gives me a 503 status code through the browser. After some searching I came across the

[Nagios-users] check_http throwing 141 exit on ssl error

2012-09-14 Thread Mike Lindsey
I'm typically used to seeing this kind of error code for a missing plugin, but I've got a device that is accepting tcp connections and then due to a local misconfiguration, immediately closing them. But rather than a normal critical I'm getting: (Return code of 141 is out of bounds) When run

Re: [Nagios-users] check_http throwing 141 exit on ssl error

2012-09-14 Thread Justin T Pryzby
This may be unrelated to the question of why it's exiting with a nonstandard, out of range exit status, but is port 83 really HTTP over SSL? It seems as if the plugin sent an ssl initiation, and the remote side closed the connection (perhaps because it wasn't ssl?). Later, the plugin tried to

Re: [Nagios-users] check_http throwing 141 exit on ssl error

2012-09-14 Thread Andreas Ericsson
On 09/14/2012 08:09 PM, Mike Lindsey wrote: I'm typically used to seeing this kind of error code for a missing plugin, but I've got a device that is accepting tcp connections and then due to a local misconfiguration, immediately closing them. But rather than a normal critical I'm getting:

Re: [Nagios-users] check_http throwing 141 exit on ssl error

2012-09-14 Thread Mike Lindsey
On 9/14/12 11:25 AM, Justin T Pryzby wrote: This may be unrelated to the question of why it's exiting with a nonstandard, out of range exit status, but is port 83 really HTTP over SSL? It seems as if the plugin sent an ssl initiation, and the remote side closed the connection (perhaps because

[Nagios-users] check_http and self signed certs

2012-08-15 Thread Masoud Tabrizi
All, We are using version 4.1.13 for the check_http for checking our URLs. it seems like the check_http is not able to get through the self signed certs we have installed; Are there any options or suggestions to get around this? thanks in advance Masoud Tabrizi

Re: [Nagios-users] check_http and self signed certs

2012-08-15 Thread Claudio Kuenzler
This should work, also with self-signed certs. Doing this in my Nagios config as well. Whats the check_http command you're launching? What's the error message? On Wed, Aug 15, 2012 at 4:15 PM, Masoud Tabrizi masoud.tabr...@gmail.comwrote: All, We are using version 4.1.13 for the check_http for

Re: [Nagios-users] check_http and self signed certs

2012-08-15 Thread masoud . tabrizi
To: Nagios Users Listnagios-users@lists.sourceforge.net Reply-To: Nagios Users List nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] check_http and self signed certs -- Live Security Virtual Conference

Re: [Nagios-users] check_http and self signed certs

2012-08-15 Thread Claudio Kuenzler
On Wed, Aug 15, 2012 at 5:03 PM, masoud.tabr...@gmail.com wrote: Using -H url -I IP -s string -f follow and -p where applicable Timeout seems to be the issue yet the URLs are loading fine in less than a second, (-t is set to 45 seconds as well) Thanks Generally you can use -S and -p 443 for

Re: [Nagios-users] check_http

2012-06-15 Thread Leonardo Bacha Abrantes
Hey Travis! thank you so much my friend! it worked!! On Thu, Jun 14, 2012 at 7:28 PM, Travis Runyard travisruny...@gmail.comwrote: You can monitor the path of a website with the -u option. Here is an example: check_http -H mysite.com -u /tux -f follow You will probably want to use the -f

[Nagios-users] check_http

2012-06-14 Thread Leonardo Bacha Abrantes
Hey people, I'm monitoring my site using the command line /usr/local/nagios/libexec/check_http -w 4 -c 8 -H mysite.com. It's work fine, however, I have some sites that has not a host added in my dns, and to access it and use mysite.com/tux. and when I use heck_http -w 4 -c 8 -H mysite.com/tux,

Re: [Nagios-users] check_http

2012-06-14 Thread Travis Runyard
You can monitor the path of a website with the -u option. Here is an example: check_http -H mysite.com -u /tux -f follow You will probably want to use the -f follow option if your website uses any kind of redirection method. ;-) Travis Runyard On Wed, Jun 13, 2012 at 6:16 AM, Leonardo Bacha

Re: [Nagios-users] check_http fails for two Sprint sites

2012-05-16 Thread Frank Bulk - iName.com
- From: Paul Dubuc [mailto:w...@paul.dubuc.org] Sent: Friday, February 24, 2012 8:26 AM To: frnk...@iname.com; Nagios Users List Subject: Re: [Nagios-users] check_http fails for two Sprint sites Frank Bulk wrote: Starting this morning two IPv6 sites, www.sprint.net and www.sprintv6.net failed

Re: [Nagios-users] check_http script is not working

2012-05-09 Thread Claudio Kuenzler
Hello , ** ** I’m Sankar testing nagios scripts. I have tried to ping URL check from check_http script from nagios. ** ** http://nagiosplugins.org/man/check_http (URL) = Reference ** ** Root# check_http -w 5 -c 10 --ssl -H www.verisign.com Name or service not

Re: [Nagios-users] check_http script is not working

2012-05-09 Thread Claudio Kuenzler
Jeez. I should drink a coffee before responding... ouch. The syntax is correct, as you see in my post I had a typo in the verisign domain name. # ./check_http -w 5 -c 10 --ssl -H www.verisign.com HTTP OK: HTTP/1.1 200 OK - 42718 bytes in 0.830 second response time

Re: [Nagios-users] check_http script is not working

2012-05-08 Thread Bram Gillemon
Hi, Can you visit the url using lynx / curl / ..., your syntax is correct. So it looks like another problem. Kr, Bram On 08 May 2012, at 09:01, Sankar, Bheemarasetty wrote: Hello , I’m Sankar testing nagios scripts. I have tried to ping URL check from check_http script from nagios.

[Nagios-users] check_http issue

2012-03-12 Thread Sunny Jaisinghani
Hello, I am using the check_http plugin for checking the SSL cert expiry. Even if the cert is not due to expire very soon, the plugin reports as CRITICAL. I have few more certs for which the plugin reports correct status. What could be going wrong over here. ?? BAD #

Re: [Nagios-users] check_http issue

2012-03-12 Thread Claudio Kuenzler
I know this doesn't answer your questions, but did you give the check_ssl_cert plugin a try? https://svn.id.ethz.ch/nagios_plugins/check_ssl_cert/check_ssl_cert I'm using this plugin to check ssl certificates, not only on http but also tls On Mon, Mar 12, 2012 at 10:04 AM, Sunny Jaisinghani

Re: [Nagios-users] check_http issue

2012-03-12 Thread Jeffrey Watts
I wonder if it's an epoch thing... Are all of the certs that are failing ones in which the expiry year is 2038 or greater? Jeffrey. On Mon, Mar 12, 2012 at 4:04 AM, Sunny Jaisinghani sunny_jaisingh...@symantec.com wrote: Hello, I am using the check_http plugin for checking the SSL cert

Re: [Nagios-users] check_http 1.4.15

2012-03-01 Thread Claudio Kuenzler
...@yahoo.com] *Sent:* Tuesday, February 28, 2012 12:03 PM *To:* nagios-users@lists.sourceforge.net *Subject:* [Nagios-users] check_http 1.4.15 ** ** All, I installed Nagios Plugins v.1.4.15 after reading a post on Sourceforge that showed the latest version of check_http included

[Nagios-users] check_http 1.4.15

2012-02-29 Thread Scott Ford
All, I installed Nagios Plugins v.1.4.15 after reading a post on Sourceforge that showed the latest version of check_http included an option for regular expression searches in the header of the file.  That option does not seem to be available.  Can anyone shed some light on this?  This is

Re: [Nagios-users] check_http 1.4.15

2012-02-29 Thread Werner, Robert
Subject: [Nagios-users] check_http 1.4.15 All, I installed Nagios Plugins v.1.4.15 after reading a post on Sourceforge that showed the latest version of check_http included an option for regular expression searches in the header of the file. That option does not seem to be available. Can anyone

Re: [Nagios-users] check_http 1.4.15

2012-02-27 Thread Claudio Kuenzler
Hi Scott, The link you posted is a user-contributed patch for check_http, posted on the tracker on Jan 3rd 2012. Nagios Plugins v. 1.4.15 were released in July 2010 so you can be sure that this patch has not made it into 1.4.15. You have two options: - Wait and hope that this patch will make it

Re: [Nagios-users] check_http fails for two Sprint sites

2012-02-24 Thread Frank Bulk
...@paul.dubuc.org] Sent: Friday, February 24, 2012 8:26 AM To: frnk...@iname.com; Nagios Users List Subject: Re: [Nagios-users] check_http fails for two Sprint sites Frank Bulk wrote: Starting this morning two IPv6 sites, www.sprint.net and www.sprintv6.net failed to pass check_http. What's strange

Re: [Nagios-users] check_http fails for two Sprint sites

2012-02-24 Thread Paul Dubuc
Frank Bulk wrote: Starting this morning two IPv6 sites, www.sprint.net and www.sprintv6.net failed to pass check_http. What's strange is that the v4 version of www.sprint.net also fails. I see that there are 302's (redirection) to the secure version of the site, but using the '-f follow'

[Nagios-users] check_http fails for two Sprint sites

2012-02-23 Thread Frank Bulk
Starting this morning two IPv6 sites, www.sprint.net and www.sprintv6.net failed to pass check_http. What's strange is that the v4 version of www.sprint.net also fails. I see that there are 302's (redirection) to the secure version of the site, but using the '-f follow' command doesn't help,

Re: [Nagios-users] check_http fails for two Sprint sites

2012-02-23 Thread Joerg Linge
Hi Frank, your side does not respond to http requests OMD[gearman]:~$ ./lib/nagios/plugins/check_http -6 -H www.sprint.net CRITICAL - Socket timeout after 10 seconds OMD[gearman]:~$ ./lib/nagios/plugins/check_http -H www.sprint.net CRITICAL - Socket timeout after 10 seconds HTTPS works well

Re: [Nagios-users] check_http fails for two Sprint sites

2012-02-23 Thread Frank Bulk
So if wget can follow redirects from insecure to secure sites, why can't check_http? Frank -Original Message- From: Joerg Linge [mailto:pitchf...@ederdrom.de] Sent: Thursday, February 23, 2012 11:40 PM To: Nagios Users List Subject: Re: [Nagios-users] check_http fails for two Sprint

Re: [Nagios-users] check_http fails for two Sprint sites

2012-02-23 Thread Joerg Linge
: Thursday, February 23, 2012 11:40 PM To: Nagios Users List Subject: Re: [Nagios-users] check_http fails for two Sprint sites Hi Frank, your side does not respond to http requests OMD[gearman]:~$ ./lib/nagios/plugins/check_http -6 -H www.sprint.net CRITICAL - Socket timeout after 10 seconds

[Nagios-users] check_http frequent timeouts

2012-01-19 Thread James Osbourn
I am monitoring an external web server at one of our sites from a Nagios instance at another site. During the day I will see frequent timeouts retrieving the webpage. I have increased the timeout to 20 seconds and the problem still occurs. What is interesting is that I have other web serves

Re: [Nagios-users] check_http -L writes raw html (a href) but does not render link in browser

2011-11-15 Thread Kimberly McKinnis
Aha. Thank you muchly! On 11/9/11 9:40 PM, Joerg Linge pitchf...@ederdrom.de wrote: Am 09.11.2011 um 22:33 schrieb Kimberly McKinnis: I'm using the stock Nagios 3 package from aptitude on Ubuntu. I wrote a new check using check_http, but the -L isn't entirely doing what I'd expect. Do I

[Nagios-users] check_http -L writes raw html (a href) but does not render link in browser

2011-11-09 Thread Kimberly McKinnis
I'm using the stock Nagios 3 package from aptitude on Ubuntu. I wrote a new check using check_http, but the -L isn't entirely doing what I'd expect. Do I need to set something else somewhere in Nagios to get browser renderable code? I've tried both Firefox and Safari on MacOSX Lion. My check:

Re: [Nagios-users] check_http -L writes raw html (a href) but does not render link in browser

2011-11-09 Thread Joerg Linge
Am 09.11.2011 um 22:33 schrieb Kimberly McKinnis: I'm using the stock Nagios 3 package from aptitude on Ubuntu. I wrote a new check using check_http, but the -L isn't entirely doing what I'd expect. Do I need to set something else somewhere in Nagios to get browser renderable code? I've

[Nagios-users] check_http results - interpreting error messages.

2011-11-02 Thread Giles Coochey
I am monitoring a website, and I sometimes get two types of error: One is: CRITICAL - Socket timeout after 10 seconds and the other is: HTTP CRITICAL - No data received from host What is the difference between the two errors? Is it the case that the HTTP CRITICAL error connected to the

Re: [Nagios-users] check_http results - interpreting error messages.

2011-11-02 Thread Holger Weiß
* Giles Coochey gi...@coochey.net [2011-11-02 09:09]: I am monitoring a website, and I sometimes get two types of error: One is: CRITICAL - Socket timeout after 10 seconds and the other is: HTTP CRITICAL - No data received from host What is the difference between the two errors? Is

Re: [Nagios-users] check_http and other response codes

2011-10-14 Thread Morty
On Thu, Oct 13, 2011 at 09:39:43AM +0200, Jörg Linge wrote: http://nagiosplugins.org/man/check_http Option -e -e, --expect=STRING Comma-delimited list of strings, at least one of them is expected in the first (status) line of the server response (default: HTTP/1.) If

Re: [Nagios-users] check_http and other response codes

2011-10-13 Thread Morty
On Wed, Oct 12, 2011 at 11:16:17PM -0500, Frank Bulk wrote: Isn't there some regex matching? There is. But it didn't help me in either case. check_http apparently does an implicit test to make sure it gets a valid response code such as 200. And the regex checking is in content, not headers or

Re: [Nagios-users] check_http and other response codes

2011-10-13 Thread Jörg Linge
Am 13.10.2011 um 09:18 schrieb Morty: On Wed, Oct 12, 2011 at 11:16:17PM -0500, Frank Bulk wrote: Isn't there some regex matching? There is. But it didn't help me in either case. check_http apparently does an implicit test to make sure it gets a valid response code such as 200. And the

[Nagios-users] check_http and other response codes

2011-10-12 Thread Morty
On some of our apache servers, the normal response code is 401 (authentication required) rather than 200. I'd also like to use nagios to make sure the apache TRACE method stays disabled, with a response code of 405. Problem: check_http returns a warning if the response code is anything but 200.

Re: [Nagios-users] check_http and other response codes

2011-10-12 Thread Frank Bulk
Isn't there some regex matching? Frank -Original Message- From: Morty [mailto:morty+nag...@frakir.org] Sent: Wednesday, October 12, 2011 9:46 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_http and other response codes On some of our apache servers, the normal

Re: [Nagios-users] check_http with multiple outcomes?

2011-08-09 Thread Dr. Ed Morbius
Terry: on 23:37 Mon 08 Aug, Terry Carmen (te...@cnysupport.com) wrote: Quoting Edward Morbius dredmorb...@gmail.com: When some things are going well and others aren't fully up to speed (slow database), we'll get a DATABASE_TEST_RAN_LONG, which isn't ideal, but at least for a few

Re: [Nagios-users] check_http with multiple outcomes?

2011-08-09 Thread Terry Carmen
Quoting Dr. Ed Morbius dredmorb...@gmail.com: Terry: on 23:37 Mon 08 Aug, Terry Carmen (te...@cnysupport.com) wrote: Quoting Edward Morbius dredmorb...@gmail.com: When some things are going well and others aren't fully up to speed (slow database), we'll get a DATABASE_TEST_RAN_LONG,

[Nagios-users] check_http with multiple outcomes?

2011-08-08 Thread Edward Morbius
We're monitoring a local Jetty (Java webserver) process using an application status page. When everything's going well, it includes the string OK, which we check for. This should be a clearly successful status test. When everything's not going well, we get some sort of 4xx or 5xx error message.

Re: [Nagios-users] check_http with multiple outcomes?

2011-08-08 Thread Terry Carmen
Quoting Edward Morbius dredmorb...@gmail.com: When some things are going well and others aren't fully up to speed (slow database), we'll get a DATABASE_TEST_RAN_LONG, which isn't ideal, but at least for a few occurances (n = 5) we can live with.  In particular, we DON'T want a single result

[Nagios-users] check_http + headers

2011-07-29 Thread af . at . work
With cURL, I can successfully log into the website I ultimately want have Nagios test by passing --cookies. Something like this: curl --cookie user=4reqrerqwr;userlogin=123adsfjlk324 http://mysite.com/home/index.aspx -v | grep Welcome I know it is successful because, 1, I can visually see the

Re: [Nagios-users] check_http + headers

2011-07-29 Thread Gary Every
Try using something besides a ; to separate the user and userlogin or better yet encapsulate them in quotes??? 'Cookie: user=4reqrerqwr;userlogin=123adsfjlk324' On Fri, Jul 29, 2011 at 6:35 AM, af.at.w...@gmail.com wrote: With cURL, I can successfully log into the website I ultimately want

Re: [Nagios-users] check_http + headers

2011-07-29 Thread af . at . work
Wrapping in quotes still made pushed the second value to another line. Cookie: AwarenessNETUserLogin_8800=04dDHmcJjn2vfcvP97i+z9yBGic0y4BIhNfDo8wN1fE= username=admin Can the ; be escaped? I can't pass anything else. On Fri, Jul 29, 2011 at 10:03 AM, Gary Every gev...@gmail.com wrote: Try using

Re: [Nagios-users] check_http + headers

2011-07-29 Thread Ton Voon
On 29 Jul 2011, at 14:35, af.at.w...@gmail.com wrote: I am trying to mimic this in Nagios with check_http like so: ./check_http -H mysite.com -u http://mysite.com/home/index.aspx -f follow -s Welcome -k 'Cookie: user=4reqrerqwr;userlogin=123adsfjlk324' -v You should use multiple -k to add

Re: [Nagios-users] check_http + headers

2011-07-29 Thread af . at . work
Per the Nagios doc, I also tried putting the ; in a $USERn$ variable passed that in my check but it still drops the second cookie value to another line. On Fri, Jul 29, 2011 at 10:14 AM, af.at.w...@gmail.com wrote: Wrapping in quotes still made pushed the second value to another line. Cookie:

Re: [Nagios-users] check_http + headers

2011-07-29 Thread af . at . work
I tried multiple -k parameters to add more headers with the same result. This is the output from Nagios with a 400 Bad Request status. I assume that is because the cookie is effectively broken. GET http://mywebsite.com/home.aspx HTTP/1.1 User-Agent: check_http/v1.4.15 (nagios-plugins 1.4.15)

[Nagios-users] check_http plugin times out with urls using self-signed certs

2011-07-06 Thread Traiano Welcome
Hi List I use the standard check_http plugin to check a number of websites, testing for a string returned by a cgi script hosted on the site. Similar to the following example: --- /usr/local/libexec/nagios/check_http -I 196.666.666.666 -a x:y -u http://monkey.donkey.net/cgi-bin/nagios.cgi

[Nagios-users] check_http encrypted link

2011-05-09 Thread Tristan Drinkwater
Hey guys, I'm struggling to check a http link that's encrypted. The full url works ok in a browser but I get 'unable to open a TCP socket' error when I run 'check_http -H domain/encrypted link' from the command line. I've also tried 'check_http -H domain -u /encrypted link but that's not

Re: [Nagios-users] check_http encrypted link

2011-05-09 Thread Mike Chesnut
On 05/09/2011 07:20 AM, Tristan Drinkwater wrote: I’m struggling to check a http link that’s encrypted. The full url works ok in a browser but I get ‘unable to open a TCP socket’ error when I run ‘check_http –H domain/encrypted link’ from the command line. I’ve also tried ‘check_http –H

[Nagios-users] check_http and authentication

2011-01-20 Thread stan
I have 2 Nagios instances at the moment. On one I am using the chck_http pluging version 1.4.13, and on the other I have version 1.4.14. On both systems I am check agains Server Tecnology PDU's. The older one works fine. The newer plugin reports a warning HTTP Warning HTTP/1.1 401 Unauthorized 412

Re: [Nagios-users] check_http and authentication

2011-01-20 Thread Edwin Zoeller
I am having the same type of problem but mine is that when I enter a UID/PWD and change it to test it is always successful. What am I doing wrong. -Original Message- From: stan [mailto:st...@panix.com] Sent: Thursday, January 20, 2011 8:45 AM To: nagios List Subject: [Nagios-users

[Nagios-users] check_http with auth issue

2011-01-20 Thread stan
Hi, We're having problems with Nagios3 (3.2.0) reporting 'HTTP WARNING HTTP/1.1 401 Unauthorized' for check_http queries to a several switched CDUs of the same type. All these CDUs have HTTP Server = enabled, Authentication= Basic. Running check_http from the command line returns an OK status:

Re: [Nagios-users] check_http with auth issue

2011-01-20 Thread Ray Kiddy
On Jan 20, 2011, at 1:35 PM, stan wrote: Hi, We're having problems with Nagios3 (3.2.0) reporting 'HTTP WARNING HTTP/1.1 401 Unauthorized' for check_http queries to a several switched CDUs of the same type. All these CDUs have HTTP Server = enabled, Authentication= Basic. Running

[Nagios-users] check_http requests - SSL Not available

2010-11-12 Thread Kevin Davison
I've been digging at this one for a while and not getting any closer to resolution. Has anyone else encountered problems with getting check_http to work with the -S/--ssl option? Nagios 3.2.1 running on a CentOS box. I have openssl and openssl-devel installed Package

Re: [Nagios-users] check_http requests - SSL Not available

2010-11-12 Thread Assaf Flatto
On 12/11/10 17:15, Kevin Davison wrote: I've been digging at this one for a while and not getting any closer to resolution. Has anyone else encountered problems with getting check_http to work with the --S/--ssl option? Nagios 3.2.1 running on a CentOS box. I have openssl and

Re: [Nagios-users] check_http requests - SSL Not available

2010-11-12 Thread Kevin Davison
@lists.sourceforge.net Subject: Re: [Nagios-users] check_http requests - SSL Not available On 12/11/10 17:15, Kevin Davison wrote: I've been digging at this one for a while and not getting any closer to resolution. Has anyone else encountered problems with getting check_http to work with the -S

[Nagios-users] Check_http

2010-10-20 Thread Rajesh Kumar
Hi All I have configured Nagios Core in CentOS. I did remotehost(retpro) services of cpu, memory, user, ssh and ping also but unable to config check_http. How to configure remotehost http (url) and Notification Alert (If http down). Pls verify my cfg file in

Re: [Nagios-users] Check_http

2010-10-20 Thread Robert Wolfe
up both here at home and at work for our VoIP monitoring server which runs the latest Nagios). From: Rajesh Kumar [mailto:ras.kuma...@gmail.com] Sent: Wednesday, October 20, 2010 2:08 AM To: Nagios-users@lists.sourceforge.net Subject: [Nagios-users] Check_http Hi All I have

Re: [Nagios-users] Check_http

2010-10-20 Thread Jonathan Angliss
On 10/20/10 01:08, Rajesh Kumar wrote: Hi All I have configured Nagios Core in CentOS. I did remotehost(retpro) services of cpu, memory, user, ssh and ping also but unable to config check_http. How to configure remotehost http (url) and Notification Alert (If http

[Nagios-users] check_http started failing on one monitor

2010-10-18 Thread Peters, Paul
I have a monitor that has been using check_http --ssl -H hostname for over a year, and it just started failing today for some reason. It was working fine up until an hour ago. I have other hosts using the same check without issue. I have checked the same host through a wget, telnet, and using

Re: [Nagios-users] check_http started failing on one monitor

2010-10-18 Thread Peters, Paul
Well it just started working again. I will see what I can find since it makes no sense. -Original Message- From: Peters, Paul Sent: Monday, October 18, 2010 11:51 AM To: Nagios Users List Subject: [Nagios-users] check_http started failing on one monitor I have a monitor that has been

Re: [Nagios-users] check_http (bogus) setup

2010-04-16 Thread Gerard Petersen
Dear Marc, Thanx for you elaborate feedback. The joke is somewhat on me, but more on that in a second. You're documentation is good and to the point! The configuration I used was a apt-get installed nagios3 on Ubuntu 9.10 which seems a recipe from a modern kitchen. I ofcourse totally agree

[Nagios-users] check_http (bogus) setup

2010-04-15 Thread Gerard Petersen
Hi All, I've been testing with the check_http service. I always was under the assumption that the setup below would check www.example.com define service{ use generic-service host_name myhost1 service_description http -

Re: [Nagios-users] check_http (bogus) setup

2010-04-15 Thread Marc Powell
On Apr 15, 2010, at 3:50 AM, Gerard Petersen wrote: Hi All, I've been testing with the check_http service. I always was under the assumption that the setup below would check www.example.com Why did you make this assumption? It's not documented to work like this. check_command

Re: [Nagios-users] check_http (bogus) setup

2010-04-15 Thread Morris, Patrick
Gerard Petersen wrote: Hi All, I've been testing with the check_http service. I always was under the assumption that the setup below would check www.example.com define service{ use generic-service host_name myhost1

[Nagios-users] check_http issue

2010-04-08 Thread Shashank Kamble
Hello, I am newbie to Nagios. I successfully installed Nagios and its monitoring most of our windows and Linux servers. Currently, I am having issues with the one of the website we support for our client. I defined a host and also defined an http service to monitor the website: Here is host

Re: [Nagios-users] check_http issue

2010-04-08 Thread Assaf Flatto
Shashank Kamble wrote: Hello, I am newbie to Nagios. I successfully installed Nagios and its monitoring most of our windows and Linux servers. Currently, I am having issues with the one of the website we support for our client. I defined a host and also defined an http service to

Re: [Nagios-users] check_http issue

2010-04-08 Thread Shashank Kamble
Bingo, thanx Assaf. It worked. Cheers, Shashank On Thu, Apr 8, 2010 at 10:14 AM, Assaf Flatto nag...@flatto.net wrote: Shashank Kamble wrote: Hello, I am newbie to Nagios. I successfully installed Nagios and its monitoring most of our windows and Linux servers. Currently, I am

  1   2   3   >