Page 2 of 2

Re: Notification report not working

Posted: Wed Feb 03, 2021 9:50 pm
by tpwebb
Hello and apologies

[root@nagios /]# grep nag /etc/group
nagios:x:1000:nagios,apache,snmptt
nagcmd:x:1001:nagios,apache,snmptt
[root@nagios /]#

Regards

Re: Notification report not working

Posted: Thu Feb 04, 2021 6:28 pm
by ssax
I see this:

Code: Select all

[Thu Jan 21 09:21:12.880457 2021] [:error] [pid 58624] [client X.X.3.2:58993] PHP Fatal error:  Call to undefined function get_backend_xml_data() in /usr/local/nagiosxi/html/includes/components/historytab/historytab_do_stuff.php on line 49, referer: https://XXXXXXXXXXXX/nagiosxi/includes/components/xicore/status.php?show=hostdetail&host=XXXXXXXX
Edit this file:

Code: Select all

/usr/local/nagiosxi/html/includes/components/historytab/historytab_do_stuff.php
Comment out line 49:

Code: Select all

#$xml_nagios_comments = get_backend_xml_data($args_nagios_comments);
Then test it again and see if that helps.

If it doesn't, leave that commented out because that's an issue, but run this command as root and leave it running:

Code: Select all

tail -Fn0 /var/log/httpd/*
Then replicate the issue in the web interface again and then send the full output from the still running tail command.

Try with a different browser as well.

Re: Notification report not working

Posted: Thu Feb 04, 2021 9:42 pm
by tpwebb
Hello,

I have done the following

// Commented out at the request of Nagios Support
//$xml_nagios_comments = get_backend_xml_data($args_nagios_comments);
//print_r('$xml_nagios_comments: ' . $xml_nagios_comments . "<br/><br/><br/>");

Restarted the httpd service

We are also having trouble with availability reports with the pie charts not showing a giving a spinning wheel.

PM the log files as requested, also tried the same process on Google Chrome.

Regards

Re: Notification report not working

Posted: Fri Feb 05, 2021 3:24 pm
by ssax
Please edit this file:

/usr/local/nagiosxi/html/config.inc.php

Add this line:

"charset" => 'utf8',

Under each of these lines: (lines 46, 59, and 79)

Code: Select all

        "db" => 'nagiosxi',
        "charset" => 'utf8',

        "db" => 'nagios',
        "charset" => 'utf8',

        "db" => 'nagiosql',
        "charset" => 'utf8',
Then go try both reports again.

EDIT: Check your PMs as well, I sent you a message.

Re: Notification report not working

Posted: Sun Feb 07, 2021 5:47 pm
by tpwebb
Hello,

Tried "charset" => 'utf8', and restarted the server and nothing changed.

Also made the change in the host file as suggested and retried and di not work.

Still chasing this down, any assistance would be appreciated.

Re: Notification report not working

Posted: Mon Feb 08, 2021 5:05 pm
by ssax
Please create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/

Re: Notification report not working

Posted: Mon Feb 22, 2021 5:28 pm
by ssax
Locking thread, ticket received, we will continue support through the ticket.

Thank you!