3 Replies Latest reply on Jan 16, 2007 10:33 AM by Peter Johnson

    Historical data

    Dick Eimers Newbie

      Via the JBoss Web Console it is possible to create a 'snapshot' for some MBean attribute, which gives me some form of maintaining historical data. However, the snapshots appear to be lost when the server is restarted. Is there a better way (e.g. tools or procedure in the Web Console) to record and view historial data? Am I missing something?

        • 1. Re: Historical data
          Peter Johnson Master

          Are you saying that you want to save changes made to mbeans via Web Console? If so, that is not possible. If you want the change to be permanent, you must modify the original xml configuration file.

          If what you want to do is have several possible 'states' for an mbean and switch from one to another, one way is to set up scripts using twiddle to make the changes, and then run the appropriate script(s).

          • 2. Re: Historical data
            Dick Eimers Newbie

            No, I am saying I want a tool that uses the JMX Mbeans to collect information about some attribute, say jboss.system:type=ServerInfo FreeMemory, given some interval. This information is helpfull when the server crashes or something in the middle of the night. This typical administrator's procedure is often called (historical) data collection.

            • 3. Re: Historical data
              Peter Johnson Master

              Then twiddle is the way to go. You can set up a cron job to run twiddle periodically, dumping the requested values to a file.

              By the way, you could also use Nagios or GroundworkMonitor (they have an open source variant) to do this, but they both use a simple script that uses twiddle. Nagios instructions are at http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossNagiosPlugin