Re: [Nagios-users] calling a java program from nagios

2009-01-30 Thread Venugopal S

Hi Marc,

The program that we have written uses HTTPUnit+Statemachine for web
crawling some websites.

What we do through this java code is to check whether the login action
on few websites is happening properly. If some login fails, we would
send an email to the mailing list.

Hope this is clear.
Please let me know if anything else is needed.

--Venu

-Original Message-
From: Marc Powell [mailto:m...@ena.com]
Sent: Friday, January 30, 2009 11:59 AM
To: nagios-users ML
Subject: Re: [Nagios-users] calling a java program from nagios


On Jan 29, 2009, at 11:24 PM, Venugopal S wrote:

>
> Hi Marc,
>
> The program can be run from commandline with one argument (which is
> critical for the java code to work).
>
> For example : "java -classpath Notify.jar " is the format. 
> How
> to achieve this is nagios ?

See the rest of my questions below. You have not yet stated your 
intent so we can't answer how to do it. Be _very_ clear about what 
you're trying to accomplish.

> -Original Message-
> From: Marc Powell [mailto:m...@ena.com]
> Sent: Thursday, January 29, 2009 9:21 PM
> To: nagios-users ML
> Subject: Re: [Nagios-users] calling a java program from nagios


>
> Your post and purpose is unclear. Is this java program a check plugin,
> an event handler, a notification program, etc? If you can manually run
> it from the command line, nagios should be able to do so.
>
> --
> Marc



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] calling a java program from nagios

2009-01-29 Thread Venugopal S

Hi Marc,

The program can be run from commandline with one argument (which is
critical for the java code to work).

For example : "java -classpath Notify.jar " is the format. How
to achieve this is nagios ?

Venu

-Original Message-
From: Marc Powell [mailto:m...@ena.com]
Sent: Thursday, January 29, 2009 9:21 PM
To: nagios-users ML
Subject: Re: [Nagios-users] calling a java program from nagios


On Jan 29, 2009, at 7:30 AM, Venugopal S wrote:

> Hi,
>
> For some purpose that was not served by nagios, we have written a 
> java program.
> One of our client requirement is that this java code (if possible) 
> has to be integrated with nagios so that all the purpose is 
> solved(apparently) by nagios framework.

Your post and purpose is unclear. Is this java program a check plugin, 
an event handler, a notification program, etc? If you can manually run 
it from the command line, nagios should be able to do so.

--
Marc


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] calling a java program from nagios

2009-01-29 Thread Venugopal S

Hi,



For some purpose that was not served by nagios, we have written a java
program.

One of our client requirement is that this java code (if possible) has
to be integrated with nagios so that all the purpose is
solved(apparently) by nagios framework.



Any input is appreciated.



Thanks

Venu



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
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] Using nagios check_http forwebbasedauthentication

2009-01-26 Thread Venugopal S

Hi all,
If all I have to do is to check for the liveliness of a website, why can't I go 
with HTTPUnit instead of Nagios (or) any of its plugins.

Thanks
Venu



-Original Message-
From: Marouane HIMDI [mailto:marouane.hi...@kereval.com]
Sent: Friday, January 23, 2009 8:17 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_http forwebbasedauthentication

I'll recommand the same tool webinject as Narendran. I have played with it.
Good to generate http/https request and calculate response time and verify
some words in reponse request.

Best regards

Dr Marouane HIMDI
Ingénieur R&D/R&D Engineer


KEREVAL
4, rue Hélène Boucher
Z.A. Bellevue
35235 Thorigné Fouillard
Tel : +33 (0)2 23 20 36 64
http://www.kereval.com

P Pensez à l'environnement : n'imprimez ce message et ses pièces jointes que
si nécessaire !
-Message d'origine-
De : narendran.neelame...@wipro.com [mailto:narendran.neelame...@wipro.com]
Envoyé : vendredi 23 janvier 2009 15:26
À : nagios-users@lists.sourceforge.net
Objet : Re: [Nagios-users] Using nagios check_http forwebbasedauthentication


You may also try http://www.webinject.org/plugin.html

