Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

Introducing Daemon Monitor Statistics

The Daemon Monitor statistics are useful in maintaining awareness of processes that fail, and processes that are unable to restart within the allowed number of retries. Access to the PIDs of the processes allows for the monitoring of these processes using standard Solaris operating system commands.


Note - Daemon Monitor statistics are cached. The com.sun.nhas.ma.pmd.cache.validity and com.sun.nhas.ma.pmd.polling properties in the nma.properties file control the Daemon Monitor polling interval and cache data validity period. If the values of these properties are set too low, the cache might be refreshed before all statistics cached in the previous polling period are read. The default values should be sufficient in most cases.


See "Daemon Monitor" in Netra High Availability Suite Foundation Services 2.1 6/03 Overview for more information about the Daemon Monitoring service.

Daemon Monitor Master Statistics

This section describes the Daemon Monitor statistics available from the NMA on the master node.

PmdMasterStatisticsMBean

The PmdMasterStatisticsMBean MBean provides the nametags of all daemons currently being monitored.

Getting All Nametags

To return all the nametags managed by the NMA, invoke the getNameTags method. The getNameTags method takes no parameters, and returns a String[].

Daemon Monitor Node Statistics

This section describes the Daemon Monitor statistics collected by the NMA on each peer node.

PmdStatisticsMBean

The PmdStatisticsMBean provides a list of all the nametags monitored by the Daemon Monitor.

Getting All Nametags

To return all the nametags managed by the Daemon Monitor, invoke the getNameTags method. The getNameTags method takes no parameters, and returns a String[].

PmdNameTagStatisticsMBean

The PmdNameTagStatisticsMBean MBean provides information about the number of attempts that can be made to restart a daemon, and the number of attempts that have already been made. This MBean is the source of:

  • A NhasPmdMaxRetriesNotification, which is sent whenever the maximum allowed number of retry attempts is exceeded.

  • A AttributeValueChangeNotification, which is sent whenever the number of allowed retry attempts is changed.

  • A NhasPmdNewNameTagNotification, which is sent whenever the Daemon Monitor creates a new nametag.

  • A NhasPmdNewNameTagNotification, which is sent whenever the Daemon Monitor removes a nametag from the collection.

One instance of this MBean is instantiated for each Daemon Monitor by the Daemon Monitor service.

Getting the Daemon Monitor Nametag

To get the nametag that the PmdNameTagStatisticsMBean MBean is providing data on, invoke the getNameTag method. The getNameTag method takes no parameters, and returns a String.

Getting the PIDs Associated With a Nametag

To get the list of process IDs associated with this nametag, invoke the getPidList method. The getPidList method takes no parameters, and returns an int[].

Getting the Daemon Monitor Maximum Retries

To get the maximum number of restart retries allowed for this nametag, invoke the getMaxRetryCount method. The getMaxRetryCount method takes no parameters, and returns an int.

Getting the Number of Retries for a Nametag

To number of restart retries already attempted for this nametag, invoke the getRetryCount method. The getRetryCount method takes no parameters, and returns an int.

Previous Previous     Contents     Index     Next Next