Notification report not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: Notification report not working

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification report not working

Post 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.
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: Notification report not working

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification report not working

Post 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.
tpwebb
Posts: 70
Joined: Thu Sep 01, 2016 2:21 am

Re: Notification report not working

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification report not working

Post 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/
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notification report not working

Post by ssax »

Locking thread, ticket received, we will continue support through the ticket.

Thank you!
Locked