Set Timezone (Virtual Appliance or CentOS/Redhat Linux)
In order for alerts to work properly, you will need to set your Metric Insights server to the same timezone as your data source. (If that is not possible, please contact us for assistance. We will show you how to adjust the Metric Insights config parameters so that your alerts work properly.)
This article assumes that you are running Metric Insights as a virtual appliance obtained from our website. It also covers situations where you have installed Metric Insights on your own server or in your own Amazon EC2 environment, using either CentOS or Redhat Linux.
Note: If your instance of Metric Insights is hosted within our EC2 environment, we will adjust your timezone settings ourselves -- you don't need to do anything here.
1. Login to the Metric Insights server
Enter the following command from a shell prompt:
...replacing '000.000.000.000' with the IP address for your Metric Insights server.
Note: This step assumes that you are running Metric Insights as a virtual appliance. If you have installed Metric Insights on your own server or in your own Amazon EC2 environment, please contact your netword administrator for access to the server.
2. Create symlink between /etc/localtime and timezone file
Run the following commands from a shell prompt:
rm /etc/localtime
ln -s /usr/share/zoneinfo/Your/Timezone /etc/localtime
Example (Pacific time):
ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime
3. Restart MySQL
You will need to restart MySQL in order to synchronize the application database with the server. Run the following command from a shell prompt:
service mysqld restart
4. Create permanent timezone entry in appropriate location (so it will survive reboot)
The preceding steps will re-set the timezone for your Metric Insights server. In order for your adjustments to survive a reboot, however, you will need to create a permanent entry in the file named /etc/sysconfig/clock. Edit the file and create (or modify) the following entry:
ZONE="Your/Timezone"
Example (Pacific time):
ZONE="US/Pacific"