OK, I deleted all .zec and .pid files, and after a few restarts
zenactions started again. I forgot to mention that I could run it
manually 'zenactions run' the whole time.

I still get heartbeat errors about the daemons under the old hostname,
though. I acknowledged them, and cleared them in the event manager,
but they keep coming back.

Something I've been wanting to ask about for a while, is "how do I
clear old data about a host?" This is similar, in that lots of old
data I don't want is hanging around. Say I delete a host, and add it
back a few days later... not only are the RRDs still there from the
old host, but all associated settings are too. Has anyone written a
"clear host" script? I can't even find where this data is stored...

The next major release of Zenoss (2.2) will have three checkboxes when deleting a devices that allow you to choose whether you want to delete current events, historical events and/or performance data for the device. Until then a clear_host script might be useful. Here are the things it would have to do:

In MySQL:
        delete from status where device = 'deviceName';
        delete from history where device = 'deviceName';

From command line:
        rm -Rf $ZENHOME/perf/Devices/deviceName
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to