Hi,<br><br>  You should place your monitor.sh into /usr/local/nagios/libexec/ first, then define the command in the config file, /usr/local/nagios/etc/object/commands.cfg for example. then you can define your services using this command.<br>
  the command may like this:<br> define command{<br>        command_name    check-my-monitor<br>        command_line    $USER1$/monitor.sh $ARG1$<br>}<br>and your service may like this:<br>define service{<br>        use                             local-service<br>
        host_name                       localhost<br>        service_description             My-Monitor<br>        check_command                   check-my-monitor<br>        }<br><br><br><br><div class="gmail_quote">On Sat, Aug 1, 2009 at 5:13 AM, sunil naik <span dir="ltr"><<a href="mailto:sunilnaikwadi04@indiatimes.com">sunilnaikwadi04@indiatimes.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear team<br>
<br>
<br>
Please let us know how i Use my monitor.sh scripts in Nagios plugin<br>
<br>
<br>
<br>
<br>
Regards<br>
Sunil Naikwadi<br>
<br>
<br>
--<br>
Click for exclusive coverage on the New Bajaj Pulsar 220 the fastest Indian bike<br>
<a href="http://www.zigwheels.com/Features/Bajaj-Pulsar-220-DTSi-Special-Coverage/Pulsar_20090623-1-1" target="_blank">http://www.zigwheels.com/Features/Bajaj-Pulsar-220-DTSi-Special-Coverage/Pulsar_20090623-1-1</a><br>
<br>
------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what's new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>
_______________________________________________________<br>
Nagios Plugin Development Mailing List <a href="mailto:Nagiosplug-devel@lists.sourceforge.net">Nagiosplug-devel@lists.sourceforge.net</a><br>
Unsubscribe at <a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br><br clear="all"><br>-- <br>Liu Lantao<br>College of Information Science and Technology, Beijing Normal University<br>EMAIL: liulantao ( at ) gmail ( dot ) com ; <br>WEBSITE: <a href="http://www.liulantao.com/">http://www.liulantao.com/</a> .<br>
------<br>