可以使用 watcher 和 msprobe 进行监视。请参见失败的服务或未响应服务的自动重新启动和使用 msprobe 和 watcher 功能进行监视
可以使用 SNMP 进行监视。
如果您设置了 SNMP,则这是监视这些进程的一个非常好的方法。请参见附录 A,SNMP 支持。服务器信息位于网络服务监视 MIB 中。
检查日志文件。
查看 msg_svr_base/log/service 目录,其中 service 可以是 http、IMAP 或 POP。在该目录中,您会找到许多日志文件。其中一个文件名是 service 的名称(imap、pop 或 http),其他文件名是服务名称加上序列号以及级联至该服务名称的日期。例如:
imap imap.29.1010221593 imap.31.1010394412 imap.33.1010567224
只具有服务名称的文件是最新的日志。其他文件按序列号排列(在这里是 29、31、33),序列号最大的文件是次新的文件。(请参见第 21 章,管理日志记录。)
如果服务器被关闭,您可能会看到类似如下的内容:
imap.12.1065431243:[07/Oct/2003:01:15:43 -0700] gotmail-2 imapd[20525]: General Warning: Sun Java System Messaging Server IMAP4 6.1 (built Sep 24 2003) shutting down
可以使用 counterutil 进行检查。请参见counterutil和《Sun Java System Messaging Server 6 2005Q4 Administration Reference》中的“counterutil”。
运行特定于平台的命令来验证 imapd、popd 和 httpd 进程是否正在运行。例如,在 Solaris 中,可以使用 ps 命令并查找 imapd、popd 和 mshttpd。
您可以通过设置服务器响应配置参数(如警报邮件中所述)为指定的服务器性能阈值设置警报。
请参见immonitor-access。