<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 12pt Tahoma">
<DIV>>>> Calvin Crutchfield <ccrutchfield@incodewireless.com> 4/25/2005 4:40 PM >>><BR>[SNIP]</DIV>
<DIV>Question:<BR>I need to execute a custom script via check_by_ssh on remote nodes.<BR>I am a little confused about what it takes to use a script as a plugin. </DIV>
<DIV style="COLOR: #000000"> </DIV>
<DIV style="COLOR: #000000">[SNIP]<BR>
<DIV> </DIV>
<DIV>Try this:</DIV>
<DIV><A href="http://nagiosplug.sourceforge.net/developer-guidelines.html">http://nagiosplug.sourceforge.net/developer-guidelines.html</A>  Pay particular attention to return codes.</DIV>
<DIV> </DIV>
<DIV>>I want to start simple then I can deduce what I need to do to incorporate my<BR>larger scripts.  </DIV>
<DIV> </DIV>
<DIV>Good idea.</DIV>
<DIV> </DIV>
<DIV>>If this is simple please help  as I was not able to grasp the plugins document very well.</DIV>
<DIV> </DIV>
<DIV>It is very simple.  See the link above.  To see some live examples, look at some of the Perl plugins you probably already have installed like check_file_age, check_breeze, check_disk_smb, check_dsdb, etc.  They do not have to be compiled C code.  Bash, Perl, python, VB, C, etc can all be used.  It's all a matter of what gets returned to Nagios.</DIV>
<DIV> </DIV>
<DIV>>If making your scripts into plugins is a big deal, I would be willing to pay a reasonable fee for some consultation.<BR></DIV>
<DIV>It's not, since plugins can be scripts.  I have written several wrapper scripts for other plugins of to format output from other plugins.  It's not that hard once you read the docs and see what is expected as a return code and value.</DIV></DIV>
<DIV style="COLOR: #000000"> </DIV>
<DIV style="COLOR: #000000">HTH!</DIV></BODY></HTML>