Regards,
Naren

-Original Message-
From: Marc Powell [mailto:m...@ena.com]
Sent: Thursday, January 22, 2009 8:46 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_http for
webbasedauthentication


On Jan 22, 2009, at 7:55 AM, Venugopal S wrote:

>
> Hi Marc,
>
> Thanks for the reply. I am even now vague about how to proceed.
>
> Let me tell you the need :
>
> I have to open http://ww12.1800flowers.com/signin.do and enter my
> email(svenugop...@gmail.com) and password("podhum") in order to login.

Looking at the source of the page, the sign-in form has the following 
pertinent fields --




The field names that would be passed as the POST are 'email' and 
'password'. Now, I don't know what command{} definitions you have for 
check_http or how they're configured so I'll show you how to create a 
new one very specific to this test --

define command {
command_namecheck_flowers_login
command_line$USER1$/check_http -I $HOSTADDRESS$ -H 
ww12.1800flowers.com -u /signin.do -P 
"email=svenugop...@gmail.com&password=podhum"
}

Set that as the check_command for a service associated with the host 
and nagios will verify that the web server does not return an HTTP 
error after login. Note that if your server returns a standard 200 
response indicating OK even if there is a login error (most likely), 
you'll want to identify a word or string of text that should appear in 
the page after successful login, but not for a failure, and look for 
that with the -s parameter --

define command {
command_namecheck_flowers_login
command_line$USER1$/check_http -I $HOSTADDRESS$ -H 
ww12.1800flowers.com -u /signin.do -P 
"email=svenugop...@gmail.com&password=podhum" -s "you are logged in"
}

> Though this looks like a lot of hand holding, I have no other go.

My charge is 1 local specialty beer for all Hand Holding Help.

--
Marc



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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

This ema

Re: [Nagios-users] Using nagios check_httpfor webbasedauthentication

2009-01-26 Thread Venugopal S

Hi Peter,

To the extent followed with some googling, there is no help on this.
Dropping it off for now.

Thanks
Venu

-Original Message-
From: peter.ri...@web.de [mailto:peter.ri...@web.de]
Sent: Sunday, January 25, 2009 4:02 AM
To: Venugopal S
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_httpfor
webbasedauthentication

Hi Venu,


do you know 'check_website'.
I use it for monitoring a handful websites. It's able to follow
applications even with dynamically generated URLs. As far as I remember
(I dont need it) it follows redirects.

It' worth a look.

Regards, Peter


Venugopal S schrieb:
> Hi Marc,
>
> Will try this out on Tuesday. Thanks for your immense help.
>
> Happy weekend for all of you there.
>
>
> -Original Message-
> From: Marc Powell [mailto:m...@ena.com]
> Sent: Friday, January 23, 2009 7:17 PM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Using nagios check_httpfor
> webbasedauthentication
>
>
> On Jan 22, 2009, at 11:59 PM, Venugopal S wrote:
>
>> Hi Joerge,
>>
>> As you said "welcome venu" is not in the response in spite of giving
>> valid credentials. That is why I am wondering !
>> Even I gave the -v switch and found in the HTML response that
"welcome
>> venu" is not found. And the response HTML is the same as signin.do.
It
>> must have thrown me the login success page isn't it ?
>
>> ./check_http -I 199.107.237.196 -H  ww12.1800flowers.com -u /
>> signin.do -p 80 -P "email=svenugop...@gmail.com&password=podhum" -s
>> "welcome venu"
>
>
>
> Hi Venu,
>
> I created an account to test and see that I gave you some incorrect
> information. Looking at the form HTML, the URL that the form
> information is actually posted to is /signinaction.do, not /signin.do
> so that will need to change that in the command definition.
>
> Now with the correct URL and successful login, I see that the success
> 'page' returned is just a 302 redirect that bounces you to
>
> Location: https://ww12.1800flowers.com/customerwelcome.do?cmReg=L
>
> Unfortunately we come to a stopping point here. check_http will need
> to follow that redirect if it's going to see the text you're expecting

> to see on the final page and it can do that with  --onredirect=follow.

