Discussion:
Running shell script over ssh
James M
2013-02-28 12:51:03 UTC
Permalink
James M [http://community.zenoss.org/people/James] created the discussion

"Running shell script over ssh"

To view the discussion, visit: http://community.zenoss.org/message/72213#72213

--------------------------------------------------------------
Hey
I'm running Zenoss core 4.23 (OS: CentOS 5.4)

And I'm trying to understand how to add data source on device monitored by SSH (/devices/ssh/linux)
That will call a shell script.

I've configured a script on the remote device (path: /zenoss/zenoss.sh)
And when I'm trying to add a new command with ssh to:
/zenoss/zenoss.sh

I'm getting the next error:


Preparing Command...
Executing command /zenoss/zenoss.sh against 10.2.4.43
/bin/sh: /zenoss/zenoss.sh: No such file or directory
DONE in 0 seconds


I verified that the zenoss user have the proper permissions and I just can't understand how to set this...

Will appreciate any help.

Thanks
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72213#72213]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
kenhen93
2013-03-01 14:32:15 UTC
Permalink
kenhen93 [http://community.zenoss.org/people/kenhen93] created the discussion

"Re: Running shell script over ssh"

To view the discussion, visit: http://community.zenoss.org/message/72241#72241

--------------------------------------------------------------
I have not setup a SSH command data source in Zenoss 4.23 yet but in 3.2 there was a bug that you could not test a SSH command using the test button as it just tried to run it locally. To find out if your command is actually working run 'zencommand run -d <devicename> -v10' and that should show you what your command is doing.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72241#72241]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
James M
2013-03-01 16:12:59 UTC
Permalink
James M [http://community.zenoss.org/people/James] created the discussion

"Re: Running shell script over ssh"

To view the discussion, visit: http://community.zenoss.org/message/72220#72220

--------------------------------------------------------------
Amazing!
fails with "test" but when i run it in the cli it fetch the right results

Thanks!!
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72220#72220]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...