check_by_ssh plugin - remote command execution failed.

Ismael Puerto ismael.puerto at seres.es
Mon Feb 18 16:33:00 CET 2013


Hello

I think that you should use tha path complete, example:

/system/bin/zpool status syspool

Best regards


On 17/02/13 23:58, saimon michelson wrote:
> Hi,
> 
> I have a question regarding the check_by_ssh plugin.
> 
> 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.
> 
> 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.
> 
> 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.
> 
> example: trying to execute: "zpool status syspool"  ( available on SunOS )
> 
> Remote command execution failed: libexec/check_zpool: line 53: zpool:
> command not found 
> 
> Is there a workaround for this?
> 
> Thanks,
> 
> -- 
> 
> Saimon Michelson
> 
> 
> ------------------------------------------------------------------------------
> The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
> is your hub for all things parallel software development, from weekly thought 
> leadership blogs to news, videos, case studies, tutorials, tech docs, 
> whitepapers, evaluation guides, and opinion stories. Check out the most 
> recent posts - join the conversation now. http://goparallel.sourceforge.net/
> 
> 
> 
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list