Page 1 of 1

Use of undefined constant

Posted: Wed Jun 19, 2013 3:52 am
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?

Re: Use of undefined constant

Posted: Wed Jun 19, 2013 9:47 am
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.

Re: Use of undefined constant

Posted: Fri Mar 21, 2014 1:11 pm
by WillemDH
Can be closed.. :)