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 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 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 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 would run this script and then create a new service that would trigger this command and mail the results?<br><br><br>Thanks,<br>Tõnis<br>