Doesn't nrpe require some installation on the remote machine?<br>I can't install that plugin to the remote machine so ill trie to get it done with check_by_ssh.<br>As i understand it doesn't require any additional plugins on the remote.<br>
<br>But what puzzles me the most, is how Nagios will send the result of the script check in the alarm notification.<br>Script echoes back some text and i can't figure out how to send that text back in the notification if result <>OK<br>
<br>I guess there has to be some check on Nagios side regarding the result, where i should specify what is and what is not OK. But is there anything i should do, so that Nagios would be able to actually fetch the result and send it in the notification?<br>
<br>Tõnis<br><br><div class="gmail_quote">On 3 May 2011 17:45, Assaf Flatto <span dir="ltr"><<a href="mailto:nagios@flatto.net">nagios@flatto.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">Tõnis Trei wrote:<br>
> Hello,<br>
><br>
> Im quite new at Nagios and have run into a small problem.<br>
><br>
> I need to trigger a script with a parameter on a remote machine and<br>
> based on the result trigger an alarm or not.<br>
> But im at little loss on how to set it up.<br>
><br>
> Script is located in /etc/init.d/script.sh on a remote machine and i<br>
> should run it as "/etc/init.d/script.sh X" where x is the parameter.<br>
> Script returns me the result, eather OK or some text and in case of<br>
> not being ok, i want to send this text out with an email.<br>
><br>
> So im wondering that should i specifie a command in command.cfg that<br>
> would run this script and then create a new service that would trigger<br>
> this command and mail the results?<br>
><br>
><br>
> Thanks,<br>
> Tõnis<br>
</div></div>The basic way is to do this over nrpe ,<br>
you need to make sure that nrpe ios complied with the command-args<br>
option and then you can pass the parameter you want to the script you<br>
want to trigger .<br>
for more information on NRPE<br>
<a href="http://nagios.sourceforge.net/docs/3_0/addons.html#nrpe" target="_blank">http://nagios.sourceforge.net/docs/3_0/addons.html#nrpe</a><br>
<br>
Assaf<br>
<br>
------------------------------------------------------------------------------<br>
WhatsUp Gold - Download Free Network Management Software<br>
The most intuitive, comprehensive, and cost-effective network<br>
management toolset available today. Delivers lowest initial<br>
acquisition cost and overall TCO of any competing solution.<br>
<a href="http://p.sf.net/sfu/whatsupgold-sd" target="_blank">http://p.sf.net/sfu/whatsupgold-sd</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>