<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>This problem is a Mac OS X problem, or a Safari problem, or a QuickTime problem,</DIV><DIV>or a Nagios problem - I'm not sure.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I can't get Nagios noises to come out of my Safari browser.  Other Nagios users</DIV><DIV>at my company have no problems getting noises out of, say, Firefox on Linux.</DIV><DIV>I can't get them out of Safari on my Mac, but I'm close!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm the admin for Nagios at my site, where I run Nagios 2.6 on a Linux box.</DIV><DIV>On my client Mac, I'm running Safari 2.0.4 (419.3) under Mac OS X 10.4.10.</DIV><DIV>When I visit our local Nagios server with Safari, everything looks fine and</DIV><DIV>I can navigate fine.  But when Nagios tried to make a sound, I got a dialog</DIV><DIV>box that said</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>   Safari can't display content on this page.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>   The application "Windows Media Player.app" may be</DIV><DIV>   able to play this content.  Would you like to try?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>When I clicked "Ok", WMP fired up and immediately popped up its own dialog box</DIV><DIV>that said "One or more arguments are not valid".  When I clicked "No", of course</DIV><DIV>the Safari dialog disappeared quietly.  So the Safari dialog was a visible</DIV><DIV>indicator that Nagios was unhappy, but I'd much rather have an audible indicator,</DIV><DIV>and not have to get rid of the dialog every time :-)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Safari is capable of playing Nagios noises.  If I navigate to my Nagios server</DIV><DIV>and go to /media/hostdown.wav, Safari uses QuickTime to play the Nagios</DIV><DIV>"hostdown" sound just fine.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I suspected a MIME type problem, so I set my Mac to use QuickTime</DIV><DIV>to play audio/x-wav things.  This didn't change the behavior.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Then I used Wireshark to capture the packets sent by our Nagios</DIV><DIV>server to my Mac.  I learned that when Nagios wants to make a sound,</DIV><DIV>it embeds this in the HTML:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><object type="application/x-mplayer2" height="-" width="0"></DIV><DIV><paramname="filename" value="/nagios2/media/hostdown.wav"></DIV><DIV><param name="autostart" value="1"></DIV><DIV><param name="playcount" value="1"></DIV><DIV></object></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I later discovered that I could see the same text using Safari's</DIV><DIV>"View->View Source", *but only if the page was one that had a sound*.  In</DIV><DIV>other words, a bunch of red acknowledged stuff isn't enough - there has</DIV><DIV>to be at least one unacknowledged red item on the page.  It was essential</DIV><DIV>that I view the source immediately after Safari failed to play a sound,</DIV><DIV>and before the web page auto-updated.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So I used "Default Apps" (a.k.a. RCDefaultApp) to set my Mac to play</DIV><DIV>the "application/x-mplayer2" MIME type with QuickTime.  This time around,</DIV><DIV>Safari displayed</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>   Safari cannot find the Internet plug-in.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>   The page "Nagios" has a content of MIME type</DIV><DIV>   "application/x-mplayer2".  Because you don't have a</DIV><DIV>   plug-in installed for this MIME type, this content</DIV><DIV>   can't be displayed.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Hmmm.  I changed things, but just ta a different error.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Then I discovered that Safari has a "Help->Installed Plug-ins".  It listed</DIV><DIV>"QuickTime Plug-in 7.2", with a long list of MIME types that QuickTime will</DIV><DIV>handle.  Actually, it listed QuickTime twice.  I deleted a file from</DIV><DIV>/Library/Internet Plug-Ins and and restarted Safari to get that down to one.</DIV><DIV>But the MIME types listed for QuickTime 7.2 didn't include</DIV><DIV>"application/x-mplayer2".  Sigh.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Then I discovered that System Preferences has a QuickTime section.  It has</DIV><DIV>an "Advanced" tab that has a "MIME Settings..." button, but that sets the</DIV><DIV>MIME types that QuickTime handles, not the MIME types of the QuickTime</DIV><DIV>plugin handles.  Anyway, there doesn't seem to be one that deals with</DIV><DIV>"application/mplayer2".</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Then I discovored that there's support at <A href="http://www.apple.com/quicktime/download/">http://www.apple.com/quicktime/download/</A>,</DIV><DIV>including a manual for QuickTime, mailing lists, etc.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Then I discovered that it's the /usr/lib/cgi-bin/nagios2/status.cgi</DIV><DIV>that generates the responses.  Perhaps if I could modify it to use</DIV><DIV>something other than "application/x-mplayer2"?  Nagios is open source,</DIV><DIV>right?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Do I actually have to modify Nagios souurce code to fix this?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Help!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-- Pete</DIV><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>