<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>plugins in java</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Hi<BR>
<BR>
Is it possible to write nagios pugin in java<BR>
<BR>
I tried to execute a shell script as nagios pugin that executes a java program<BR>
<BR>
That script can be executed successfully in a particularly directory(/home/jj/slof/release/slomonitor)<BR>
<BR>
But when i try to execute that script as a nagios plugin it gives java exception (java.lang.NoClassDefFoundError).<BR>
<BR>
I have defined the command for this plugin in commands.cfg with command_line as<BR>
/home/jj/slof/release/slomonitor/xen_availb.sh where xen_availb.sh is the name of the script<BR>
<BR>
please help<BR>
<BR>
Thanks<BR>
<BR>
Jimmy Mathew<BR>
<BR>
<BR>
------------------------------------------------------------------------------------<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>