![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| ||
Introducing Daemon Monitor StatisticsThe 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 StatisticsThis section describes the Daemon Monitor statistics available from the NMA on the master node. PmdMasterStatisticsMBeanThe PmdMasterStatisticsMBean MBean provides the nametags of all daemons currently being monitored. Getting All NametagsTo 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 StatisticsThis section describes the Daemon Monitor statistics collected by the NMA on each peer node. PmdStatisticsMBeanThe PmdStatisticsMBean provides a list of all the nametags monitored by the Daemon Monitor. Getting All NametagsTo return all the nametags managed by the Daemon Monitor, invoke the getNameTags method. The getNameTags method takes no parameters, and returns a String[]. PmdNameTagStatisticsMBeanThe 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:
One instance of this MBean is instantiated for each Daemon Monitor by the Daemon Monitor service. Getting the Daemon Monitor NametagTo 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 NametagTo 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 RetriesTo 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 NametagTo number of restart retries already attempted for this nametag, invoke the getRetryCount method. The getRetryCount method takes no parameters, and returns an int. | ||
| ||
![]() |