Pages: [1]   Go Down
Author Topic: Remote SSH plugin command problem  (Read 352 times)
0 Members and 1 Guest are viewing this topic.
japskar
Newbie
*

Karma: 0
Offline Offline

Posts: 3


View Profile
« on: October 21, 2010, 10:42:51 PM »

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


Logged

zarzuelo
Full Member
***

Karma: 1
Offline Offline

Posts: 25


View Profile
« Reply #1 on: January 07, 2011, 01:59:24 PM »

Hi japskar,

Have you tried to scape the quotes with \ symbol?

Regards
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST