calling a java program from nagios

Venugopal S venugopals at aztecsoft.com
Fri Jan 30 14:05:18 CET 2009


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:marc at 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 <argument>" 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:marc at 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 at 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 at 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





More information about the Users mailing list