Restarting Stopped Processes or Services
Unlike some other monitoring applications, Zenoss Core doesn't have a built-in method to restart process or IP services that it detects as down. However, in version 4.x, with a set of ssh keys and a notification/trigger set it is fairly straight forward to implement on Linux servers.
The first thing you will need to do is generate a new ssh key to use for remote system access. You can create this by running ssh-keygen as the zenoss user as follows:
ssh-keygen -t dsa -f ~/.ssh/id_dsa_restart
You will then need to create an authorized_keys file for the root user on each of your servers or add the public key to an existing one if it already exists. In order to secure the access, the key should be configured to only allow access from your zenoss server and only permit the zenoss user to run /sbin/service to restart services. The entry you will add to /root/.ssh/authorized_keys should look like the following:
# # Zenoss key, limited to /sbin/service for restarting services # from="almonda.anim.dreamworks.com,cia.pdi.com",command="/sbin/service $SSH_ORIGINAL_COMMAND",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty <contents of ~zenoss/.ssh/id_dsa_restart.pub>