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 wrote: > Making the date forma

[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 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 ] >-f, --onredirect= Looks like that will work, thank you! -- Get your SQL database under version control now!

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 ] -f, --onredirect= On Fri, Aug 02, 2013 at 03:13:41PM -0400, james wrote: > We were using an old version of check_http, 1.4.10, to look for the regex > '' on our sites using check_h

[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 '' 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 returns

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

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 > > Sun May 5 22:29:03 EEST 2013 /usr/lib64/nagios/plugins/check_http -H >> granma.gr -u htt

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 thi

Re: [Nagios-users] check_http with spaces problem

2013-05-05 Thread Κοκμάδης Δημήτριος
ING$" -w "$_SERVICE_RESPONSE_WARNING$" -c > "$_SERVICE_RESPONSE_CRITICAL$" > command_name okc-check_http > } > > > > > - Original Message - > From: "Κοκμάδης Δημήτριος" > To: nagios-users@lists.sourcefor

Re: [Nagios-users] check_http with spaces problem

2013-05-05 Thread Páll Guðjón Sigurðsson
RVICE_URI$" -s "$_SERVICE_SEARCH_STRING$" -w "$_SERVICE_RESPONSE_WARNING$" -c "$_SERVICE_RESPONSE_CRITICAL$" command_name okc-check_http } - Original Message - From: "Κοκμάδης Δημήτριος" To: nagios-users@lists.sourceforge.net S

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, Κοκμάδης Δημήτριος wrote: > 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

[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 it's

[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

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 -S The -H is for hostnames On Thu, Jan 31

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

2013-01-31 Thread Travis Runyard
Have you tried check_http -I -S The -H is for hostnames On Thu, Jan 31, 2013 at 8:35 PM, Frank Bulk 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: > ===

[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 -S -v GET / HTTP/1.1 User-Agent: check_http/v

[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 insi

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

2012-11-22 Thread Claudio Kuenzler
>> > >> > On 11/20/12 8:20 AM, "Joerg Linge" wrote: >> > >> >> Please provide a complete example! >> >> check_http works correct since years >> >> >> >> Joerg >> >> >> >> Am 19.11.2012 um

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

2012-11-20 Thread Travis Runyard
>> Hey Joerg, > >>> > >>> The 4xx and 3xx error are handeld correctly but not the 5xx error ;-) > >>> > >>> any ideas? > >>> > >>> Regards, > >>> Jaap > >>> From: Joerg Linge [mailto:pitchf...@ederdrom.de]

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

2012-11-20 Thread Joerg Linge
andeld correctly 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, 1

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

2012-11-19 Thread Jaap van Arragon
>> >> 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 5

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

2012-11-19 Thread Joerg Linge
> 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 example > > /usr/local/nagios/libe

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 -u http:// -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

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 -u http:// -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$ ./check_http

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" wrote: > You said u are using it like so: > >    Check: >    /usr/local/nagios/libexec/check_http -I -u http:// -w1 > -c2 >

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 -u http:// -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 need one or t

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" wrote: > Hello, > > I¹m trying to use the check_http plugin to verify if one of our website is > available. > > When

[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 pos

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 beca

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 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 gra

[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) """ Whe

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

2012-08-15 Thread Claudio Kuenzler
On Wed, Aug 15, 2012 at 5:03 PM, 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 SSL-sites. It doesn

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

2012-08-15 Thread masoud . tabrizi
Reply-To: Nagios Users List Subject: Re: [Nagios-users] check_http and self signed certs -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has change

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 wrote: > All, > We are using version 4.1.13 for the check_http for checking our URLs. > i

[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

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 wrote: > 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

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

[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, it

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

2012-05-16 Thread Frank Bulk - iName.com
the site. Frank -Original Message- 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.

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

2012-05-08 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 |time=0.830120s;5.00;10.

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

2012-05-08 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

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 script is not working

2012-05-08 Thread Sankar, Bheemarasetty
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 known HTTP CRITICAL - Unabl

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 cer

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

[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 # /usr/lib/nagios/plugins/ch

Re: [Nagios-users] check_http 1.4.15

2012-03-01 Thread Claudio Kuenzler
89 > > ** ** > > *From:* Scott Ford [mailto:sm_f...@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 Plugi

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

[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 the

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 s

[Nagios-users] check_http 1.4.15

2012-02-24 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 the

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 follo

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

2012-02-24 Thread Frank Bulk
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 to pass c

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

2012-02-23 Thread Joerg Linge
rom: 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 sites > > Hi Frank, > your side does not respond to http requests > > OMD[gearman]:~$ ./lib/nagi

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 S

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 OMD[

[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, ei

[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 a

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" 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 need to set

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 t

[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: defi

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

2011-11-02 Thread Holger Weiß
* Giles Coochey [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 it the

[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 serve

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 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. A

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-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 n

[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 with multiple outcomes?

2011-08-09 Thread Terry Carmen
Quoting "Dr. Ed Morbius" : > Terry: > > on 23:37 Mon 08 Aug, Terry Carmen (te...@cnysupport.com) wrote: >> Quoting Edward Morbius : >> > >> > 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 >>

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 : > > > > 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)

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

2011-08-08 Thread Terry Carmen
Quoting Edward Morbius : > > 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 sounding off pa

[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 + 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) Conn

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, wrote: > Wrapping in quotes still made pushed the second value to another line. > Cookie: > "AwarenessNETU

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

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 wrote: > Try using something besi

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, wrote: > With cURL, I can successfully log into the website I ultimately want > have Nagios test

[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 r

[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 -

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

[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 work

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 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 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 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 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 th

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 openssl-de

[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 openssl-0.9.8e-12.el5_4.6

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

Re: [Nagios-users] Check_http

2010-10-20 Thread Robert Wolfe
ave it set 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

[Nagios-users] Check_http

2010-10-19 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 /usr/local/nagios/et

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

[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 (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 wit

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 >

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

[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 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 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 > > h

  1   2   3   4   >