zhouandtao 发表于 2019-1-10 11:37:25

cacti 时区问题

  一台运行了近2年的Cacti服务器主机,今天手动重启了下网卡服务,发现Cacti竟然不出图了
  执行: /usr/bin/php /usr/local/cacti/poller.php 命令后发生,有下方表格1的提示:
  提示时区有问题,于是进/etc/php.ini添加了
date.timezone=Asia/Chongqing  就可以出图了!
  于是新的疑问又出来了,为什么运行了两年的Cacti主机却现在才发出这个不出图的问题?之前时区也没有改,同样可以出图,为什么?重启网卡会引起这样的问题?
  这个问题至今没有得到完美的回复!
  

  表格1
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_constants.php on line 165
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_constants.php on line 165
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_constants.php on line 166
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_constants.php on line 166
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_constants.php on line 167
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_constants.php on line 167
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_constants.php on line 168
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_constants.php on line 168
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_constants.php on line 169
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_constants.php on line 169
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_constants.php on line 170
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_constants.php on line 170
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_constants.php on line 171
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_constants.php on line 171
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_arrays.php on line 670
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_arrays.php on line 670
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_arrays.php on line 671
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_arrays.php on line 671
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_arrays.php on line 672
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_arrays.php on line 672
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_arrays.php on line 673
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_arrays.php on line 673
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_arrays.php on line 674
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_arrays.php on line 674
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_arrays.php on line 675
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_arrays.php on line 675
  PHP Warning:strtotime(): It is not safe to rely on the system's timezone settings. You are *requireou used any of those methods and you are still getting this warning, you most likely misspelled the thtml/cacti/include/global_arrays.php on line 676
  PHP Warning:date(): It is not safe to rely on the system's timezone settings. You are *required* toed any of those methods and you are still getting this warning, you most likely misspelled the timezocacti/include/global_arrays.php on line 676
  

  

  




页: [1]
查看完整版本: cacti 时区问题