Archived community.zenoss.org | full text search
Skip navigation
1069 Views 2 Replies Latest reply: Oct 17, 2011 10:04 AM by bluefox RSS
bluefox Rank: White Belt 26 posts since
Oct 27, 2010
Currently Being Moderated

Oct 15, 2011 2:51 PM

How to use commands in a more sophisticated way

Hi,

 

I am trying to accomplish a few things with commands, all of which I haven't been successful with. All on 3.2.0

 

GOAL 1: Keep an ssh session logged in and updating

Example: ssh root@192.168.1.1 "tail -f \/var\/log\/some_log_file"

 

I want the command screen to stay up and update with whats happening in that log file. but I also want the ssh session to terminate when I close the command output screen.

 

GOAL 2: I want some commands to only be available to certain hosts (through either templates, or anything else).

Example: have a remote reboot command through zenoss, but not for my critical systems.

 

GOAL 3: Run a command with user input

Explanation: simple: how can I prompt the Zenoss user to enter in a password, of a shutdown delay, or anything.  Is this even possible?

 

I'd appreciate any tips.

 

Mike

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    1. Oct 17, 2011 8:18 AM (in response to bluefox)
    Re: How to use commands in a more sophisticated way

    As far as I know, Zenoss Core isn't designed to work that way with commands. In fact, I'm not sure I've really heard of anyone using them much... Generally it's much easier / better to just have a terminal window open to run commands in my experiance.

     

    Now, it is OSS, so I suppose given enough interest, effort, or money, you could possibly convince a community member to write some zenpack for the above, you could develop it yourself, or you could hire a developer to do so.

     

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points