nrmjba / nagioschecker

Automatically exported from code.google.com/p/nagioschecker
0 stars 0 forks source link

Wave plays only in settings menu, not in real life #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start firefox
2. Wait until nagios reports a warning/critical/hostdown

What is the expected output? What do you see instead?

expected:
sound should be played

result:
silence of the lambs

What version of the product are you using (Nagios Checker and Nagios)? On
what operating system?

ubuntu 7.10, firefox 2.0.0.13, nagioschecker 0.11.9.1

Please provide any additional information below.

After digging in the code i saw, that the replay button and the real life
action are using different code to playback the sound.

Changing (nagioschecker.js:1249)

var soundUri = ioService.newURI(wav, null, null);

to

var soundUri = ioService.newURI("chrome://nagioschecker/content/"+wav,
null, null);

worked for me (but is not a correct fix, because custom soundfiles wont
work anymore).

Original issue reported on code.google.com by sch...@googlemail.com on 31 Mar 2008 at 5:22

GoogleCodeExporter commented 9 years ago
I have the same issue, everything else works but no sounds on alerts, only 
replay
button will actually play the sound, same for default or custom wav files.

WinXPproSP2, Firefox 2.0.0.14, Checker 0.12.2, Nagios 2.9

Original comment by DavidJa...@gmail.com on 18 Jun 2008 at 3:44

GoogleCodeExporter commented 9 years ago
Upgraded to Firefox 3.0, issue persists.
Reinstalled nagios checker plugin, issue persists.

Original comment by DavidJa...@gmail.com on 18 Jun 2008 at 3:58

GoogleCodeExporter commented 9 years ago
I fixed the problem by editing about:config in firefox.
Seach for "nagios" the value behind the string
"extensions.nagioschecker.sound_critical_path" and
"extensions.nagioschecker.sound_down_path" must be empty.

openSUSE 11.0, WinXPproSP2, Checker 0.12, Firefox 3.0

Original comment by steffen....@googlemail.com on 28 Jul 2008 at 12:55

GoogleCodeExporter commented 9 years ago
That works for me to restore the default sounds only. If I switch back to custom
sound files they do not play again.

Original comment by DavidJa...@gmail.com on 5 Aug 2008 at 3:46

GoogleCodeExporter commented 9 years ago
The problem with custom sounds has been fixed in the new beta version (0.12.9).
Could you please test it and confirm if it works?
Thank you.
Download beta from there:
http://code.google.com/p/nagioschecker/downloads/list?q=label:Beta

Original comment by petr.si...@gmail.com on 6 Aug 2008 at 10:20

GoogleCodeExporter commented 9 years ago
This isue seems to be duplicate to issue 82
http://code.google.com/p/nagioschecker/issues/detail?id=82
where DavidJanna already reported successful fix.

Original comment by petr.si...@gmail.com on 7 Aug 2008 at 9:05