Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • Remote SSH plugin command problem

    Posted by japskar on octubre 22, 2010 at 01:42

    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

    zarzuelo replied 14 years ago 2 Members · 1 Reply
  • 1 Reply
  • zarzuelo

    Member
    enero 7, 2011 at 16:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi japskar,

    Have you tried to scape the quotes with symbol?

    Regards