Page 2 of 2

Re: NOC view for nagios core machines in Fusion

Posted: Fri Sep 13, 2013 4:38 am
by solvisoft
hello i have no errors , i have given the file

Code: Select all

chmod 777 utils-tacdata.inc.php
there is still nog output.

Re: NOC view for nagios core machines in Fusion

Posted: Fri Sep 13, 2013 10:47 am
by sreinhardt
Please run and return the output from:

Code: Select all

ll /usr/local/nagiosfusion/html/includes/utils-tacdata.inc.php
tail /var/log/httpd/error_log

Re: NOC view for nagios core machines in Fusion

Posted: Mon Sep 23, 2013 10:04 am
by solvisoft
[root@localhost ~]# ll /usr/local/nagiosfusion/html/includes/utils-tacdata.inc.php
-rwxrwxrwx. 1 nagios nagios 38965 Aug 28 07:56 /usr/local/nagiosfusion/html/includes/utils-tacdata.inc.php
[root@localhost ~]#


[root@localhost ~]# tail /var/log/httpd/error_log
[Mon Sep 23 15:06:34 2013] [error] [client 192.168.10.109] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/utilsl.inc.php on line 344, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Mon Sep 23 15:06:39 2013] [error] [client 192.168.10.109] PHP Warning: Division by zero in /usr/local/nagiosfusion/html/includes/components/fusioncore/ajaxhelpers-sysstat.inc.php on line 112, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Mon Sep 23 15:06:39 2013] [error] [client 192.168.10.109] PHP Warning: Division by zero in /usr/local/nagiosfusion/html/includes/components/fusioncore/ajaxhelpers-sysstat.inc.php on line 114, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Mon Sep 23 15:06:39 2013] [error] [client 192.168.10.109] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/utilsl.inc.php on line 344, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Mon Sep 23 15:06:44 2013] [error] [client 192.168.10.109] PHP Warning: Division by zero in /usr/local/nagiosfusion/html/includes/components/fusioncore/ajaxhelpers-sysstat.inc.php on line 112, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Mon Sep 23 15:06:44 2013] [error] [client 192.168.10.109] PHP Warning: Division by zero in /usr/local/nagiosfusion/html/includes/components/fusioncore/ajaxhelpers-sysstat.inc.php on line 114, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Mon Sep 23 15:06:44 2013] [error] [client 192.168.10.109] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/utilsl.inc.php on line 344, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Mon Sep 23 15:06:49 2013] [error] [client 192.168.10.109] PHP Warning: Division by zero in /usr/local/nagiosfusion/html/includes/components/fusioncore/ajaxhelpers-sysstat.inc.php on line 112, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Mon Sep 23 15:06:49 2013] [error] [client 192.168.10.109] PHP Warning: Division by zero in /usr/local/nagiosfusion/html/includes/components/fusioncore/ajaxhelpers-sysstat.inc.php on line 114, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Mon Sep 23 15:06:49 2013] [error] [client 192.168.10.109] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/utilsl.inc.php on line 344, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[root@localhost ~]#

Re: NOC view for nagios core machines in Fusion

Posted: Mon Sep 23, 2013 1:58 pm
by lmiltchev
Let's start with setting up the correct timezone in "/etc/php.ini". Open the file in a text editor and add the correct timezone to the "date.timezone =" line. Save, exit and restart apache.

Code: Select all

service httpd restart
You can view the supported php timezones here:

http://php.net/manual/en/timezones.php

Try accessing the NOC view, and check the apache error log for errors one more time.

Re: NOC view for nagios core machines in Fusion

Posted: Tue Sep 24, 2013 8:11 am
by solvisoft
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.c ... e.timezone
;date.timezone = Europe/Amsterdam

still getting

[root@localhost etc]# tail /var/log/httpd/error_log
[Tue Sep 24 13:08:40 2013] [error] [client 192.168.10.109] PHP Warning: Division by zero in /usr/local/nagiosfusion/html/includes/components/fusioncore/ajaxhelpers-sysstat.inc.php on line 112, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Tue Sep 24 13:08:40 2013] [error] [client 192.168.10.109] PHP Warning: Division by zero in /usr/local/nagiosfusion/html/includes/components/fusioncore/ajaxhelpers-sysstat.inc.php on line 114, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Tue Sep 24 13:08:40 2013] [error] [client 192.168.10.109] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/utilsl.inc.php on line 344, referer: http://192.168.10.111/nagiosfusion//das ... d=87crh4jj
[Tue Sep 24 13:08:42 2013] [error] [client 192.168.10.109] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/utilsl.inc.php on line 501, referer: http://192.168.10.111/nagiosfusion/
[Tue Sep 24 13:08:43 2013] [error] [client 192.168.10.109] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/components/nocscreen/nocscreen.inc.php on line 438, referer: http://192.168.10.111/nagiosfusion/dash ... hp?id=home
[Tue Sep 24 13:08:43 2013] [error] [client 192.168.10.109] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/dashlets/fusedstatus/fusedstatus.inc.php on line 182, referer: http://192.168.10.111/nagiosfusion/dash ... hp?id=home
[Tue Sep 24 13:08:43 2013] [error] [client 192.168.10.109] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/utilsl.inc.php on line 344, referer: http://192.168.10.111/nagiosfusion/dash ... hp?id=home
[Tue Sep 24 13:08:45 2013] [error] [client 192.168.10.109] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/components/fusioncore/ajaxhelpers-recentalerts.inc.php on line 72, referer: http://192.168.10.111/nagiosfusion/dash ... hp?id=home
[Tue Sep 24 13:09:12 2013] [error] [client 192.168.10.109] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/nagiosfusion/html/includes/components/nocscreen/nocscreen.inc.php on line 438, referer: http://192.168.10.111/nagiosfusion/dash ... hp?id=home

Re: NOC view for nagios core machines in Fusion

Posted: Tue Sep 24, 2013 1:49 pm
by lmiltchev
The timezone line is commented out... Can you change this:

Code: Select all

;date.timezone = Europe/Amsterdam
to this:

Code: Select all

date.timezone = Europe/Amsterdam
restart apache:

Code: Select all

service httpd restart
and check the log again?