Page 1 of 1

PHP Notice: Undefined variable: fullbody

Posted: Thu Jan 02, 2014 2:36 pm
by balothia
Hi Support,

I have issues while generating the PDF report through Nagios, i tried reinstalling the wkhtml once i went through the other post in support forum. But still it didnt worked. Below is complete error which i am getting the error_log.

Error: Failed loading page http://192.168.5.180/nagiosxi//reports/ ... cale=en_EN (sometimes it will work just to ignore this error with --load-error-handling ignore)
[Thu Jan 02 13:15:28 2014] [error] [client 192.168.10.48] PHP Notice: Undefined variable: fullbody in /usr/local/nagiosxi/html/reports/availability.php on line 1801, referer: http://10.0.206.29/nagiosxi/reports/ava ... vicegroup=

Re: PHP Notice: Undefined variable: fullbody

Posted: Thu Jan 02, 2014 2:43 pm
by abrist
There was a bug with locales in previous versions. Update XI to 2012r2.7 and the issue should be resolved.

Re: PHP Notice: Undefined variable: fullbody

Posted: Thu Jan 02, 2014 3:52 pm
by balothia
abrist wrote:There was a bug with locales in previous versions. Update XI to 2012r2.7 and the issue should be resolved.
Thanks for the note... let us try that and get back to you.

Re: PHP Notice: Undefined variable: fullbody

Posted: Thu Jan 02, 2014 4:07 pm
by abrist
np. Let us know if you have further issues.

Re: PHP Notice: Undefined variable: fullbody

Posted: Thu Jan 02, 2014 4:22 pm
by balothia
I did a upgrade in out Nagios dev environment. After upgrade still the problem persist, I am attaching the screen shot for your reference.

Error_log after upgrade:

Error: Failed loading page http://192.168.5.180/nagiosxi//reports/ ... cale=en_US (sometimes it will work just to ignore this error with --load-error-handling ignore)
[Thu Jan 02 15:18:19 2014] [error] [client 192.168.10.48] PHP Notice: Undefined variable: fullbody in /usr/local/nagiosxi/html/reports/execsummary.php on line 435, referer: http://10.0.206.29/nagiosxi/reports/exe ... vicegroup=

Re: PHP Notice: Undefined variable: fullbody

Posted: Fri Jan 03, 2014 10:40 am
by abrist
1) Is that error written to the log on viewing of the report, or on generation of the pdf?
2) Are you attempting a scheduled report, or just trying to save the pdf from the browser?

Re: PHP Notice: Undefined variable: fullbody

Posted: Fri Jan 03, 2014 12:59 pm
by balothia
The error is recorded in error_log file of apache, there is no error seen on nagios console. I am just trying to download the report in pdf format, I am not scheduling any report.

Re: PHP Notice: Undefined variable: fullbody

Posted: Fri Jan 03, 2014 1:10 pm
by lmiltchev
What do you have in the "Program URL" and "External URL" fields under "System Settings" (Admin->Manage System Config)? Can this URL resolve on the Nagios XI server?

Re: PHP Notice: Undefined variable: fullbody

Posted: Fri Jan 03, 2014 1:49 pm
by balothia
Thanks the problem was the Program URL, this has resolved our issue in Nagios development environment. We will try to implement same for production.