7. Troubleshooting Zenoss Daemons

When Zenoss is having an issue, it will write stack traces into its log files. These log files are important for deciphering exactly what went wrong with the application. This section demonstrates how to generate a stack trace. This will generate a stack trace where you can see errors in the log.

  1. While logged in as the zenoss user, stop all zenoss processes.

  2. Shut Down MySQL.

    $ sudo service mysqld stop
  3. Start the Zope Object Database.

    $ zeoctl start
  4. Run zenperfsnmp in the foreground in debug mode.

    $ zenperfsnmp run
  5. Notice there are stack traces saying that the daemon can’t connect to zenoss.

  6. Start Zope.

    $ zopectl start
  7. Go to dashboard and see the error message “Lost connection to Zenoss”. This error on the dashboard can appear for many reasons related to the loss of connectivity or some back end failure of the system.

  8. Look for a more useful error in the zope log file $ZENHOME/log/event.log.

  9. Restart mysqld.

    $ sudo service mysqld start
  10. Restart Zenoss.

    $ zenoss start
  11. Look at the end of all zenoss log files for any errors.

    $ tail $ZENHOME/log/*.log | less