Some errors about "undefined constant ...."

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Some errors about "undefined constant ...."

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

What version of nocscreen are you running?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post by morabanc »

Hi Abrist,

How can I see the version of Noc Screen ??
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

In XI, go to --> Admin --> Manage Components. Scroll down until you see nocscreen. What version is listed in the table?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post by morabanc »

Thanks !!!

It's version 1.1
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post by morabanc »

Thanks !!!

I'll update the version to 1.2 and i'll tell you how it works :)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post by slansing »

Let us know the results of updating, thanks!
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post 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 !!
Locked