Archived community.zenoss.org | full text search
Skip navigation
17222 Views 13 Replies Latest reply: Apr 28, 2010 9:53 AM by ngarciait RSS
ngarciait Rank: White Belt 12 posts since
Apr 27, 2010
Currently Being Moderated

Apr 27, 2010 11:53 AM

Zenplugin, Modeling SSH, Command Not Found

Hey guys, newbie here. I'm trying to model one of my linux servers using SSH and zenplugin.

 

A lot of the moedeling is working ok, except for a few like mem and cpu.

 

The event I get after modelling is:

 

message         Cmd: /usr/bin//zenplugin.py mem -  Code: 127 - Msg: Command not found

 

I run the command "zenplugin.py mem" on the server itself and the output shows fine:

 

MEM OK;|memAvailReal=46813184 hrSwapSize=6081867776 hrMemorySize=2075521024 pageSize=4096 memAvailSwap=6077632512

 

It looks like the script is adding an extra "/" after /usr/bin//

 

Anyone have any ideas?

  • guyverix ZenossMaster 846 posts since
    Jul 10, 2007
    Currently Being Moderated
    3. Apr 27, 2010 2:39 PM (in response to ngarciait)
    Re: Zenplugin, Modeling SSH, Command Not Found

    Is this path built into your zencommand path in zProperties?

  • Matt Ray Rank: Zen Master 2,484 posts since
    Apr 5, 2008
    Currently Being Moderated
    5. Apr 27, 2010 4:42 PM (in response to ngarciait)
    Re: Zenplugin, Modeling SSH, Command Not Found

    Tangential to the parent post... zenplugins are deprecated and not recommended for SSH modeling/monitoring.  Take a look at the Linux Monitor, Ubuntu Linux and OpenSolaris ZenPacks (and many more SSH-based ZenPacks) for replacing this functionality.

  • Matt Ray Rank: Zen Master 2,484 posts since
    Apr 5, 2008
    Currently Being Moderated
    7. Apr 27, 2010 10:23 PM (in response to ngarciait)
    Re: Zenplugin, Modeling SSH, Command Not Found

    The /Server/Linux device class is SNMP-based and the /Server/SSH/Linux uses SSH.  If you put them in the same device class their modeler plugins and performance templates would conflict.

     

    Thanks,

    Matt Ray

    Zenoss Community Manager

    community.zenoss.org

    mray@zenoss.com

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    9. Apr 28, 2010 8:34 AM (in response to ngarciait)
    Re: Zenplugin, Modeling SSH, Command Not Found

    I'm not aware of one as you could set it up however you like - by

    binding templates and selecting collectors.

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

     

     

     

    ngarciait wrote, On 4/27/2010 11:29 PM:

    Is there any document that shows some kind of class - modeling mapping?

     

    You say /Server/SSH/Linux is SSH based modeling

    and /Server/Linux is SNMP based modeling

     

    I know that there can be many types of classes...so..just wondering.

    >

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    12. Apr 28, 2010 9:32 AM (in response to ngarciait)
    Re: Zenplugin, Modeling SSH, Command Not Found

    Yes, that's what he meant - the built in classes are pre-set with

    appropriate Templates and collector plugins. However, in the Zenoss

    world, you do want to separate out by device classes different

    monitoring methods - that's how it works.

     

    It makes almost no sense to try and hit a server with both SSH and SNMP

    for the same thing, knowing that you're at best getting duplicate

    graphs, and more likely one of the methods is getting constant access

    denied errors that generate events etc. . .

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

     

     

     

    ngarciait wrote, On 4/28/2010 9:30 AM:

    James, that's what I thought too. Zenoss gives you a lot of flexibility when it comes to creating classes to assign devices and zProperties to,

    and to limit each class to only one type of modeling service seems restrictive, unless what Matt was talking about

    was certain, "pre-built" or default classes are customized for a particular modeling service,

    like /Server/Linux would be SNMP based.

    >

More Like This

  • Retrieving data ...

Legend

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