![]() |
![]() |
Subject: | Where is ZenDMD? |
Author: | Tim Caiazza |
Posted: | 2014-04-12 13:06 |
I'm running Zenoss 5.0a2 from the virtualbox appliance and I'm looking for the zendmd command but I can't seem to find it. Has zendmd been removed Or is this just because this is still in alpha
Subject: | to access zendmd, attach to |
Author: | Andrew Kirch |
Posted: | 2014-04-15 16:04 |
to access zendmd, attach to the container running Zope in the Zenoss Control Plane, then run zendmd.
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
Subject: | How exactly would I do that? |
Author: | Tim Caiazza |
Posted: | 2014-04-15 16:45 |
How exactly would I do that I'm mainly a network guy with little exposure to linux containers and docker so I'm having trouble figuring it out.
Subject: | access the docker control |
Author: | Andrew Kirch |
Posted: | 2014-04-16 11:26 |
access the docker control plane instead of Zenoss itself (See the instructions on the download page on the wiki). Go to the container running zope, attach to it and run zendmd.
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
Subject: | Jane, |
Author: | [Not Specified] |
Posted: | 2014-04-16 12:51 |
Jane,
This is part we're still working on. Would you do me a favor, hovering over that link, nslookup the hostname and make sure it's valid. I've been fighting with Docker containers making invalid assumptions around DNS.
eg:
machinename.domain.tld
but when you create the container it's:
zenoss5x.machinename.domain.tld
so now you need moar DNS.
Subject: | # installing nsenter on |
Author: | System |
Posted: | 2014-04-17 12:46 |
# installing nsenter on ubuntu
cd /tmp
wget https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24....
bzip2 -d -c util-linux-2.24.tar.bz2 | tar xvf -
cd util-linux-2.24/
sudo ./configure --without-ncurses --prefix=/usr/local/util-linux
sudo make
sudo make install
sudo cp -p /usr/local/util-linux/bin/nsenter /usr/local/bin
sudo nsenter -m -u -i -n -p -t $(pgrep -fl 'serviced.*zopectl'|awk '!/docker/{print $1; exit}') /bin/bash
to run zendmd in the zope container:
sudo nsenter -m -u -i -n -p -t $(pgrep -fl 'serviced.*zopectl'|awk '!/docker/{print $1; exit}') -- su - zenoss -c zendmd
Subject: | nsenter allows you to attach |
Author: | System |
Posted: | 2014-04-17 12:47 |
nsenter allows you to attach to a running container
Here is more info on docker containers:
https://www.docker.io/learn_more/
Subject: | Hey Jane, |
Author: | [Not Specified] |
Posted: | 2014-04-17 13:25 |
Hey Jane,
The alpha doesn't include the command running framework. Services will export commands they support via "serviced run," and zendmd will be the first one implemented. Generic commands will be available, including running each of the daemons in the foreground, installing zenpacks, arbitrary bash, etc.
In the alpha, beyond attaching to running containers (which is not really the preferred way), you can run "serviced shell", which starts up a container in the guise of whatever service you specify. For example:
serviced shell -i Zope su -s /bin/bash zenoss -c "ZENHOME=/opt/zenoss /opt/zenoss/bin/zendmd"
This will get cleaner before release, of course, but that stuff wasn't in the alpha. A lot of features are built on top of that framework in trunk, however.
Subject: | Thanks Ian, |
Author: | [Not Specified] |
Posted: | 2015-06-10 09:26 |
Thanks Ian,
I tried your command but apparently it's missing the "service" keyword.
So, for future reference, the command that worked is:
serviced service shell -i Zope su -s /bin/bash zenoss -c "ZENHOME=/opt/zenoss /opt/zenoss/bin/zendmd"
< |
Previous Need help to Monitor Values of WebApp |
Next Zopectl daemon error |
> |