> The problem is that the coding of the final landing page appears to
> absolutely require the presence of a login cookie to know that you're
> logged in. check_http does not pass cookies as part of a redirect (but

> can be programmed to pass static cookies using the -k switch). The
> cookies that are being passed to us appear to be temporary session
> cookies anyway so I'm not sure how useful it would be to create
> another check for the customerwelcome.do page.
>
> What I ended up with is --
>
> ./check_http  -I 199.107.237.196 -H  ww12.1800flowers.com -u /
> signinaction.do -p 80 -P "email=myaddress&password=mypass" -e 302 -r
> html --invert-regex
>
> This will ensure that we see the 302 redirect returned by a successful

> login and that we do not see the word 'html' in a web page instead of
> the 302 redirect (meaning the login failed). Essentially, you'll know
> that the login worked, but not that the customerwelcome.do page was
> actually displayed. That may be enough for your needs.
>
> --
> Marc
>
>
>
>
>
>
>

> --
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> ___
> 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
>
> This email message and its attachments may contain CONFIDENTIAL AND
PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If
you have received it in error, please contact the sender by return
email, notify your system manager and destroy the original message and
any copies thereof. Any review, use, disclosure or distribution is
unlawful. Please check this email and any attachments for the presence
of viruses. The Company accepts no  liability for any damage caused by
any virus transmitted by this email. The views or opinions presented in
this e-mail are solely those of the author and do not necessarily
represent those of the company.
> The Company reserves the right to 

Re: [Nagios-users] Using nagios check_http forwebbasedauthentication

2009-01-23 Thread Venugopal S

Naren,

Webinject has got pathetic documentation and its so annoying. I have
tried that already.

-Original Message-
From: narendran.neelame...@wipro.com
[mailto:narendran.neelame...@wipro.com]
Sent: Friday, January 23, 2009 7:56 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_http
forwebbasedauthentication


You may also try http://www.webinject.org/plugin.html

Regards,
Naren

-Original Message-
From: Marc Powell [mailto:m...@ena.com]
Sent: Thursday, January 22, 2009 8:46 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_http for
webbasedauthentication


On Jan 22, 2009, at 7:55 AM, Venugopal S wrote:

>
> Hi Marc,
>
> Thanks for the reply. I am even now vague about how to proceed.
>
> Let me tell you the need :
>
> I have to open http://ww12.1800flowers.com/signin.do and enter my
> email(svenugop...@gmail.com) and password("podhum") in order to login.

Looking at the source of the page, the sign-in form has the following 
pertinent fields --




The field names that would be passed as the POST are 'email' and 
'password'. Now, I don't know what command{} definitions you have for 
check_http or how they're configured so I'll show you how to create a 
new one very specific to this test --

define command {
command_namecheck_flowers_login
command_line$USER1$/check_http -I $HOSTADDRESS$ -H 
ww12.1800flowers.com -u /signin.do -P 
"email=svenugop...@gmail.com&password=podhum"
}

Set that as the check_command for a service associated with the host 
and nagios will verify that the web server does not return an HTTP 
error after login. Note that if your server returns a standard 200 
response indicating OK even if there is a login error (most likely), 
you'll want to identify a word or string of text that should appear in 
the page after successful login, but not for a failure, and look for 
that with the -s parameter --

define command {
command_namecheck_flowers_login
command_line$USER1$/check_http -I $HOSTADDRESS$ -H 
ww12.1800flowers.com -u /signin.do -P 
"email=svenugop...@gmail.com&password=podhum" -s "you are logged in"
}

> Though this looks like a lot of hand holding, I have no other go.

My charge is 1 local specialty beer for all Hand Holding Help.

--
Marc



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Using nagios check_httpfor webbasedauthentication

2009-01-23 Thread Venugopal S

Hi Marc,

Will try this out on Tuesday. Thanks for your immense help.

Happy weekend for all of you there.


-Original Message-
From: Marc Powell [mailto:m...@ena.com]
Sent: Friday, January 23, 2009 7:17 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_httpfor
webbasedauthentication


