Library

Docs
Beta

Products

Adding Additional Instances To ClusterAlerting On Log EventsAnalyzing LogsAuthenticating and Importing Users with AD and LDAPChanging Data Store PathConfiguring FiltersConfiguring InputsConfiguring Multi Tenancy in Nagios Log ServerConfiguring NXLog To Send Additional Log FilesCreating a Log Server DashboardForwarding Logs from Nagios Log Server to Another DestinationHow To Configure NXLog To Send Multi line Logs To Nagios Log Server.How To Configure Windows To Send Logs To Nagios Log ServerHow To Create A Nagios Log Server Instance In The Amazon EC2 CloudHow To Export Or Schedule Reports In Nagios Log ServerHow To integrate Nagios Log Server with XIHow to Backup and Restore the Nagios Log ServerHow to use a Proxy Server with Nagios Log ServerIntegrating Nagios Log Server with Nagios XILog Server Dashboard OverviewManaging ClustersManaging IndicesManaging Snapshots and MaintenanceMonitoring A New Log SourceMonitoring Apache Logs with Nagios Log ServerMonitoring Linux System Logs using Nagios Log ServerMonitoring Squid Proxy Server With Nagios Log ServerNagios Log Server Adding Additional Instances To ClusterNagios Log Server Administrator GuideNagios Log Server Alerting On Log EventsNagios Log Server Analyzing LogsNagios Log Server Architecture and Overview NWC15Nagios Log Server Changing Data Store PathNagios Log Server Cluster Timezone SettingsNagios Log Server Configuration OverviewNagios Log Server Configuring Input FiltersNagios Log Server Configuring InputsNagios Log Server Configuring NXLog To Send Additional Log FilesNagios Log Server Configuring NXLog To Send Multi Line Log FilesNagios Log Server Conversion for VirtualBoxNagios Log Server Custom Alert Message Email TemplateNagios Log Server Data Backup and ArchivingNagios Log Server ELK documentationNagios Log Server ESXi Syslog ConfigNagios Log Server Exporting Log DataNagios Log Server Full Architecture OverviewNagios Log Server How To Configure SSLNagios Log Server How To Create A Nagios Log Server Instance In The Amazon EC2 Cloud EnvironmentNagios Log Server How To Install Using VMwareNagios Log Server How To Select A DownloadNagios Log Server Important Files And DirectoriesNagios Log Server Introduction WebinarNagios Log Server Jobs Subsystem ArchitectureNagios Log Server License EntitlementsNagios Log Server Listening On Privileged PortsNagios Log Server Log Monitoring and Log Management with Nagios NWC14Nagios Log Server Logging InNagios Log Server Managing ClustersNagios Log Server Managing IndicesNagios Log Server Managing InstancesNagios Log Server Managing Snapshots and MaintenanceNagios Log Server Managing UsersNagios Log Server Monitor Your Log Server InstancesNagios Log Server Monitoring A New Log SourceNagios Log Server Offline UpgradeNagios Log Server Overview And TerminologyNagios Log Server Performance And Storage WalkthroughNagios Log Server Poller Subsystem ArchitectureNagios Log Server Real Life Experience of Nagios Log Server NWC15Nagios Log Server Removing An Instance From A ClusterNagios Log Server Sending Multiline Log Files Using SyslogNagios Log Server Sending NXLogs With SSLNagios Log Server Sending Nagios Core Logs To Nagios Log ServerNagios Log Server Sending syslog with SSL/TLSNagios Log Server Single Instance DeploymentNagios Log Server Updating Logstash PatternsNagios Log Server Upgrade InstructionsNagios Log Server Using An Output To Create Nagios XI Passive ObjectsNagios Log Server Using GeoIP DataNagios Log Server Using The Custom Includes PageRemoving An Instance From A ClusterSend Alerts Based on the Log Server Audit LogSending ESXi Logs To Nagios Log ServerSending Mac OS X Logs To Nagios Log ServerSending NXLogs With SSL/TLSSending Nagios Core Logs To Nagios Log ServerSending syslog With SSL/TLSUpgrade Nagios Log ServerUsing An Output To Create Nagios XI Passive ObjectsWaiting for Database StartupNagios Log Server Monitoring Using NCPA + Nagios XI

Nagios Log Server - Cluster Timezone Settings

Overview

Nagios Log Server needs the system and all of it's components to be configured with the correct timezone.

This article explains how to configure the timezone and also explains all the components and how to check them.

Setting The Cluster Timezone

  • Log into Nagios Log Server

  • In the top menu bar click Admin

  • Under General click Global Settings

  • Here you can define the Cluster Timezone

    • If it is not set correctly, select the desired timezone and click Save Settings

The remaining steps will show you all the areas where the timezone settings are defined. We will use America/Los_Angeles for this KB article, but be mindful that you must substitute your actual country/city. You will need to establish a terminal session to a Nagios Log Server node as a root user. You should verify all the nodes are correct by executing all the commands on all the nodes.

Editing Files

In steps of this article you will be required to edit files. This documentation will use the vi text editor. When using the vi
editor:

  • To make changes press i on the keyboard first to enter insert mode
  • Press Esc to exit insert mode
  • When you have finished, save the changes in vi by typing :wq and press Enter

Verify The System Timezone

**RHEL 7 + | CentOS 7 +
**

The timedatectl command is used to configure the timezone. You can display a list of available timezones with the following command:

timedatectl list-timezones

The timezones are listed by country/city and include daylight savings time adjustments. The command above can be piped to the grep command to help search for your timezone, for example:

timedatectl list-timezones | grep Los

This will produce the following output:

America/Los_Angeles

Then you use the timedatectl command to configure the timezone:

timedatectl set-timezone America/Los_Angeles

Running the timedatectl command by itself will produce a summary, which will have the following line:

Time zone: America/Los_Angeles (PST, -0800)

Debian | Ubuntu

The dpkg-reconfigure command is used to configure the timezone. Use the following command to set the timezone:

dpkg-reconfigure tzdata

Select the appropriate region and this completes the required steps.

PHP Timezone

This change needs to be made to your php.ini file, to determine the location of this file execute the following command:**
**

find /etc -name php.ini

If there are multiple results then the one in the apache directory is the one that needs changing.

Change the date.timezone = line to:

date.timezone =  America/Los_Angeles

When you have finished, save the changes.

Once the change has been made you will have to restart Apache for the changes to take effect using one of the commands below:

**RHEL 7 + | CentOS 7 +
**

systemctl restart httpd.service

**Debian | Ubuntu 16/18/20
**

systemctl restart apache2.service

Restart Logstash

If you manually change any of the timezone settings outside of the GUI interface you will need to restart the logstash service using one of the commands below:

**RHEL 7 + | CentOS 7 + | Oracle Linux 7 + | Debian | Ubuntu 16/18/20
**

systemctl restart logstash.service

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

Nagios Enterprises, LLC

© All rights reserved. 2026