Sun Java System Messaging Server 6.3 Administration Guide

27.8.9 Monitoring Using msprobe and watcher Functions

Messaging Server provides two processes, watcher and msprobe to monitor various system services. watcher watches for server crashes and restarts them as necessary. msprobe monitors server hangs (unresponsiveness). Specifically msprobe monitors the following:

watcher and msprobe are controlled by the configutil options shown in Table 27–5. Further information can be found in 4.5 Automatic Restart of Failed or Unresponsive Services

Table 27–5 msprobe and watcher configutil Options

Options  

Description  

local.autorestart

Enable automatic server restart. Automatically restarts failed or hung services. Default: no 

local.autorestart.timeout

Failure retry time-out. If a server fails more than twice in this designated amount of time, then the system stops trying to restart the server. The value (set in seconds) should be set to a period value longer than the msprobe interval (local.schedule.msprobe). Default: 600 seconds

local.probe.service.timeout

Timeout for a specific server before restart. service can be imap, pop, http, cert, job_controller, smtp, lmtp, mmp or ens.

Default: use service.readtimeout

local.probe.service.warningthreshold

Number of seconds of a specific server’s non-response before a warning message is logged to default log file. service can be imap, pop, http, cert, job_controller, smtp, lmtp, mmp or ens.

Default: Use local.probe.warningthreshold 

local.probe.warningthreshold

Number of seconds of server non-response before a warning message is logged to default log file.

Default: 5 secs 

local.queuedir

MTA queue directory to check if queue size exceeded threshold defined by alarm.diskavail.msgalarmthreshold. 

Default: none 

service.readtimeout

Period of server non-response before restarting that server. See local.schedule.msprobe. 

Default: 10 seconds 

local.schedule.msprobe

msprobe run schedule. A crontab style schedule string (see Table 20–10Note that by default, this is automatically set. See 4.6.2 Pre-defined Automatic Tasks.

To disable: set local.schedule.msprobe.enable to NO.

local.watcher.enable

Enable watcher which monitors service failures. (IMAP, POP, HTTP, job controller, dispatcher, message store (stored), imsched, and MMP. (LMTP/SMTP servers are monitored by the dispatcher and LMTP/SMTP clients are monitored by the job_controller.) Logs error messages to the default log file for specific failures. Default: on

27.8.9.1 Alarm Messages

msprobe can issue alarms in the form of email messages to the postmaster (see 27.6.1.2 To Monitor imapd, popd and httpd) warning of a specified condition. A sample email alarm sent when a certain threshold is exceeded is shown below:


Subject:    ALARM: server response time in seconds of “ldap_siroe.com_389” is 10
Date:    Tue, 17 Jul 2001 16:37:08 -0700 (PDT) 
From:    postmaster@siroe.com 
To:     postmaster@siroe.com 

Server instance: /opt/SUNWmsgsr
Alarmid: serverresponse 
Instance: ldap_siroe_europa.com_389 
Description: server response time in seconds 
Current measured value (17/Jul/2001:16:37:08 -0700): 10 
Lowest recorded value: 0 
Highest recorded value: 10 
Monitoring interval: 600 seconds 
Alarm condition is when over threshold of 10 
Number of times over threshold: 1

            

You can specify how often msprobe monitors disk and server performance, and under what circumstances it sends alarms. This is done by using the configutil command to set the alarm parameters. Table 27–6 shows useful alarm parameters along with their default setting. See configutil Parameters in Sun Java System Messaging Server 6.3 Administration Reference.

Table 27–6 Useful Alarm Message configutil Parameters

Parameter  

Description (Default in parenthesis)  

alarm.msgalarmnoticehost

(localhost) Machine to which you send warning messages. 

alarm.msgalarmnoticeport

(25) The SMTP port to which to connect when sending alarm message. 

alarm.msgalarmnoticercpt

(Postmaster@localhost) Whom to send alarm notice. 

alarm.msgalarmnoticesender

(Postmaster@localhost) Address of sender the alarm. 

alarm.diskavail.msgalarmdescription

(percentage mail partition diskspace available.) Text for description field for disk availability alarm. 

alarm.diskavail.msgalarmstatinterval

(3600) Interval in seconds between disk availability checks. Set to 0 to disable checking of disk usage. 

alarm.diskavail.msgalarmthreshold

(10) Percentage of disk space availability below which an alarm is sent. 

alarm.diskavail.msgalarmthresholddirection

(-1) Specifies whether the alarm is issued when disk space availability goes below threshold (-1) or above it (1). 

alarm.diskavail.msgalarmwarninginterval

(24). Interval in hours between subsequent repetition of disk availability alarms. 

alarm.serverresponse.msgalarmdescription

(server response time in seconds.) Text for description field for servers response alarm. 

alarm.serverresponse.msgalarmstatinterval

(600) Interval in seconds between server response checks. Set to 0 to disable checking of server response. 

alarm.serverresponse.msgalarmthreshold

(10) If server response time in seconds exceeds this value, alarm issued. 

alarm.serverresponse.msgalarmthresholddirection

(1) Specifies whether alarm is issued when server response time is greater that (1) or less than (-1) the threshold. 

alarm.serverresponse.msgalarmwarninginterval

(24) Interval in hours between subsequent repetition of server response alarm.