On Jan 22, 2009, at 11:59 PM, Venugopal S wrote:

>
> Hi Joerge,
>
> As you said "welcome venu" is not in the response in spite of giving
> valid credentials. That is why I am wondering !
> Even I gave the -v switch and found in the HTML response that "welcome
> venu" is not found. And the response HTML is the same as signin.do. It
> must have thrown me the login success page isn't it ?

> ./check_http -I 199.107.237.196 -H  ww12.1800flowers.com -u /
> signin.do -p 80 -P "email=svenugop...@gmail.com&password=podhum" -s 
> "welcome venu"



Hi Venu,

I created an account to test and see that I gave you some incorrect 
information. Looking at the form HTML, the URL that the form 
information is actually posted to is /signinaction.do, not /signin.do 
so that will need to change that in the command definition.

Now with the correct URL and successful login, I see that the success 
'page' returned is just a 302 redirect that bounces you to

Location: https://ww12.1800flowers.com/customerwelcome.do?cmReg=L

Unfortunately we come to a stopping point here. check_http will need 
to follow that redirect if it's going to see the text you're expecting 
to see on the final page and it can do that with  --onredirect=follow. 
The problem is that the coding of the final landing page appears to 
absolutely require the presence of a login cookie to know that you're 
logged in. check_http does not pass cookies as part of a redirect (but 
can be programmed to pass static cookies using the -k switch). The 
cookies that are being passed to us appear to be temporary session 
cookies anyway so I'm not sure how useful it would be to create 
another check for the customerwelcome.do page.

What I ended up with is --

./check_http  -I 199.107.237.196 -H  ww12.1800flowers.com -u /
signinaction.do -p 80 -P "email=myaddress&password=mypass" -e 302 -r 
html --invert-regex

This will ensure that we see the 302 redirect returned by a successful 
login and that we do not see the word 'html' in a web page instead of 
the 302 redirect (meaning the login failed). Essentially, you'll know 
that the login worked, but not that the customerwelcome.do page was 
actually displayed. That may be enough for your needs.

--
Marc







--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Using nagios check_httpfor webbasedauthentication

2009-01-22 Thread Venugopal S

Hi Joerge,

As you said "welcome venu" is not in the response in spite of giving
valid credentials. That is why I am wondering !
Even I gave the -v switch and found in the HTML response that "welcome
venu" is not found. And the response HTML is the same as signin.do. It
must have thrown me the login success page isn't it ?

Venu

-Original Message-
From: Joerg Linge [mailto:pitchf...@ederdrom.de]
Sent: Friday, January 23, 2009 11:20 AM
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_httpfor
webbasedauthentication

Venugopal S schrieb:
>
>
> Hi Marc,
>
> 
>
> * This is my command in commands.cfg : *
>
> 
>
> / define command{ /
>
> / command_namecheck_http /
>
> / command_line$USER1$/check_http -I $HOSTADDRESS$
>   /
>
> / } /
>
> 
>
> I executed the following command :
>
> 
>
> ./check_http -I 199.107.237.196 -H  ww12.1800flowers.com -u /signin.do

> -p 80 -P "email= svenugop...@gmail.com&password=podhum" -s "welcome
venu"
>
> 
>
> and it threw
>
> 
>
> HTTP CRITICAL - string not found|time=0.080070s;;;0.00
size=38300B;;;0
>
> 
>
> Any idea why ?

Add -v to you test a analyze te response. There is no string "welcome
venu" in the response.



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Using nagios check_http for webbasedauthentication

2009-01-22 Thread Venugopal S

Hi Marc,



This is my command in commands.cfg :



define command{

command_namecheck_http

command_line$USER1$/check_http -I $HOSTADDRESS$


}



I executed the following command :



./check_http -I 199.107.237.196 -H  ww12.1800flowers.com -u /signin.do
-p 80 -P "email=svenugop...@gmail.com&password=podhum" -s "welcome venu"



and it threw



HTTP CRITICAL - string not found|time=0.080070s;;;0.00
size=38300B;;;0



Any idea why ?



