Upgrade Issues with 5.7 and still in 5.7.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kketchmark
Posts: 4
Joined: Thu Jan 24, 2019 11:29 am

Upgrade Issues with 5.7 and still in 5.7.1

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrade Issues with 5.7 and still in 5.7.1

Post by scottwilkerson »

I see a ticket was opened with the same issue.

We will be locking this thread and will respond through the ticket
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Upgrade Issues with 5.7 and still in 5.7.1

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Upgrade Issues with 5.7 and still in 5.7.1

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Upgrade Issues with 5.7 and still in 5.7.1

Post 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);
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Upgrade Issues with 5.7 and still in 5.7.1

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade Issues with 5.7 and still in 5.7.1

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked