mfallone
2013-01-25 19:43:19 UTC
mfallone [http://community.zenoss.org/people/mfallone] created the discussion
"Zenoss 4.2 - Password fail for custom SSH command"
To view the discussion, visit: http://community.zenoss.org/message/71226#71226
--------------------------------------------------------------
I am testing a custom SSH command for Zenoss where I would like to connect into each machine and run a script, the monitored server is already configured for SSH modelling and is reporting stats correctly.Â
The custom ssh command I created is:
${device/zCommandProtocol} -vv ${device/zCommandUsername}@${device/manageIp} -p ${device/zCommandPort} uptime
which should just log in and output the uptime. When running this directly from a command prompt on the Zenoss server it succeeds after I enter in my password, which is expected.Â
However, when I run this from the Zenoss UI (Infrastructure > Device > Commands > ssh_test) I receive the error 'permission denied', and the auth.log on the monitored server shows an invalid password.
I had thought (maybe incorrectly) that Zenoss would use the zCommandPassword when prompted, is this the case? if not how should I go about connecting in using SSH and username/password authentication?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71226#71226]
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]
"Zenoss 4.2 - Password fail for custom SSH command"
To view the discussion, visit: http://community.zenoss.org/message/71226#71226
--------------------------------------------------------------
I am testing a custom SSH command for Zenoss where I would like to connect into each machine and run a script, the monitored server is already configured for SSH modelling and is reporting stats correctly.Â
The custom ssh command I created is:
${device/zCommandProtocol} -vv ${device/zCommandUsername}@${device/manageIp} -p ${device/zCommandPort} uptime
which should just log in and output the uptime. When running this directly from a command prompt on the Zenoss server it succeeds after I enter in my password, which is expected.Â
However, when I run this from the Zenoss UI (Infrastructure > Device > Commands > ssh_test) I receive the error 'permission denied', and the auth.log on the monitored server shows an invalid password.
I had thought (maybe incorrectly) that Zenoss would use the zCommandPassword when prompted, is this the case? if not how should I go about connecting in using SSH and username/password authentication?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71226#71226]
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]