ZenDS (MySQL 5.5)

  • Stop ZenDS (the new datastore in Zenoss v4.0)
    • /etc/init.d/zends stop
  • Install Location
    •  /opt/zends 
  • Output when zends is initially installed
    • Successfully installed Zenoss Datastore under /opt/zends.
      To start the ZenDS server run the following as root:
              # chkconfig --add zends
              # service zends start
      To connect to the ZenDS server through a client:
              $ su - zenoss
              $ zends
      To view current settings, start the server and run:
              zends -e "show variables;"
      The default configuration is located here:

ZEP (Zenoss Event Processor)

  • Reset your ZEP instance to zero (There are newer, more accurate instructions on case from LANL)
    • To 'reset' your instance to zero, you need to clear the data base and remove the index:
      $ zeneventserver-create-db --force
      $ rm -rf $ZENHOME/var/zeneventserver/*
      The first command drops the ZEP database and recreates the schema. The second command removes the index; In the event that ZEP starts up and there are no index files, it will recreate the index from scratch with the events that it has. If you drop the database first, when zeneventserver starts back up it will 'sync' the index back to zero. make sure to restart zeneventserver.
      I do the above often while developing.
  • Put zeneventserver daemon (java) into debug log mode
    • edit $ZENHOME/etc/zeneventserver/logback.xml to change the logging level
      wait up to ~60 seconds i believe for changes to be refreshed
      what you want to do is edit lines like these:
      <logger name="com.zenoss" level="${ZENOSS_LOG_LEVEL:-INFO}" />
      to be:
      <logger name="com.zenoss" level="DEBUG" />
      those changes will take effect when the configuration file is scanned to check for updates and also take effect on the next launch
  • See event queues
    • rabbitmqctl -p /zenoss list_queues
  • where does zends log to?
    • /opt/zends/data/<hostname>.err
      /opt/zends/data/zenoss_zep and /zodb is also where the individual table database files get stored


  • zenrrdcached purpose
    • is to cache writes to smooth out file accesses on the filesystem
      we do pretty much nothing but wrap rrdcached, which comes with rrdtool 1.4+
  • Increase RAM usage for zeneventserver
    • # increase the ram for the zeneventserver daemon
      # set this in the .profile
      # should have the customer schedule a reboot of the server for this to be permanent
      export DEFAULT_ZEP_JVM_ARGS="-server -Xmx2048m"
      # reload the shell init file (you changed it above), and restart zeneventserver daemon
      source ~/.profile && zeneventserver restart
technology/zenoss/useful_commands_zenoss4.txt · Last modified: 08.29.2011 11:20 by nyeates1
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki