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
Nagios XI sound dont work after upgrade to 5.11.1
-
- Posts: 52
- Joined: Tue Mar 05, 2019 7:43 am
Re: Nagios XI sound dont work after upgrade to 5.11.1
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:
to:
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
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);
Code: Select all
error_reporting(E_ALL & ~E_DEPRECATED);
Let me know if you have any questions, and if this resolves your issue.
Phred
Let us know if you have additional questions.
Phred
Phred
-
- Posts: 52
- Joined: Tue Mar 05, 2019 7:43 am
Re: Nagios XI sound dont work after upgrade to 5.11.1
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
Thanks again,
Vinod