Nagiosの時刻表示がずれている模様。
- 現在時刻 02:58am
- 表示時刻 05:58am
3時間進んでいるので調整する。
/usr/local/nagios/etc/nagios.cfg
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# TIMEZONE OFFSET # This option is used to override the default timezone that this # instance of Nagios runs in. If not specified, Nagios will use # the system configured timezone. # # NOTE: In order to display the correct timezone in the CGIs, you # will also need to alter the Apache directives for the CGI path # to include your timezone. Example: # # <Directory "/usr/local/nagios/sbin/"> # SetEnv TZ "Australia/Brisbane" # ... # </Directory> #use_timezone=US/Mountain #use_timezone=Australia/Brisbane use_timezone=America/Los_Angeles |
/etc/httpd/conf.d/nagios.conf
1 2 3 4 |
<Directory "/usr/local/nagios/sbin/"> SetEnv TZ "America/Los_Angeles" ... </Directory> |
サービスの再起動
1 2 |
# service nagios restart # service httpd restart |
確認する。
- 現在時刻 03:14am
- 表示時刻 03:14am