Re: [Nagios-users] a special http check
I'll second the WebInject vote. We use it heavily in my office to test our web applications. Here is a simple example I used to demonstrate logging into a drupal website and checking a specific page for content. http://www.techadre.com/content/checking-drupal-status-nagios-and-webinject -- Mat W. - http://www.techadre.com Date: Tue, 7 Jul 2009 11:34:27 -0400 From: k...@uvm.edu To: shadhi...@gmail.com CC: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] a special http check I've had good luck using WebInject for similar kinds of tests. Might do what you're after. http://www.webinject.org/ -kent shadih rahman wrote: All, I need to do a special kind of http check to see if our authentication service is working or not. These are the sequence of event need to take place. I need to hit the url https://myserver.com/login then I need do additional query service=myservice then I need to additinal query to validattion url https://myserver.com/validate here I will add additional query with my username and password. then I want to check the http response and search for the string yes Can this be done using check_http or do I need a custom check? Please advise on this. Thanks -- Cordially, Shadhin Rahman -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry ___ 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 -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry ___ 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 _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290-- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge___ 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] a special http check
I've had good luck using WebInject for similar kinds of tests. Might do what you're after. http://www.webinject.org/ -kent shadih rahman wrote: All, I need to do a special kind of http check to see if our authentication service is working or not. These are the sequence of event need to take place. I need to hit the url https://myserver.com/login then I need do additional query service=myservice then I need to additinal query to validattion url https://myserver.com/validate here I will add additional query with my username and password. then I want to check the http response and search for the string yes Can this be done using check_http or do I need a custom check? Please advise on this. Thanks -- Cordially, Shadhin Rahman -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry ___ 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 -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry ___ 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] a special http check
shadih rahman wrote: All, I need to do a special kind of http check to see if our authentication service is working or not. These are the sequence of event need to take place. I need to hit the url https://myserver.com/login then I need do additional query service=myservice then I need to additinal query to validattion url https://myserver.com/validate here I will add additional query with my username and password. then I want to check the http response and search for the string yes Can this be done using check_http or do I need a custom check? Please advise on this. Thanks I'm currently doing a login check using check_http, but it's a much simpler, single-step check. It basically just checks that we can successfully login with a special nagios username and password by checking for the presence of the word Logout on the resulting page. (That word only appears if the login is successful.) define service { service_description portal login use our-service servicegroups http-services host_name our-host check_command check_http!-S!-s Logout!-u '/portal/j_spring_security_check?j_username=$USER3$j_password=$USER4$' _ADDL_DETAILThis service verifies that we can log in to the portal (via: if the login is successful then the string Logout will be found on the page) } Perhaps you might be to accomplish what you want using only check_http by breaking this up into several different service checks. i.e.: 1) check that you can log in successfully, 2) check that you can (login and) hit the service=myservice page, etc. HTH, DR -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry ___ 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