FYI : the password has been changed and now is not "podhum".



Thanks

Venu



-Original Message-
From: Marc Powell [mailto:m...@ena.com]
Sent: Thursday, January 22, 2009 8:46 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_http for
webbasedauthentication





On Jan 22, 2009, at 7:55 AM, Venugopal S wrote:



>

> Hi Marc,

>

> Thanks for the reply. I am even now vague about how to proceed.

>

> Let me tell you the need :

>

> I have to open http://ww12.1800flowers.com/signin.do and enter my

> email(svenugop...@gmail.com) and password("podhum") in order to login.



Looking at the source of the page, the sign-in form has the following 

pertinent fields --










The field names that would be passed as the POST are 'email' and 

'password'. Now, I don't know what command{} definitions you have for 

check_http or how they're configured so I'll show you how to create a 

new one very specific to this test --



define command {

command_name   check_flowers_login

command_line  $USER1$/check_http -I
$HOSTADDRESS$ -H 

ww12.1800flowers.com -u /signin.do -P 

"email=svenugop...@gmail.com&password=podhum"

}



Set that as the check_command for a service associated with the host 

and nagios will verify that the web server does not return an HTTP 

error after login. Note that if your server returns a standard 200 

response indicating OK even if there is a login error (most likely), 

you'll want to identify a word or string of text that should appear in 

the page after successful login, but not for a failure, and look for 

that with the -s parameter --



define command {

command_name   check_flowers_login

command_line  $USER1$/check_http -I
$HOSTADDRESS$ -H 

ww12.1800flowers.com -u /signin.do -P 

"email=svenugop...@gmail.com&password=podhum" -s "you are logged in"

}



> Though this looks like a lot of hand holding, I have no other go.



My charge is 1 local specialty beer for all Hand Holding Help.



--

Marc






--

This SF.net email is sponsored by:

SourcForge Community

SourceForge wants to tell your story.

http://p.sf.net/sfu/sf-spreadtheword

___

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



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
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] Using nagios check_http for webbasedauthentication

2009-01-22 Thread Venugopal S

Just like that..  Changed it now anyways :)
That apart, please help me out folks as to how I have to go ahead with
nagios ..

-Original Message-
From: Klaus Umbach [mailto:treibh...@sozial-inkompetent.de]
Sent: Thursday, January 22, 2009 7:40 PM
To: Venugopal S
Cc: Marc Powell; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Using nagios check_http for
webbasedauthentication

On 22/01/09 19:25, Venugopal S wrote:
>
> Hi Marc,
>
> Thanks for the reply. I am even now vague about how to proceed.
>
> Let me tell you the need :
>
> I have to open http://ww12.1800flowers.com/signin.do and enter my
> email(svenugop...@gmail.com) and password("podhum") in order to login.

Why did you give us a valid user/password combination? :-)


>
> When I login using the above valid credentials it would take me to the
> next page or otherwise throw an error.
>
> How do I compose the command line for check_http ?
>
> Though this looks like a lot of hand holding, I have no other go.
>
> Can you please help ?
>
> Venu
>
> -Original Message-
> From: Marc Powell [mailto:m...@ena.com]
> Sent: Thursday, January 22, 2009 7:15 PM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Using nagios check_http for web
> basedauthentication
>
>
> On Jan 22, 2009, at 5:50 AM, Venugopal S wrote:
>
> > Hi,
> >
> > Can I do a check on a particular website by supplying the username
> > and password to nagios check_http commandline ?
> >
> > To be clear :
> >
> > Assume that I want to check whether login action happens properly on

> > my website which is www.venu.com. And the login page name is
> www.venu.com/signup.do
> >  . This form would take username and password and send a POST
> > request to www.venu.com/autorize.do. How will i check this in nagios
?
> >
> > If it had been GET method, I would have done that. But in my case,
> > it is POST method
>
> Since you're using forms based authentication, use the -P parameter to

