I am trying to retrieve the free memory on a remote host, that I only have SSH access to. I have setup key based SSH login, and tested that it is working (am using the "zenoss" user). Below 'my.remote.host' has obviously been changed to protect the innocent...
If I run the following on the command line, I get a failure: Code: /usr/local/zenoss/libexec/check_by_ssh -l zenoss -H my.remote.host 'cat /proc/meminfo | grep MemFree | sed "s/MemFree://" | sed "s/^ */|mem=/" | cut -d" " -f1' Could not open pipe: /usr/bin/ssh -l zenoss my.remote.host 'cat /proc/meminfo | grep MemFree | sed "s/MemFree://" | sed "s/^ */|mem=/" | cut -d" " -f1' However, if I run the following, I get a success: Code: /usr/bin/ssh -l zenoss my.remote.host 'cat /proc/meminfo | grep MemFree | sed "s/MemFree://" | sed "s/^ */|mem=/" | cut -d" " -f1' |mem=64696 If/when I get this going, I can use it as an example to retrieve other stats, too (disk space free, etc). Any help much appreciated. -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=18477#18477 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
