Alert sounds for Manage without Quicktime Plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Alert sounds for Manage without Quicktime Plugin

Post by streaker69 »

I use Firefox all the time, and one thing that's always bothered me is the default association with playing an embedded WAV and needing to install Quicktime. I also like to use Gilles plugin Manage, but never liked that I needed Quicktime.

I made a little change to the manage_ajax.php so that if you're running Windows to watch Cacti, it will now embed Media player in both IE and FF without the need for Quicktime to be installed.

Just install the following code at the indicated places.

Code: Select all

	$sound = $config["url_path"] . "plugins/manage/images/themes/".$theme."/attn-noc.wav";
	print "<object id=MediaPlayer1 CLASSID=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6";
	print "standby=Loading Microsoft Windows® Media Player components... type=application/x-oleobject width=640 height=480>";
	print "<param name=fileName value=".$sound.">";
	print "<param name=animationatStart value=true>";
	print "<param name=transparentatStart value=true>";
	print "<param name=autoStart value=true>";
	print "<param name=playcount value=0>";
	print "<param name=uimode value=invisible>";
	print "<param name=Volume value=-450>";
	print "<embed type=application/x-mplayer2 pluginspage=http://www.microsoft.com/Windows/MediaPlayer/ src=".$sound." name=MediaPlayer1 uimode=invisible width=1 height=1 autostart=1 playcount=0 volume=-450>";
	print "</object>";
It should work without much issues, as long as you have Media Player installed on your Windows Boxen. Make sure you comment out the lines indicated in the screen caps or else you'll have either two instances playing, or you'll be asked for the QuickTime plugin as well as having the sound play.
Attachments
SP32-20080807-091933.gif
SP32-20080807-091933.gif (13.37 KiB) Viewed 2884 times
SP32-20080807-091913.gif
SP32-20080807-091913.gif (13.19 KiB) Viewed 2884 times
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

I am telling Steve Jobs that you are trying to avoid Apple's Quicktime!
You are sooo busted!

Oh, and what is FireFox?
That better be another name for Safari or I am telling Steve about that too!
Freakin' Amish...
:)
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests