it's not hard.. i mean really, a little digging around on google, or even just reading the nagios docs should show you how to do it.<br><br><br><br><div class="gmail_quote">On Wed, Feb 3, 2010 at 8:59 PM, mostafa yasin <span dir="ltr"><<a href="mailto:mostafayasin@hotmail.co.uk">mostafayasin@hotmail.co.uk</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;">
<div>
Dear Sir;<br><br>Thank you very much for your help. I have copied the script into /usr/local/nagios/libexec<br>and it 's executable and owned by root user. when i run the script manually, it 's running.<br>But how to:<div class="im">
<br><p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>-<font face="Times New Roman" size="1"><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></font></span></span></font><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Write a check command that calls the
<span>plugin</span>; if you don’t know it already, you’ll be able to work out the syntax by looking at some of the other check commands in your
<span>nagios</span> /etc/ directory, in commands.cfg.</span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>-<font face="Times New Roman" size="1"><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></font></span></span></font><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Add a service definition for your
<span>iptables</span> host that uses the check command.</span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></font></p><br></div><div class="im"><div>
<p style="margin-right: 0px;">---</p>
<p style="margin-right: 0px;">Best Regards,,</p>
<p style="margin-right: 0px;"> </p>
<p style="margin-right: 0px;"><b>Mostafa Yasin</b></p>
<p style="margin-right: 0px;">Linux System Engineer.</p></div><br><br><br><br><hr></div>From: <a href="mailto:Ian.Rarity@espc.com" target="_blank">Ian.Rarity@espc.com</a><div class="im"><br>To: <a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a><br>
</div>Date: Wed, 3 Feb 2010 09:10:24 +0000<br>Subject: Re: [Nagiosplug-help] nagios plugins<div><div></div><div class="h5"><br><br>
<div>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);">You’ll need to:</span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>-<font face="Times New Roman" size="1"><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></font></span></span></font><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Copy the script to your
<span>plugins</span> directory (/<span>usr</span>/local/<span>nagios</span>/<span>libexec</span> by default) and make sure that it’s executable.</span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>-<font face="Times New Roman" size="1"><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></font></span></span></font><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Write a check command that calls the
<span>plugin</span>; if you don’t know it already, you’ll be able to work out the syntax by looking at some of the other check commands in your
<span>nagios</span> /etc/ directory, in commands.cfg.</span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>-<font face="Times New Roman" size="1"><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
</span></font></span></span></font><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Add a service definition for your
<span>iptables</span> host that uses the check command.</span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Ta,</span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);">IR.</span></font></p>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></font></p>
<div>
<p><font color="black" face="Calibri" size="2"><span style="font-size: 11pt; color: black;">=-=-=-=-=-=-=-=-=-=-=</span></font></p>
<p><font color="black" face="Calibri" size="2"><span style="font-size: 11pt; color: black;">Ian Rarity</span></font></p>
<p><font color="black" face="Calibri" size="2"><span style="font-size: 11pt; color: black;">IT Services Engineer</span></font></p>
<p><font color="black" face="Calibri" size="2"><span style="font-size: 11pt; color: black;">ESPC (UK) Ltd.</span></font></p>
<p><font color="black" face="Calibri" size="2"><span style="font-size: 11pt; color: black;">0131-624-8000</span></font></p>
<p><font color="black" face="Calibri" size="2"><span style="font-size: 11pt; color: black;">07823-530-317</span></font></p>
<p><font color="black" face="Calibri" size="2"><span style="font-size: 11pt; color: black;"><a href="mailto:ian.rarity@espc.com" target="_blank">ian.rarity@espc.com</a></span></font></p>
<p><font color="black" face="Calibri" size="2"><span style="font-size: 11pt; color: black;">=-=-=-=-=-=-=-=-=-=-=</span></font></p>
</div>
<p><font color="#1f497d" face="Calibri" size="2"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></font></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-weight: bold;" lang="EN-US">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt;" lang="EN-US">
mostafa yasin [mailto:<a href="mailto:mostafayasin@hotmail.co.uk" target="_blank">mostafayasin@hotmail.co.uk</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> 02 February 2010 17:44<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:nagiosplug-help@lists.sourceforge.net" target="_blank">nagiosplug-help@lists.sourceforge.net</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [Nagiosplug-help] nagios plugins</span></font></p>
</div>
</div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p style="margin-bottom: 12pt;"><font face="Verdana" size="2"><span style="font-size: 10pt;">Dear All;<br>
<br>
I have installed nagios-3.1.2 and i<br>
want a plugin to monitor iptables service. When i searched on the<br>
internet i found a script called check_iptables.sh on the site <a href="http://www.monitoringexchange.org/inventory/Check-Plugins/Network/check_iptables" target="_blank">http://www.monitoringexchange.org/inventory/Check-Plugins/Network/check_iptables</a><br>
<br>
how to use this script as a nagios plugin?<br>
<br>
</span></font></p>
<div>
<p><font face="Verdana" size="2"><span style="font-size: 10pt;">---</span></font></p>
<p><font face="Verdana" size="2"><span style="font-size: 10pt;">Best Regards,,</span></font></p>
<p><font face="Verdana" size="2"><span style="font-size: 10pt;"> </span></font></p>
<p><b><b><font face="Verdana" size="2"><span style="font-size: 10pt;">Mostafa Yasin</span></font></b></b><font face="Verdana" size="2"><span style="font-size: 10pt;"></span></font></p>
<p><font face="Verdana" size="2"><span style="font-size: 10pt;">Linux System Engineer.<span style="background: white none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"></span></span></font></p>
</div>
</div>
<br>
<hr>
<font color="Gray" face="Arial" size="2">Follow us on Twitter at <a href="http://twitter.com/espc" target="_blank">http://twitter.com/espc</a><br>
<br>
Private and Confidential: This e-mail transmission is strictly confidential and intended solely for the addressee. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, disclose, distribute or take
any action in reliance on it. If you have received this e-mail in error, please delete it and notify our E-mail Systems Administrator on +44 (0) 131 624 8000. ESPC (UK) Ltd does not accept any liability for any harm that may be caused to the recipient's system
or data by this message or any attachment.<br>
<br>
ESPC (UK) Ltd is a company registered under the Companies Acts in Scotland (Registered Number SC203585), and having its registered office at 90A George Street, Edinburgh, Midlothian EH2 3DF.<br>
<br>
ESPC (UK) Ltd is an Appointed Representative of Accord Consultancy which is authorised and regulated by the Financial Services Authority.<br>
</font> <br></div></div><div class="hm"><hr>Not got a Hotmail account? <a href="http://clk.atdmt.com/UKM/go/197222280/direct/01/" target="_blank">Sign-up now - Free</a></div></div>
<br>------------------------------------------------------------------------------<br>
The Planet: dedicated and managed hosting, cloud storage, colocation<br>
Stay online with enterprise data centers and the best network in the business<br>
Choose flexible plans and management services without long-term contracts<br>
Personal 24x7 support from experience hosting pros just a phone call away.<br>
<a href="http://p.sf.net/sfu/theplanet-com" target="_blank">http://p.sf.net/sfu/theplanet-com</a><br>_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>Stephen<br>Sent from Sydney, Nsw, Australia