<div dir="ltr"><div>Hi,</div><div><br></div><div>I have a question regarding the check_by_ssh plugin.</div><div><br></div><div>I have a Linux server running a Nagios-core server and i am developing a plugin to obtain information from a remote SunOS host over SSH.</div>
<div><br></div><div>I assumed that the way it works is that the nagios establishes a SSH connection with the remote host, executes the plugin, fetches the output and return code and displays it on the server.</div><div><br>
</div><div>But, since my script uses a command available only in SunOS by default, the check_by_ssh plugin returns an error saying that the remote-command was not found.</div><div><br></div><div>example: trying to execute: "zpool status syspool"  ( available on SunOS )</div>
<div><br></div><div><span style="font-family:arial,verdana,serif;font-size:11px;background-color:rgb(255,221,170)">Remote command execution failed: libexec/check_zpool: line 53: zpool: command not found </span></div><div>
<br></div><div>Is there a workaround for this?</div><div><br></div><div>Thanks,</div><div><br></div>-- <br><div dir="ltr"><br><div>Saimon Michelson</div></div>
</div>