Re: [Nagios-users] check_http -s
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, making Nagios interpret the rest as the required string for -P. -- Sean McAfee System Engineer Collaborative Fusion, Inc. smca...@collaborativefusion.com 412-422-3463 x 4025 5849 Forbes Avenue Pittsburgh, PA 15217 IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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 -s
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 return an error , but you are not submitting any string . Assaf On Friday 08 May 2009 22:44:31 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 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 Content-Length: 8 -s=ERROR http://example.com:80/some.jsp is 386 characters STATUS: HTTP/1.1 200 OK HEADER Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=72439B901515114D613218FF9FD8084D; Path=/ Content-Type: text/html;charset=ISO-8859-1 Content-Length: 154 Date: Fri, 08 May 2009 14:07:29 GMT Connection: close CONTENT !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleSomeTitle/title /head body OKAY /body /html HTTP OK HTTP/1.1 200 OK - 386 bytes in 0.450 seconds |time=0.449973s;;;0.00 size=386B;;;0 BUT it must be ERROR - not ok. What I do wrong? -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE Along with a few colleagues I am doing The Three Peaks Challenge again this year to raise money for The Railway Children. Please sponsor me by making a donation online, simply click on the link below and give via your switch/credit card. Thank you. http://www.justgiving.com/londonnorththreepeaks IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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 -s
* 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: $ check_http -h | grep -A 1 -- ' -P' -P, --post=STRING URL encoded http POST data Without the -P option (or with an appropriate argument to the -P option), things should work as expected: $ check_http -H www.nagiosplugins.org -P -s=ERROR HTTP OK HTTP/1.1 200 OK - 19113 bytes in 1.578 seconds |time=1.578360s;;;0.00 size=19113B;;;0 $ check_http -H www.nagiosplugins.org -s=ERROR HTTP CRITICAL - string not found|time=0.861949s;;;0.00 size=19048B;;;0 Holger -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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 -s
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 argument for -P, making Nagios interpret the rest as the required string for -P. I do not understand you right... I try to explain more detail. On some site works some jsp what check inner logic of site and return in body OKEY or ERROR. I what to make a check_http and IF i got in page body word ERROR - then make check critical IF in page body i got OKEY - return OK. As I understand -s= - it is what I expect in page body. Or I not understand it right? :-) -- Best regards, Proskurin Kirill -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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 -s
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, see the --help output: Ops! I missed what I post wrong command to list. Sorry. I fix it but: ./check_http -v -H example.com -u /some.jsp -s=OKAY GET /some.jsp HTTP/1.0 User-Agent: check_http/v2053 (nagios-plugins 1.4.13) Connection: close Host: example.com http://example.com:80/some.jsp is 386 characters STATUS: HTTP/1.1 200 OK HEADER Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=C75D8239CF3F0C0D4FEF29DCD9316EBD; Path=/ Content-Type: text/html;charset=ISO-8859-1 Content-Length: 154 Date: Fri, 08 May 2009 15:51:01 GMT Connection: close CONTENT !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleCheck/title /head body OKAY /body /html HTTP CRITICAL - string not found|time=0.447721s;;;0.00 size=386B;;;0 -- Best regards, Proskurin Kirill -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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 -s
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 you're missing an argument for -P, making Nagios interpret the rest as the required string for -P. I do not understand you right... I try to explain more detail. On some site works some jsp what check inner logic of site and return in body OKEY or ERROR. I what to make a check_http and IF i got in page body word ERROR - then make check critical IF in page body i got OKEY - return OK. As I understand -s= - it is what I expect in page body. Or I not understand it right? :-) No, you're right about -s, but you command is being parsed as: ./check_http -v -H example.com -u /some.jsp -P -s=ERROR because you're missing an argument for the -P flag. Change it to: ./check_http -v -H example.com -u /some.jsp -s=ERROR and it will work as you expect. -- Sean McAfee System Engineer -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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 -s
* 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 circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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 -s
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 example.com -u /some.jsp -s K -- returns OK and so on. Bug? -- Best regards, Proskurin Kirill -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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 -s
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' in the page. You're searching for simple strings, not words. Searching for the string 'OKAY' would successfully match 'thisisreallycoolOKAYthxbai'. -- Marc -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-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 -S
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 single output line. See the docs, they're ok. -h -- Hari Sekhon - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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] check_http -S
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 /62 -S -a kalle:kalle But whatever i writ after -a works... still get : OK - HTTP/1.1 302 Object Moved - 0.042 second response time |time=0.042236s;;;0.00 size=205B;;;0 So how do i make it authenticate? Thanks Lelle __\/__. / ^ ^ \ .|\| (o)(o) |/| #-.OOOoO0oOOO.---# #Lennart Kvam # #Softronic AB, Ringvägen 100, 118 60 Stockholm ##Tel: 0708-813279 Vx:08-51909000 ## [EMAIL PROTECTED]##__Oooo.___# .oooO ( ) ( ) ) /\ ((_/ \_) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ 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 -S
--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_defense_content.html This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 -S
okejso far i´m with you...but how about authentication then? This test just says that the page/site is responding:) -Ursprungligt meddelande- Från: Eirik Robertstad [mailto:[EMAIL PROTECTED] Skickat: den 15 september 2006 02:01 Till: Kvam Lennart Ämne: Re: SV: SV: [Nagios-users] check_http -S Yeah I get what your trying to do. The thing is... your ARE doing it. ;) Everything IS working fine. OK = Good! That's all your going to get from any check pretty much. OK WARNING CRITICAL UNKNOWN Your verify first thing worked fine: But whatever i writ after -a works... still get : OK - HTTP/1.1 302 Object Moved - 0.042 second response time |time=0.042236s;;;0.00 size=205B;;;0 But the only thing you where missing was the --onredirect=follow option so that you got rid of the Object Moved. No worries man, it's working how it should. ;) Change the password to something else and you'll get back CRITICAL saying the login failed. Regards, Eirik [EMAIL PROTECTED] wrote: Okej! Lets make it simple! I have a https site with a log in I want to check that the log in works with a user:password That's it! :-) 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-users] check_http -S K... I'm not sure what the problem is here? Your results came back with an 'OK' in your first post expect for the fact that it was a redirect. Everything should be fine now. If I'm missing something, please make it a bit more clear of what the issue at hand is. Regards, Eirik [EMAIL PROTECTED] wrote: Hi! Thanx for a fast answer Still the same ./check_http -H www.inte.com -u /62 -S -a 7xx04:Kassantestar -f=follow What i´m I missing here:) Reegards lennart -Ursprungligt meddelande- Från: Eirik Robertstad [mailto:[EMAIL PROTECTED] Skickat: den 15 september 2006 01:39 Till: Kvam Lennart Kopia: nagios-users@lists.sourceforge.net Ämne: Re: [Nagios-users] check_http -S --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_defense_content.html This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444. -- 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_defense_content.html This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444. -- 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_defense_content.html This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https
Re: [Nagios-users] check_http -S
He,he Thanks man! The problem is that I can write whatever in user:passeg nagios:nagios or muppetplugin:muppet it STILL reports OK:-) That's is not ok:) //Lelle -Ursprungligt meddelande- Från: Eirik Robertstad [mailto:[EMAIL PROTECTED] Skickat: den 15 september 2006 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 user:pass), and have returned a status of OK back to Nagios. You even have the response time being returned, so you know how quickly it took. check_http --help :) There isn't a problem here, lol. Read the docs and get some sleep, have you used Nagios before? What am I missing here? [EMAIL PROTECTED] wrote: okejso far i´m with you...but how about authentication then? This test just says that the page/site is responding:) -Ursprungligt meddelande- Från: Eirik Robertstad [mailto:[EMAIL PROTECTED] Skickat: den 15 september 2006 02:01 Till: Kvam Lennart Ämne: Re: SV: SV: [Nagios-users] check_http -S Yeah I get what your trying to do. The thing is... your ARE doing it. ;) Everything IS working fine. OK = Good! That's all your going to get from any check pretty much. OK WARNING CRITICAL UNKNOWN Your verify first thing worked fine: But whatever i writ after -a works... still get : OK - HTTP/1.1 302 Object Moved - 0.042 second response time |time=0.042236s;;;0.00 size=205B;;;0 But the only thing you where missing was the --onredirect=follow option so that you got rid of the Object Moved. No worries man, it's working how it should. ;) Change the password to something else and you'll get back CRITICAL saying the login failed. Regards, Eirik [EMAIL PROTECTED] wrote: Okej! Lets make it simple! I have a https site with a log in I want to check that the log in works with a user:password That's it! :-) 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-users] check_http -S K... I'm not sure what the problem is here? Your results came back with an 'OK' in your first post expect for the fact that it was a redirect. Everything should be fine now. If I'm missing something, please make it a bit more clear of what the issue at hand is. Regards, Eirik [EMAIL PROTECTED] wrote: Hi! Thanx for a fast answer Still the same ./check_http -H www.inte.com -u /62 -S -a 7xx04:Kassantestar -f=follow What i´m I missing here:) Reegards lennart -Ursprungligt meddelande- Från: Eirik Robertstad [mailto:[EMAIL PROTECTED] Skickat: den 15 september 2006 01:39 Till: Kvam Lennart Kopia: nagios-users@lists.sourceforge.net Ämne: Re: [Nagios-users] check_http -S --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_defense_content.html This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444. -- 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_defense_content.html This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444. -- 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_defense_content.html
Re: [Nagios-users] check_http -S
Aaahh...and now i`m with you One more stupid question:) The webinject thingdo I install it on my nagiosserver or the client? I guess nagiosserver!?:) Thanks for your help and time...soon its bedtime...afterall*L* //Lelle -Ursprungligt meddelande- Från: Eirik 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 javascript or such. In that case you will need a different plugin that can read the website, or something like WebInject: http://www.nagiosexchange.org/Networking.53.0.html?tx_netnagext_pi1[p_view]=321 check_http is just returning what ever code the web server will return, so if a failure to login, actually generates a real page instead of an error, check_http will say everything is fine. Sorry I didn't understand you at first, hope this helps. :) Regards. [EMAIL PROTECTED] wrote: He,he Thanks man! The problem is that I can write whatever in user:passeg nagios:nagios or muppetplugin:muppet it STILL reports OK:-) That's is not ok:) //Lelle -Ursprungligt meddelande- Från: Eirik Robertstad [mailto:[EMAIL PROTECTED] Skickat: den 15 september 2006 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 user:pass), and have returned a status of OK back to Nagios. You even have the response time being returned, so you know how quickly it took. check_http --help :) There isn't a problem here, lol. Read the docs and get some sleep, have you used Nagios before? What am I missing here? [EMAIL PROTECTED] wrote: okejso far i´m with you...but how about authentication then? This test just says that the page/site is responding:) -Ursprungligt meddelande- Från: Eirik Robertstad [mailto:[EMAIL PROTECTED] Skickat: den 15 september 2006 02:01 Till: Kvam Lennart Ämne: Re: SV: SV: [Nagios-users] check_http -S Yeah I get what your trying to do. The thing is... your ARE doing it. ;) Everything IS working fine. OK = Good! That's all your going to get from any check pretty much. OK WARNING CRITICAL UNKNOWN Your verify first thing worked fine: But whatever i writ after -a works... still get : OK - HTTP/1.1 302 Object Moved - 0.042 second response time |time=0.042236s;;;0.00 size=205B;;;0 But the only thing you where missing was the --onredirect=follow option so that you got rid of the Object Moved. No worries man, it's working how it should. ;) Change the password to something else and you'll get back CRITICAL saying the login failed. Regards, Eirik [EMAIL PROTECTED] wrote: Okej! Lets make it simple! I have a https site with a log in I want to check that the log in works with a user:password That's it! :-) 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-users] check_http -S K... I'm not sure what the problem is here? Your results came back with an 'OK' in your first post expect for the fact that it was a redirect. Everything should be fine now. If I'm missing something, please make it a bit more clear of what the issue at hand is. Regards, Eirik [EMAIL PROTECTED] wrote: Hi! Thanx for a fast answer Still the same ./check_http -H www.inte.com -u /62 -S -a 7xx04:Kassantestar -f=follow What i´m I missing here:) Reegards lennart -Ursprungligt meddelande- Från: Eirik Robertstad [mailto:[EMAIL PROTECTED] Skickat: den 15 september 2006 01:39 Till: Kvam Lennart Kopia: nagios-users@lists.sourceforge.net Ämne: Re: [Nagios-users] check_http -S --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_defense_content.html This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444