Cactiタイムゾーン問題-徹底的に解決する必要がある
2年近く稼働しているCactiサーバーのホストが、今日手動でNICサービスを再起動したところ、Cactiが図を出さなかったことがわかりました.
実行:/usr/bin/php/usr/local/cacti/poller.phpコマンドの後に発生し、下の表1のヒントがあります.
ヒントタイムゾーンに問題があるので、/etc/php.iniが追加されました
図を出すことができます!
そこで新しい疑問がまた出てきました.なぜ2年間稼働していたCactiホストが今、この図を出さない問題を出したのですか.前のタイムゾーンも変更されていませんが、同じように図を出すことができます.なぜですか.NICを再起動するとこのような問題が発生しますか?
この問題は今まで完璧な返事をもらっていません!
表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 165PHP 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 165PHP 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 166PHP 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 166PHP 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 167PHP 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 167PHP 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 168PHP 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 168PHP 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 169PHP 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 169PHP 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 170PHP 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 170PHP 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 171PHP 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 171PHP 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 670PHP 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 670PHP 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 671PHP 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 671PHP 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 672PHP 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 672PHP 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 673PHP 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 673PHP 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 674PHP 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 674PHP 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 675PHP 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 675PHP 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 676PHP 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
実行:/usr/bin/php/usr/local/cacti/poller.phpコマンドの後に発生し、下の表1のヒントがあります.
ヒントタイムゾーンに問題があるので、/etc/php.iniが追加されました
date.timezone=Asia/Chongqing
図を出すことができます!
そこで新しい疑問がまた出てきました.なぜ2年間稼働していたCactiホストが今、この図を出さない問題を出したのですか.前のタイムゾーンも変更されていませんが、同じように図を出すことができます.なぜですか.NICを再起動するとこのような問題が発生しますか?
この問題は今まで完璧な返事をもらっていません!
表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 165PHP 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 165PHP 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 166PHP 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 166PHP 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 167PHP 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 167PHP 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 168PHP 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 168PHP 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 169PHP 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 169PHP 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 170PHP 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 170PHP 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 171PHP 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 171PHP 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 670PHP 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 670PHP 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 671PHP 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 671PHP 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 672PHP 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 672PHP 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 673PHP 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 673PHP 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 674PHP 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 674PHP 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 675PHP 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 675PHP 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 676PHP 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