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

Re: [Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
Holger Weiss пишет: > * Proskurin Kirill [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 example.com -u

Re: [Nagios-users] check_http -s

2009-05-08 Thread Holger Weiss
* Proskurin Kirill [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 circumstances! Your productio

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? >> Th

Re: [Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
Holger Weiss wrote: > * Proskurin Kirill [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

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 becaus

Re: [Nagios-users] check_http -s

2009-05-08 Thread Holger Weiss
* Proskurin Kirill [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: $ check_http

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 retu

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 fo

[Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
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 POST /some.jsp HTTP/1.0 User-Agent: check_http/v2053 (nagios-plugins 1.4.13) Connection: close Host: example.com Content-Type: application/x-www-form-urlencoded

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 sin

Re: [Nagios-users] check_http -S

2006-09-14 Thread lennart.kvam
Robertstad [mailto:[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 javascrip

Re: [Nagios-users] check_http -S

2006-09-14 Thread lennart.kvam
02:15 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

Re: [Nagios-users] check_http -S

2006-09-14 Thread lennart.kvam
and the problem is...i can > writ what I want 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-user

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: http://www.perimeterusa.com/malicious_code_def

[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