> check_http.
>
> $ ./check_http --help
>
> [chop]
>
>   -P, --post=STRING
>  URL encoded http POST data
>
>
> check_http -I  -H www.venu.com -u /autorize.do -P
> "usernamefield=username&passwordfield=password"
>
> If you need something more complex than that you might want to search
> for past posts about use of perl's WWW::Mechanize or
> Nagios::WebTransact to help create a custom plugin.
>
> Note for future readers, if the site uses standard htaccess
> authentication then '-a username:password' if the format.
>
> --
> Marc
>
>

> --
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> ___
> 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
>
> This email message and its attachments may contain CONFIDENTIAL AND
PRIVILEGED INFORMATION intended for the sole use of the addressee(s). If
you have received it in error, please contact the sender by return
email, notify your system manager and destroy the original message and
any copies thereof. Any review, use, disclosure or distribution is
unlawful. Please check this email and any attachments for the presence
of viruses. The Company accepts no  liability for any damage caused by
any virus transmitted by this email. The views or opinions presented in
this e-mail are solely those of the author and do not necessarily
represent those of the company.
> The Company reserves the right to monitor, review and store the
content of all messages sent to or from this e-mail address.
>
> www.aztecsoft.com
>
>

--
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> ___
> 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
>

--
BOFH excuse #184:

loop found in loop in redundant loopback

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for 

Re: [Nagios-users] Using nagios check_http for web basedauthentication

2009-01-22 Thread Venugopal S

Hi Marc,

Thanks for the reply. I am even now vague about how to proceed.

Let me tell you the need :

I have to open http://ww12.1800flowers.com/signin.do and enter my
email(svenugop...@gmail.com) and password("podhum") in order to login.

When I login using the above valid credentials it would take me to the
next page or otherwise throw an error.

How do I compose the command line for check_http ?

Though this looks like a lot of hand holding, I have no other go.

Can you please help ?

Venu

-Original Message-
From: Marc Powell [mailto:m...@ena.com]
Sent: Thursday, January 22, 2009 7:15 PM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] Using nagios check_http for web
basedauthentication


On Jan 22, 2009, at 5:50 AM, Venugopal S wrote:

> Hi,
>
> Can I do a check on a particular website by supplying the username 
> and password to nagios check_http commandline ?
>
> To be clear :
>
> Assume that I want to check whether login action happens properly on 
> my website which is www.venu.com. And the login page name is
www.venu.com/signup.do
>  . This form would take username and password and send a POST 
> request to www.venu.com/autorize.do. How will i check this in nagios ?
>
> If it had been GET method, I would have done that. But in my case, 
> it is POST method

Since you're using forms based authentication, use the -P parameter to 
check_http.

$ ./check_http --help

[chop]

  -P, --post=STRING
 URL encoded http POST data


check_http -I  -H www.venu.com -u /autorize.do -P 
"usernamefield=username&passwordfield=password"

If you need something more complex than that you might want to search 
for past posts about use of perl's WWW::Mechanize or 
Nagios::WebTransact to help create a custom plugin.

Note for future readers, if the site uses standard htaccess 
authentication then '-a username:password' if the format.

--
Marc


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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

This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
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] Using nagios check_http for web based authentication

2009-01-22 Thread Venugopal S

Hi,



Can I do a check on a particular website by supplying the username and
password to nagios check_http commandline ?



To be clear :



Assume that I want to check whether login action happens properly on my
website which is www.venu.com  . And the login
page name is www.venu.com/signup.do . This form would take username and
password and send a POST request to www.venu.com/autorize.do. How will i
check this in nagios ?



If it had been GET method, I would have done that. But in my case, it is
POST method.



Please help me out.



Thanks

Venu



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
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] Using nagios check_http for web based authentication

2009-01-22 Thread Venugopal S



Hi,



Can I do a check on a particular website by supplying the username and
password to nagios check_http commandline ?



To be clear :



Assume that I want to check whether login action happens properly on my
website which is www.venu.com  . And the login
page name is www.venu.com/signup.do . This form would take username and
password and send a POST request to www.venu.com/autorize.do. How will i
check this in nagios ?



If it had been GET method, I would have done that. But in my case, it is
POST method.



Please help me out.



Thanks

Venu



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
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