zenoss/zenoss-prodbin — pull request #355 by wplu (2014-09-03 18:46:57+00:00)
Title: replaced --pool with --collector

Part 2 of 2 of TA22292:
https://rally1.rallydev.com/#/12213835864d/detail/task/21187103929

Depends on https://github.com/zenoss/platform-build/pull/322

DEMO - attach to zope and send commands to zminion on localhost collector:
```
# plu@plu-9: serviced service attach zope su - zenoss
Last login: Wed Sep 3 19:41:17 BST 2014
(zenoss)[zenoss@19b83ce6938c ~]$ dcsh 'uname -a'

Collector=localhost StdOut/Stderr
-----------------------------------------------------------------
Linux aafc1438cf34 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
I0903 18:41:37.691732 22370 main.go:85] waiting for response for zminion-return-5932a0b8-8d8e-90e8-8bf4-4788b2fd6d54

-----------------------------------------------------------------
(zenoss)[zenoss@19b83ce6938c ~]$ dcsh 'ps -wwef'

Collector=localhost StdOut/Stderr
-----------------------------------------------------------------
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:17 ? 00:00:12 /serviced/serviced service proxy e72z5tb6x1jgpdc65liamfr9v 0 su - zenoss -c '/opt/zenoss/bin/zminion --minion-name zminion_localhost serve'
root 16 1 0 18:17 ? 00:00:00 su - zenoss -c /opt/zenoss/bin/zminion --minion-name zminion_localhost serve
zenoss 17 16 0 18:17 ? 00:00:01 /opt/zenoss/bin/zminion --minion-name zminion_localhost serve
root 4747 1 0 18:41 ? 00:00:00 sh -c /tmp/zenhub_answering245804888
root 4748 4747 0 18:41 ? 00:00:00 sh -c echo hi && sleep 5
root 4749 4747 0 18:41 ? 00:00:00 nc 127.0.0.1 8789
root 4750 4747 0 18:41 ? 00:00:00 grep -q pb
root 4751 4748 0 18:41 ? 00:00:00 sleep 5
zenoss 4761 17 0 18:41 ? 00:00:00 ps -wwef
I0903 18:41:46.439075 22517 main.go:85] waiting for response for zminion-return-c0fd9ab3-cef6-fd09-11dd-de74b8c1b53e

-----------------------------------------------------------------
(zenoss)[zenoss@19b83ce6938c ~]$ dcsh binbaz

Collector=localhost StdOut/Stderr
-----------------------------------------------------------------
I0903 18:41:56.249798 22691 main.go:85] waiting for response for zminion-return-23d2c2b7-6f54-c4bc-3846-f3413e9c3be9
/bin/sh: binbaz: command not found

-----------------------------------------------------------------
(zenoss)[zenoss@19b83ce6938c ~]$ dcsh --help
Usage: RunCommand.py [options]

Options:
--version show program's version number and exit
-h, --help show this help message and exit
-C CONFIGFILE, --configfile=CONFIGFILE
Use an alternate configuration file
--genconf Generate a template configuration file
--genxmltable Generate a Docbook table showing command-line
switches.
--genxmlconfigs Generate an XML file containing command-line switches.
--collector=COLLECTOR_ID
Name of specific collector on which to run the command
--timeout=TIMEOUT Kill the process after this many seconds.

Logging Options:
-v LOGSEVERITY, --logseverity=LOGSEVERITY
Logging severity threshold
--logpath=LOGPATH Override the default logging path; default
$ZENHOME/log
--maxlogsize=MAXLOGKILOBYTES
Max size of log file in KB; default 10240
--maxbackuplogs=MAXBACKUPLOGS
Max number of back up log files; default 3

ZODB Options:
ZODB connection options and MySQL Adapter options.

-R DATAROOT, --zodb-dataroot=DATAROOT
root object for data load (i.e. /zport/dmd)
--zodb-cachesize=ZODB_CACHESIZE
in memory cachesize default: 1000
--zodb-host=ZODB_HOST
hostname of the MySQL server for ZODB
--zodb-port=ZODB_PORT
port of the MySQL server for ZODB
--zodb-user=ZODB_USER
user of the MySQL server for ZODB
--zodb-password=ZODB_PASSWORD
password of the MySQL server for ZODB
--zodb-db=ZODB_DB Name of database for MySQL object store
--zodb-socket=ZODB_SOCKET
Name of socket file for MySQL server connection if
host is localhost
--zodb-cacheservers=ZODB_CACHESERVERS
memcached servers to use for object cache (eg.
127.0.0.1:11211)
--zodb-poll-interval=ZODB_POLL_INTERVAL
Defer polling the database for the specified maximum
time interval, in seconds. This will default to 60
only if --zodb-cacheservers is set.
--zodb-commit-lock-timeout=ZODB_COMMIT_LOCK_TIMEOUT
Specify the number of seconds a database connection
will wait to acquire a database 'commit' lock before
failing (defaults to 30 seconds if not specified).
(zenoss)[zenoss@19b83ce6938c ~]$

```

Required services:
```
# plu@plu-9: serviced service status
NAME	ID	STATUS	UPTIME	HOST	DOCKER_ID	IN_SYNC
└─Zenoss.core	3s7hkpp803wt6jtyg5o5pck7t	Stopped
├─MySQL	2j25zgzdvez0r3bnikuv46yr6	Running	26m51.568282273s	plu-9	1dc01eaea06b	Y
├─zeneventserver	3391ia6goj7r4p2oj6clzo3px	Running	26m44.295008319s	plu-9	bfe8f1140dfe	Y
├─redis	93e6389b6d6hkbabt6cloi1fa	Running	26m59.875157757s	plu-9	eccbbe250c15	Y
├─RabbitMQ	at3fybjtarovpbqy6ih7ocp0n	Running	26m45.835643776s	plu-9	180b5b5cefd2	Y
├─localhost	bi1b6h5mqrnqg5h897jw44elq
│ ├─zenhub	64vx1azuyqv2six9tt79n47q7	Running	26m44.475346444s	plu-9	c07117097b2a	Y
│ └─localhost	d06n26qoxn9xxlbin6ujxevpo
│ ├─zminion	e72z5tb6x1jgpdc65liamfr9v	Running	26m11.771032219s	plu-9	aafc1438cf34	Y
├─Zope	cwc58bg1wa4coso7bx26l8mq3	Running	26m39.187058384s	plu-9	19b83ce6938c	Y
```