Skip to content

Instantly share code, notes, and snippets.

diff --git a/scripts/zup/post/run_migrates b/scripts/zup/post/run_migrates
index d1e8ef0..b4c955f 100755
--- a/scripts/zup/post/run_migrates
+++ b/scripts/zup/post/run_migrates
@@ -20,7 +20,11 @@ function run_zenmigrate
# Run (set -e should cause this to die when a script fails)
for STEP in $MIGRATE_SCRIPTS; do
- zenmigrate --step=$STEP
+ if [[ $STEP != "the_script_I_do_not_want_to_run" ]]; then
root@vagrant-ubuntu-trusty-64:~# sudo apt-get install -y zenoss-core-service
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
docker-smuggle nfs-kernel-server serviced
The following NEW packages will be installed:
docker-smuggle nfs-kernel-server serviced zenoss-core-service
0 upgraded, 4 newly installed, 0 to remove and 17 not upgraded.
Need to get 16.7 MB of archives.
[root@localhost bin]# netstat -plan | grep 443
tcp6 0 0 :::443 :::* LISTEN 19403/serviced
tcp6 0 0 :::8443 :::* LISTEN 19498/docker-proxy
=ERROR REPORT==== 24-Sep-2014::22:53:36 ===
closing AMQP connection <0.1097.0> (172.17.42.1:34537 -> 172.17.1.85:5672):
{handshake_timeout,handshake}
{
"start":"1h-ago",
"end":"0s-ago",
"series":true,
"downsample":"10s-avg",
"tags":{
},
"returnset":"EXACT",
"metrics":[
2014-09-26 00:10:04,744 DEBUG zen.collector.scheduler: Traceback (most recent call last):
File "/opt/zenoss/lib/python2.7/site-packages/twisted/internet/defer.py", line 306, in addCallback
callbackKeywords=kw)
File "/opt/zenoss/lib/python2.7/site-packages/twisted/internet/defer.py", line 295, in addCallbacks
self._runCallbacks()
File "/opt/zenoss/lib/python2.7/site-packages/twisted/internet/defer.py", line 577, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/opt/zenoss/ZenPacks/ZenPacks.zenoss.EnterpriseCollector-1.6.1-py2.7.egg/ZenPacks/zenoss/EnterpriseCollector/config.py", line 63, in getConfigNames
d = defer.maybeDeferred(superMethod, result, prefs)
--- <exception caught here> ---
I0929 16:46:40.956516 00001 controller.go:609] Starting service process.
I0929 16:46:40.957550 00001 instance.go:79] about to execute: /bin/sh , [-c exec su - zenoss -c "/opt/zenoss/bin/zminion --minon-name {.Name} zminion --redis-address localhost:6380 serve"][2]
Incorrect Usage.
NAME:
zminion - a client for distributed bash executions
USAGE:
zminion [global options] command [command options] [arguments...]
bash-4.2# mount
/dev/sdb on / type btrfs (rw,relatime,seclabel,space_cache)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,nosuid,seclabel,mode=755)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,size=65536k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=666)
sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime,seclabel)
/dev/sdb on /etc/resolv.conf type btrfs (rw,relatime,seclabel,space_cache)
/dev/sdb on /etc/hostname type btrfs (rw,relatime,seclabel,space_cache)
/dev/sdb on /etc/hosts type btrfs (rw,relatime,seclabel,space_cache)
bash-4.2# netstat -plant | grep "172.17.42.1"
tcp 0 0 172.17.0.232:8080 172.17.42.1:53308 ESTABLISHED 36/nginx: worker pr
tcp 0 0 172.17.0.232:8080 172.17.42.1:33712 ESTABLISHED 36/nginx: worker pr
tcp 0 0 172.17.0.232:8080 172.17.42.1:42882 ESTABLISHED 36/nginx: worker pr
tcp 0 0 172.17.0.232:8080 172.17.42.1:36062 ESTABLISHED 36/nginx: worker pr
tcp 0 0 172.17.0.232:8080 172.17.42.1:50429 ESTABLISHED 36/nginx: worker pr
tcp 0 0 172.17.0.232:8080 172.17.42.1:55043 ESTABLISHED 36/nginx: worker pr
tcp 0 0 172.17.0.232:47058 172.17.42.1:4979 ESTABLISHED 1/serviced
tcp 0 0 172.17.0.232:8080 172.17.42.1:45871 ESTABLISHED 36/nginx: worker pr
tcp 0 0 172.17.0.232:8080 172.17.42.1:38807 TIME_WAIT -
diff --git a/src/core/Products/ZenRRD/parsers/ps.py b/src/core/Products/ZenRRD/parsers/ps.py
index bb360f6..6ce6092 100644
--- a/src/core/Products/ZenRRD/parsers/ps.py
+++ b/src/core/Products/ZenRRD/parsers/ps.py
@@ -153,9 +153,11 @@ def matches(processMetrics):
results.values.append( (dp, cpu) )
if 'mem' in dp.id:
results.values.append( (dp, rss) )
- if 'count'in dp.id:
+ if 'count' in dp.id: