Define Resmon Email Settings

Define email addresses to receive the daily Resource Report and periodic Resource Depletion Report. Define an email sender and subject line to help recipients identify and organize emails from the Resmon service.

Note:

The email server and sender address used by the Resmon service may be different than those used by the STA application. See the STA User's Guide for details about STA application emails.

  1. On the STA server, open a terminal session. Log in as the Oracle user.
  2. Define email information.
    • To specify multiple recipients, separate the email addresses by a colon (:).

    • If the subject text includes spaces, enclose the text line in double-quotes (") or single-quotes (').

    This example defines two email recipients, the email sender, and a subject line.

    $ staresmonadm -r charlie@mycompany.com:lucy@mycompany.com -f STAResmon@staserver.mycompany.com -s "STA Resource Monitor Report for staserver"
    
  3. If you want the new settings to take effect immediately, you must stop and restart the STA services daemon. See Services Daemon - Stop, Restart, or Show Status.
  4. If the utility fails with:
    Error: java.util.prefs.BackingStoreException: Couldn't get file lock.
    

    See ISSUE: Backup Service or Resource Monitor Fails.

Troubleshoot Resmon Email Issues

If you are not receiving emails from Resmon, use the logs to verify that the service is sending emails, check your email server and filter settings, and verify the Resmon settings are correct.

Check the staservd.log

If Resmon has sent out an email, it will be recorded in the log.

  1. Open the staservd.log located in the /var/log/tbi/db/backups directory.
  2. Look for the following messages:
    INFO: {StaResMon} Alert report email complete.
    
    INFO: {StaResMon} Standard report email complete.
    
  3. If you see either of the above messages, the Resmon service is sending emails. This means the issue may be with your email server or email filtering.

    If you don't see the above messages in the log, Resmon has not sent an email. Verify the Resmon settings are correct.

Check your email settings

The email service on your server may not be configured correctly or some email security features may be filtering out the Resmon emails. Make sure the "From" line has a legitimate host name. Use the staresmonadm -f command to modify.

Check the Resmon settings

If you did not see either of the logging message above and you are sure that Resmon should have sent an email based on the report time settings and alert settings, then verify the Resmon settings are correct. Use the staresmonadm -Q command to view the current settings. Make sure the DB username and password are set correctly for the STA DB mysql application.