How to Update the Timezone on the Cloudmon Controller Machine

How to Update the Timezone on the Cloudmon Controller Machine

This article explains how to update the system timezone on the Cloudmon Controller machine to ensure that alarms and system logs reflect the correct local timestamps.


Prerequisites

  • SSH access to the Cloudmon Controller machine

  • User account with sudo privileges


Steps

1. Connect to the Machine

Take an SSH connection to the Cloudmon Controller machine.

2. Switch to Elevated Privileges

Run the following command and enter the password when prompted:

sudo -i

3. Check the Current Timezone

Verify the currently configured timezone:

timedatectl

4. Set the Required Timezone

Update the system timezone using the following command:

timedatectl set-timezone <Region/City>

Example format:
Region/City (e.g., Asia/Colombo, Europe/London, America/New_York)

To view a list of available timezones, use:

timedatectl list-timezones

5. Verify the Update

Confirm that the timezone has been updated successfully:

timedatectl

6. Restart Cloudmon Controller Services

Restart all Cloudmon controller services for the changes to take effect:

service cloudmon-controller@* restart

Result

After completing these steps, alarms and system logs generated in Cloudmon will reflect the configured local timezone.