Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remote SSH plugin command problem
#1
HI,
I've been trying to get the remote SSH plugin to execute a command with quotes, but seems to fail.

For example, I'd like to get some stats on free diskspace from a Linux box.
The way I'd do that from the bash shell would be something like:

  df /dev/sda6 |awk 'NR>2 {print(\$5+0)}'

And that will give you the percentage of free diskspace.
Going through the remote SSH plugin, it adds single quotes to both sides of the command string, and therefore renders the second part of my check useless (I think).

Any thoughts on how to get it right?
I'd rather have the whole check command in pandora then calling a script on the remote machine.

Cheers,
Jasper


 Reply
#2
Hi japskar,

Have you tried to scape the quotes with \ symbol?

Regards
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes