Embedded sounds in Nagios 3

Paulus, Jake jpaulus at sourceinterlink.com
Fri Jul 18 19:09:43 CEST 2008


For those that do care - it should be "audio/x-wav" according to http://www.w3schools.com/media/media_mimeref.asp

-Jake

-----Original Message-----
From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-bounces at lists.sourceforge.net] On Behalf Of Andreas Ericsson
Sent: Friday, July 18, 2008 11:51 AM
To: Nagios Developers List
Cc: Cédric Temple
Subject: Re: [Nagios-devel] Embedded sounds in Nagios 3

Jonathan Clarke wrote:
> Hi,
> 
> I've been testing the sound embedded in pages on Nagios 3.0.3. Comparing
> it to a clean install of Nagios 2, I noticed these two points:
> 
> 1) There was a bug in the "Tactical overview" page, and the path to the
> sound file was not included in the HTML output.
> 
> 2) On a Windows machine, neither Firefox nor IE plays the sound :-(
> I tracked this down to the "type" parameter in the HTML, which was
> changed from "application/x-mplayer2" to "application/wav".
> 
> Please find attached a patch that corrects these two points, on the
> 3.0.3 source code.
> 

Your patch is back-to-front. Seems like you did
	diff -u new old
when the syntax to do it is supposed to be
	diff -u old new

As it is, the patch applies correctly with "patch -p1 -R < patch"

> While 1 is obviously just a typo, I imagine that 2 was a deliberate
> change :) Maybe there is a better solution than just reverting this?
> 

application/x-wav should be correct, I think, although I neither know
nor care.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/




More information about the Developers mailing list