--------------090204030702010100020906
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi,
Larry Low a écrit :
> My original suggestion was to use audio/wav but application/x-wav was
> implemented.
>
> As far as I can tell there is no actual IANA registration for
> audio/wav so audio/x-wav would be the proper one.
>
> If it is not working in Firefox it is most likely due to you not
> having a plugin installed to handle it. Try Quicktime.
"audio/x-wav" does seem to be the correct mime type. Changing this in
the Nagios source code makes the alert sound play correctly on IE on
Windows.
However, in Firefox on Windows with the Quicktime plugin (thanks for
that tip), another parameter is needed for the sound to start
automatically: param "autostart" must be set to "true", not to "1".
With these two modifications, I find the sound plays automatically on
all tested navigators on both Windows and Linux. Success!
Please find attached a new patch which incorporates these changes,
aswell as the typo fixed I mentioned in my first message.
Regards,
Jonathan
--
Jonathan Clarke
Open Source Software Assurance (OSSA) - Groupe LINAGORA
27 rue de Berri, 75008 Paris
Tél: 01 58 18 68 28, fax: 01 58 18 68 29
http://www.linagora.com - http://www.08000linux.com
--------------090204030702010100020906
Content-Type: text/x-diff;
name="nagios_3.0.3_nosound3.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios_3.0.3_nosound3.patch"
diff -Naurb nagios-3.0.3/cgi/status.c nagios-3.0.3_patched2/cgi/status.c
--- nagios-3.0.3/cgi/status.c 2008-06-23 16:47:46.000000000 -0400
+++ nagios-3.0.3_patched2/cgi/status.c 2008-07-21 09:09:35.000000000 -0400
@@ -438,9 +438,9 @@
else if(problem_services_unknown==0 && problem_services_warning==0 && problem_services_critical==0 && problem_hosts_down==0 && problem_hosts_unreachable==0 && normal_sound!=NULL)
sound=normal_sound;
if(sound!=NULL){
- printf("",url_media_path,sound);
+ printf("",url_media_path,sound);
printf("",url_media_path,sound);
- printf("");
+ printf("");
printf("");
printf("");
}
diff -Naurb nagios-3.0.3/cgi/tac.c nagios-3.0.3_patched2/cgi/tac.c
--- nagios-3.0.3/cgi/tac.c 2008-02-21 01:17:37.000000000 -0500
+++ nagios-3.0.3_patched2/cgi/tac.c 2008-07-21 09:09:43.000000000 -0400
@@ -323,9 +323,9 @@
else if(services_unknown_unacknowledged==0 && services_warning_unacknowledged==0 && services_critical_unacknowledged==0 && hosts_down_unacknowledged==0 && hosts_unreachable_unacknowledged==0 && normal_sound!=NULL)
sound=normal_sound;
if(sound!=NULL){
- printf("");
+ printf("",url_media_path,sound);
printf("",url_media_path,sound);
- printf("");
+ printf("");
printf("");
printf("");
}
--------------090204030702010100020906--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]