Page 1 of 1

Upgrade Issues with 5.7 and still in 5.7.1

Posted: Fri Jun 12, 2020 8:36 am
by kketchmark
Started to get this error after upgrade from 5.6.12 to 5.7. Upgrade said everything was ok and no issues.

When any User or Admin clinks on a host or service the page fails to display the info. If I open the Chrome Development Tools and watch for errors, I get the following, GET https://nagiost.stthomas.edu/nagiosxi/i ... &dest=auto 500 (Internal Server Error)

I then look in the Apache ssl_error_log file and see this error. [Fri Jun 12 08:29:42.866528 2020] [:error] [pid 5827] [client 140.209.74.215:36480] PHP Fatal error: Call to undefined function get_backend_xml_data() in /usr/local/nagiosxi/html/includes/components/historytab/historytab.inc.php on line 102, referer: https://nagiost.stthomas.edu/nagiosxi/i ... w=services

I also had this error yesterday on version 5.7. Searched and seen a lot of errors so I figured I would wait and update to 5.7.1, but I see the errors are still there. Everything else seems to be working.

System config:
OS: RedHat 7.7 64bit
Running on VMware
Nothing special for system, it is being ssl offloaded via F5 LTM's but I also get the error going direct with out the F5 in place.

Re: Upgrade Issues with 5.7 and still in 5.7.1

Posted: Fri Jun 12, 2020 10:05 am
by scottwilkerson
I see a ticket was opened with the same issue.

We will be locking this thread and will respond through the ticket

Re: Upgrade Issues with 5.7 and still in 5.7.1

Posted: Fri Jun 12, 2020 2:41 pm
by jdunitz
Removing the history tab component will fix the

Code: Select all

PHP Fatal error: Call to undefined function get_backend_xml_data() in /usr/local/nagiosxi/html/includes/components/historytab/historytab.inc.php 
error, as well as the blank host and service pages:

Code: Select all

tar -cf /root/history-tab-saveforlater.tar /usr/local/nagiosxi/html/includes/components/historytab
rm -rf /usr/local/nagiosxi/html/includes/components/historytab
--Jeffrey

Re: Upgrade Issues with 5.7 and still in 5.7.1

Posted: Fri Jun 12, 2020 2:54 pm
by BanditBBS
I doubt Troy(a.k.a. Box293) is going to work on an update to the plugin. Can the nagios guys take a took at possibly patching it? I love that tab and would hate to lose it when I upgrade.

Re: Upgrade Issues with 5.7 and still in 5.7.1

Posted: Fri Jun 12, 2020 3:11 pm
by BanditBBS
I "fixed" it on my dev host by commenting out one line. You'll lose Nagios Comment history but at least not all the other items. Open the file

Code: Select all

/usr/local/nagiosxi/html/includes/components/historytab/historytab_do_stuff.php
and comment out line 49

Code: Select all

#$xml_nagios_comments = get_backend_xml_data($args_nagios_comments);

Re: Upgrade Issues with 5.7 and still in 5.7.1

Posted: Tue Jun 16, 2020 9:47 am
by ssax
Thanks for posting that update. Both Scott and I took a quick look but couldn't find a replacement function that would meet the needs given the current codebase. The component would need to be modified as the functions it uses no longer exist in the code.

Re: Upgrade Issues with 5.7 and still in 5.7.1

Posted: Tue Jun 16, 2020 9:50 am
by lmiltchev
Thanks for the info @BanditBBS!
Can the nagios guys take a took at possibly patching it? I love that tab and would hate to lose it when I upgrade.
I filed a feature request for patching the history tab component. Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.