On Nov 20, 2008, at 11:18 PM, dksprout wrote:
> I've upgraded my Zenoss installation from 2.1.2 to 2.2.0, then to
> 2.3.0 (running on CentOS 5) and now I'm working my way through the
> last of the smaller tasks of my project.
>
> I've been looking for a way to disable the zenjmx and zenwin daemons
> while keeping the zenpacks installed. Basically, I'd like to disable
> them from starting when Zenoss starts. We may need these in the
> future, but don't need them running right now.
>
> I thought I read something yesterday that told how to do this, but
> after a bunch of searching and reading today I can't seem to find it.
>
> Is it possible (or even desirable) to do this?
2.3 has a new way to go about this selective enabling/disabling of
daemons. Here's how you use it. This should all be done as the zenoss
user.
# Create the following blank file to tell Zenoss you're controlling
the daemon list
touch $ZENHOME/etc/DAEMONS_TXT_ONLY
# Specify the daemons that you do want started in the daemons.txt file
cat <<EOF>$ZENHOME/etc/daemons.txt
zeoctl
zopectl
zenhub
zenping
zensyslog
zenstatus
zenactions
zentrap
zenmodeler
zenperfsnmp
zencommand
zenprocess
EOF
# Stop the unwanted daemons
zenwin stop
zeneventlog stop
zenjmx stop
# Clear the heartbeats so you don't get heartbeat failure events
mysql -uzenoss -pzenoss events -e "delete from heartbeat where
component in ('zenwin', 'zeneventlog', 'zenjmx')"
# Check to see that the list of daemons is the one you want
zenoss status
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users