Since installing 2.4.2 I've noticed an issue with the zeopack cron job detailed
below. The issue appears to be caused by the awk regex returning both a
hostname and a port number separated by a colon rather than just a port number.
Unfortunately I'm no expert on awk so I'm a bit stuck.
---------- Log entry ----------------------------
/etc/cron.weekly/zenoss:
invalid literal for int(): localhost:8100
Connect to a ZEO server and ask it to pack.
Usage: zeopack.py [options]
Options:
-p port -- port to connect to
-h host -- host to connect to (default is current host)
-U path -- Unix-domain socket to connect to
-S name -- storage name (default is '1')
-d days -- pack objects more than days old
-1 -- Connect to a ZEO 1 server
-W -- wait for server to come up. Normally the script tries to
connect for 10 seconds, then exits with an error. The -W
option is only supported with ZEO 1.
You must specify either -p and -h or -U.
/opt/zenoss/bin/zeopack.py -p localhost:8100
-------------------------------------------------------------------
--------------- Cron Job ----------------------------------------
--snip --
PORT=`grep address ${ZENHOME}/etc/zeo.conf | head -n 1 | awk '{ print $2 }'`
if [ -z "$ZOPEHOME" ] ; then
ZOPEHOME="$ZENHOME"
fi
$ZOPEHOME/bin/zeopack.py -p ${PORT}
--------------------------------------------------------------------
grep address ${ZENHOME}/etc/zeo.conf | head -n 1 | awk '{ print $2 }' returnes
localhost:8100 rather than 8100 and this seems to be causing the issue.
The install was done on a Centos 5.3 x64 box with a clean install using the rpm
installer
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=38346#38346
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users