Page 1 of 1

Some errors about "undefined constant ...."

Posted: Mon Jun 10, 2013 5:56 am
by morabanc
Hi,

For many days ago we are receiving some errors like this:

[Sun Jun 09 03:15:02 2013] [error] [client xx.xx.xx.xx] PHP Notice: Use of undefined constant CALLBACK_POLLING_FUNCTIONS- assumed 'CALLBACK_POLLING_FUNCTIONS' in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreen.inc.php on line 62, referer: http://nagios_ip/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=example_host&service=home&dest=auto

[Sun Jun 09 03:15:02 2013] [error] [client xx.xx.xx.xx] PHP Notice: Use of undefined constant CALLBACK_DELETE_SERVER - assumed 'CALLBACK_DELETE_SERVER' in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreen.inc.php on line 64, referer: http://nagios_ip/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=example_host&service=home&dest=auto

[Sun Jun 09 03:15:02 2013] [error] [client xx.xx.xx.xx] PHP Notice: Use of undefined constant DB_NAGIOSFUSION - assumed 'DB_NAGIOSFUSION' in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreen.inc.php on line 172, referer: http://nagios_ip/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=example_host&service=home&dest=auto

[Sun Jun 09 03:15:02 2013] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: DB_NAGIOSFUSION in /usr/local/nagiosxi/html/includes/db.inc.php on line 130, referer: http://nagios_ip/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=example_host&service=home&dest=auto



This errors I find in "/var/log/httpd/error_log". The space of the log it's more than 1 Gb.

Why are this errors appear ??

Thanks in advance

Re: Some errors about "undefined constant ...."

Posted: Mon Jun 10, 2013 12:18 pm
by abrist
What version of nocscreen are you running?

Re: Some errors about "undefined constant ...."

Posted: Tue Jun 11, 2013 9:47 am
by morabanc
Hi Abrist,

How can I see the version of Noc Screen ??

Re: Some errors about "undefined constant ...."

Posted: Tue Jun 11, 2013 9:55 am
by abrist
In XI, go to --> Admin --> Manage Components. Scroll down until you see nocscreen. What version is listed in the table?

Re: Some errors about "undefined constant ...."

Posted: Tue Jun 11, 2013 10:30 am
by morabanc
Thanks !!!

It's version 1.1

Re: Some errors about "undefined constant ...."

Posted: Tue Jun 11, 2013 10:38 am
by abrist
You may want to update the nocscreen component as you are running an older version (current is 1.2):
http://exchange.nagios.org/directory/Ad ... nt/details

Re: Some errors about "undefined constant ...."

Posted: Thu Jun 13, 2013 6:25 am
by morabanc
Thanks !!!

I'll update the version to 1.2 and i'll tell you how it works :)

Re: Some errors about "undefined constant ...."

Posted: Thu Jun 13, 2013 9:15 am
by slansing
Let us know the results of updating, thanks!

Re: Some errors about "undefined constant ...."

Posted: Tue Jun 18, 2013 5:58 am
by morabanc
Hi,

Yesterday I read the components web page and i saw that there isn't any new version of "operation screen".
So we decide to delete the component because nowadays we don't use it.

The log file don't grow up anymore

Thanks !!