Use of undefined constant

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Use of undefined constant

Post by WillemDH »

I ws asked to check /var/log/httpd/error_log in another post concerning event imeline and noticed there are a lot of errors like the following:

[Wed Jun 19 09:58:46 2013] [error] [client 172.19.8.14] PHP Notice: Use of undefined constant NOTIFICATIONREASON_DOWNTIMEEND - assumed 'NOTIFICATIONREASON_DOWNTIMEEND' in /usr/local/nagiosxi/html/includes/utils-notifications.inc.php on line 433, referer: http://srvnagios01/nagiosxi/

At the moment I only use recurring downtilme and this happens at night, so I don't really get where this error is coming from.

ANyone got any idea where to look?
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Use of undefined constant

Post by scottwilkerson »

Yep, that was a bug (typo) that has been there for a long time...

unzip the attached file and place in /usr/local/nagiosxi/html/includes/

This has been added to the trunk for 2012r2.3 and beyond.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Use of undefined constant

Post by WillemDH »

Can be closed.. :)
Nagios XI 5.8.1
https://outsideit.net
Locked