Re: [Nagios-users] check_http -s

2009-05-08 Thread Sean McAfee
Proskurin Kirill wrote: Hello all. I try to add a check_http with expecting some word in a body. But: ./check_http -v -H example.com -u /some.jsp -P -s=ERROR BUT it must be ERROR - not ok. What I do wrong? The -s=ERROR is being POSTed because you're missing an argument for -P,

Re: [Nagios-users] check_http -s

2009-05-08 Thread Assaf Flatto
HTTP reply 200 means that the webserver found the page you requested . if you want to get an ERROR you should either point to a non existing page , which will give you the 404 error , in the example you provide it seem you are trying to submit some string to the jsp and expecting it to

Re: [Nagios-users] check_http -s

2009-05-08 Thread Holger Weiss
* Proskurin Kirill proskurin...@fxclub.org [2009-05-08 18:44]: I try to add a check_http with expecting some word in a body. But: ./check_http -v -H example.com -u /some.jsp -P -s=ERROR In this command line, -s=ERROR will be interpreted as an argument to the -P option, see the --help output:

Re: [Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
Sean McAfee wrote: Proskurin Kirill wrote: Hello all. I try to add a check_http with expecting some word in a body. But: ./check_http -v -H example.com -u /some.jsp -P -s=ERROR BUT it must be ERROR - not ok. What I do wrong? The -s=ERROR is being POSTed because you're missing an

Re: [Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
Holger Weiss wrote: * Proskurin Kirill proskurin...@fxclub.org [2009-05-08 18:44]: I try to add a check_http with expecting some word in a body. But: ./check_http -v -H example.com -u /some.jsp -P -s=ERROR In this command line, -s=ERROR will be interpreted as an argument to the -P option,

Re: [Nagios-users] check_http -s

2009-05-08 Thread Sean McAfee
Proskurin Kirill wrote: Sean McAfee wrote: Proskurin Kirill wrote: Hello all. I try to add a check_http with expecting some word in a body. But: ./check_http -v -H example.com -u /some.jsp -P -s=ERROR BUT it must be ERROR - not ok. What I do wrong? The -s=ERROR is being POSTed because

Re: [Nagios-users] check_http -s

2009-05-08 Thread Holger Weiss
* Proskurin Kirill proskurin...@fxclub.org [2009-05-08 19:52]: ./check_http -v -H example.com -u /some.jsp -s=OKAY Try -s OKAY or --string=OKAY. Holger -- The NEW KODAK i700 Series Scanners deliver under ANY

Re: [Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
Holger Weiss пишет: * Proskurin Kirill proskurin...@fxclub.org [2009-05-08 19:52]: ./check_http -v -H example.com -u /some.jsp -s=OKAY Try -s OKAY or --string=OKAY. Thank you - it is works. But last strange thing - check returns OK if I expect ANY letter of OKAY word. ./check_http -v -H

Re: [Nagios-users] check_http -s

2009-05-08 Thread Marc Powell
On May 8, 2009, at 12:41 PM, Proskurin Kirill wrote: But last strange thing - check returns OK if I expect ANY letter of OKAY word. ./check_http -v -H example.com -u /some.jsp -s K -- returns OK and so on. Bug? No, not a bug. You're searching for 'K' and it is present in the word 'OKAY'

Re: [Nagios-users] check_http -S

2006-09-15 Thread Hari Sekhon
I use webinject on the nagios monitoring server, you will need to create one or two config xml files for it for each login. Get it to parse the redirect result and test you got the right page returned. Also make sure that the report type is set to nagios to supply the correct exit codes and

[Nagios-users] check_http -S

2006-09-14 Thread lennart.kvam
Hello all you gurus! I´m struggling with check_http... i have a webbpage (https) that i want to check and log in to! First, is it possible with check_http? Iv tested and read but dont seems to figure it out! This is what i run from commandline! ./check_http -H www.xnterxxx.com -u

Re: [Nagios-users] check_http -S

2006-09-14 Thread Eirik Robertstad
--onredirect=follow -- The sender of this email subscribes to Perimeter Internetworking's email anti-virus service. This email has been scanned for malicious code and is believed to be virus free. For more information on email security please visit:

Re: [Nagios-users] check_http -S

2006-09-14 Thread lennart.kvam
in the user/passwd...still replyes OK //Lelle -Ursprungligt meddelande- Från: Eirik Robertstad [mailto:[EMAIL PROTECTED] Skickat: den 15 september 2006 01:53 Till: Kvam Lennart Ämne: Re: SV: [Nagios-users] check_http -S K... I'm not sure what the problem is here? Your results came back

Re: [Nagios-users] check_http -S

2006-09-14 Thread lennart.kvam
Till: Kvam Lennart Ämne: Re: SV: SV: SV: [Nagios-users] check_http -S the -a is the authentication. Again, it's working fine, everything is OK. What more do you want from it? You have requested a url (-u), from a host (-H), and have logged in with a username and password (-a user:pass), and have

Re: [Nagios-users] check_http -S

2006-09-14 Thread lennart.kvam
:[EMAIL PROTECTED] Skickat: den 15 september 2006 02:24 Till: Kvam Lennart Ämne: Re: [Nagios-users] check_http -S Ahhh, now see that's different. :) What is it you get exactly as the output? More then likely the website doesn't use the ssl login, maybe it's javascript or such. In that case you