Use logging for most troubleshooting activities. By default
the monitors log to api.log. Logging to /var/adm/syslog/syslog.log is ON by default for the disk monitor and OFF by default for the remaining monitors. Tracing
should only be used when instructed to do so by HP support personnel.
This is not available with all monitors.
EMS Logging |
 |
Log files in /etc/opt/resmon/log / contain information logged by the monitors.
Look at the client.log if you seem to be having a problem with the SAM, or
any other client, interfaces to EMS or MC/ServiceGuard. With the
default level of logging, only audit and error messages are logged.
An example of an audit message is:
User event occurred at Thu Jul 31 16:13:31 1997
Process ID: 10404 (client) Log Level:Audit
+ /vg/vg00/lv/copies/* (8 instances)
If (<1), OpC (m/n), 18000s, Thu Jul 31 16:13:31 1997 |
The plus (+) means that request has been added. A minus (-) indicates a removal. A minus (-) followed by a plus (+) indicates a modification. Events sent to targets
are marked with period (.). Errors are marked with Log Level: Error or with Log Level: Warning.
Look at the api.log if you seem to be having a problem with a specific monitor.
Check for warnings or errors.
Some monitors have their own logs, refer to the man page for
individual monitors.
EMS Tracing |
 |
Some monitors provide tracing which can be used for debugging
monitor code.
Use the -d option to turn on tracing for EMS. Tracing should
only be used at the request of your HP support personnel when trying
to determine if there may be a problem with EMS. To turn
on tracing, modify the .dict file in /etc/opt/resmon/dictionary and add -d to the monitor you would like to trace:
MONITOR: /etc/opt/resmon/lbin/mibmond -l -d |
Kill the monitor process. The monitor will automatically restart
with tracing enabled. To speed up monitor restart, use the resls command with the top level of the resource class as an
argument, for example, resls /system.
Tracing is customarily logged to /etc/opt/resmon/log/monitor_name.log. The monitor_name usually matches the name used for the monitor in
the dictionary file. For example, the MIBmonitor uses mibmond.dict and mibmond.log.