NOC view for nagios core machines in Fusion

This support forum board is for questions relating to Nagios Fusion.
solvisoft
Posts: 35
Joined: Fri Jul 26, 2013 9:31 am

Re: NOC view for nagios core machines in Fusion

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NOC view for nagios core machines in Fusion

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
solvisoft
Posts: 35
Joined: Fri Jul 26, 2013 9:31 am

Re: NOC view for nagios core machines in Fusion

Post 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 ~]#
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NOC view for nagios core machines in Fusion

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
solvisoft
Posts: 35
Joined: Fri Jul 26, 2013 9:31 am

Re: NOC view for nagios core machines in Fusion

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NOC view for nagios core machines in Fusion

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked