<!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 5.5.2653.12">
<TITLE>Writing Perl plugins for Nagios</TITLE>
</HEAD>
<BODY>
<P><FONT FACE="Times New Roman">Hi,<BR>
I'd like to write some custom Perl nagios plugins for monitoring some of the systems I'm responsible for. Basically most of them boil down to sending an LWP request to a webserver and making sure that the response that comes back is what is expected. What are the basic things that are required for a Perl plugin to work correctly? Are there any gotchas I should look out for? Any insight or examples would be most helpful. </FONT></P>
<P><FONT SIZE=2 FACE="Arial">Basically I want to send a specific LWP request and get the response.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Either the request times out and I get nothing back</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I get a correct response</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Or I get an invalid response telling me a service isn't functioning as expected.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">What do I need to do to get this going?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks in Advance,</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Courier New">Tim Vroom</FONT>
<BR><FONT SIZE=2 FACE="Courier New">GIS Internet Applications Developer</FONT>
<BR><FONT SIZE=2 FACE="Courier New">Northrop Grumman IT</FONT>
<BR><FONT SIZE=2 FACE="Courier New">tvroom@ci.grand-rapids.mi.us</FONT>
</P>
</BODY>
</HTML>