Nagios xi sound dont work after upgrade to 5.11.1

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
vappukuttan
Posts: 52
Joined: Tue Mar 05, 2019 7:43 am

Nagios xi sound dont work after upgrade to 5.11.1

Post by vappukuttan »

We have noticed that the sound on alerts dont work anymore since we updated Nagios xi to 5.11.1.

The configure sound screen comes up within the Operations Center. I can select the sound I want and the type of alerts it should play. Then I click save and it does not save it.

Thank you in advance.
Vinod
phred
Posts: 11
Joined: Tue Jun 01, 2021 5:19 pm

Re: Nagios xi sound dont work after upgrade to 5.11.1

Post by phred »

Hey @vappukuttan:

This looks like you found a bug, actually. In newer php, probably php8+, but maybe in later versions of 7, it is returning a deprecated warning in the ajax response preventing the browser from reading the json. We will add this to our issues list.

Meanwhile, if you are comfortable making a minor edit, you can suppress these warnings and restore the functionality.

In file:
/usr/local/nagiosxi/html/includes/components/nocscreen/nocajax.php

Change line 7 from:

Code: Select all

error_reporting(E_ALL);
to:

Code: Select all

error_reporting(E_ALL & ~E_DEPRECATED);
There is no need to restart anything. The app will pick up the change the next time you load the page.

Let me know if you have any questions, and if this resolves your issue.

Phred
Let us know if you have additional questions.

Phred
vappukuttan
Posts: 52
Joined: Tue Mar 05, 2019 7:43 am

Re: Nagios xi sound dont work after upgrade to 5.11.1

Post by vappukuttan »

Thank you for the response. It didnt seem to work with the ~ sign, but once I removed that and saved a change, it showed up the previous setup the alarms.

Thanks again,
Vinod