<html><body><br>Hi<br><br><br>As per the instruction we did the same and my scripts working fine in nagios<br><br>Regards<br>Sunil Naikwadi<br><br><br>----- Original Message ----- <br>From: Liu Lantao <liULANTAO@GMAIL.COM><br>To: sunilnaikwadi04@indiatimes.com <br>Cc: Nagios Plugin Development Mailing List <NAGIOSPLUG-DEVEL@LISTS.SOURCEFORGE.NET><br>Sent: Mon, 3 Aug 2009 08:20:59 +0530 (IST) <br>Subject: Re: [Nagiosplug-devel] How to use my shell script in Nagios <br><br>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><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><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" target=_blank>sunilnaikwadi04@indiatimes.com</A>></span> wrote:<br><br>
<blockquote class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: #cccccc 1px solid">Dear team<br><br><br><br><br><br>Please let us know how i Use my monitor.sh scripts in Nagios plugin<br><br><br><br><br><br><br><br><br><br>Regards<br><br>Sunil Naikwadi<br><br><br><br><br><br>--<br><br>Click for exclusive coverage on the New Bajaj Pulsar 220 the fastest Indian bike<br><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><br>------------------------------------------------------------------------------<br><br>Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br><br>trial. Simplify your report design, integration and deployment - and focus on<br><br>what you do best, core application coding. Discover what's new with<br><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>_______________________________________________________<br><br>Nagios Plugin Development Mailing List <A href="mailto:Nagiosplug-devel@lists.sourceforge.net" target=_blank>Nagiosplug-devel@lists.sourceforge.net</A><br><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><br>::: Please include plugins version (-v) and OS when reporting any issue.<br><br>::: Messages without supporting info will risk being sent to /dev/null<br><br></blockquote></DIV><br><br><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/" target=_blank>http://www.liulantao.com/</A> .<br><br>------<br><br><BR>
<html>
<body>
<br>
--<br>
<a href="http://www.zigwheels.com/Features/Bajaj-Pulsar-220-DTSi-Special-Coverage/Pulsar_20090623-1-1">Click for exclusive coverage on the New Bajaj Pulsar 220 the fastest Indian bike</a>
</body>
</html
<BR></body></html>