Wowza Community

Simple Server Statistics

  • Hour, day, month Server Statistics to Graph(HTML5 Canvas or VML(ie)).

  • Ajax Communicate.

  • Use Sqlite Database. (no install, use only jar file).

  • Auto delete old record.

Setup :

  1. Download & unzip following sqlite & stats module.

http://www.homux.co.kr/download/homux-stats/homux-stat.zip

  1. Copy homux-serverstat.jar, sqlitejdbc-v056.jar into [install-dir]/lib and homux-stat.db into anywhere.

  2. Server.xml enter the module information.

<ServerListener>
	<BaseClass>com.homux.wms.server.ServerStat</BaseClass>
</ServerListener>
  1. Add the following property to the Properties. (homux-dbFile property is homux-stat.db location, homux-insertCycle is db insert cycle. default 60 sec.)
<Property>
	<Name>homux-dbFile</Name>
	<Value>c:/homux-stat.db</Value>
</Property>
<Property>
	<Name>homux-insertCycle</Name>
	<Value>60000</Value>
</Property>
  1. Vhost.xml enter the Admin HostPort(8086) HTTPProviders module information.
<HTTPProvider>
	<BaseClass>com.homux.wms.http.ServerReport</BaseClass>
	<RequestFilters>serverreport*</RequestFilters>
	<AuthenticationMethod>admin-digest</AuthenticationMethod>
</HTTPProvider>
  1. Wowza Media Server restarting.

  2. Enter the following URL into the Web browser on your PC.

http://[wowza-address]:8086/serverreport

auto refresh time : hour - 1 min, day - 12 min, month - 3 hour.

enjoy~

Jinmo.

Anyone got this working on Linux or Mac?

I get this error:

ERROR server comment - Error loading: com.sqlite.JDBC : java.lang.ClassNotFoundException: org.sqlite.JDBC

SQLException: No suitable driver found for jdbc:sqlite:/db/homux-stat.db

SQLState: 08001

VendorError: 0

Thanks for this - it rocks! Now if there was only a simple way of breaking down the stats per Wowza Application… any plans on adding this? In either case, many thanks again for providing this to us!!

Hi comjakma,

Great app indeed. I’m using Wowza in a Mac OS X 10.6.x and everything works fine except the graphics are not display. After 2 days, the graphs show no stats, the db file seems not to be written by homux. The db file is r/w for everyone and the path has been defined in Properties. I even put the db file in the root directory of the volume with no luck. If i go to http://[wowza-address]:8086/serverreport/getData.html, I can see the stats working. Any suggestions would be greatly appreciated. Thanx

hello… you can give a copy of this file … homux-stat.zip thank you!!!

Did you restart Wowza after adding jar files to the lib folder?

Richard

Check the error log.

Also check on port 1935, in case you put the HTTProvider in that HostPort:

http://[wowza-address]:1935/serverreport/getData.html

Richard

Review your changes to /conf/VHost.xml. Undo and start over if possible.

Richard

Take a look at connectioncounts HTTProvider

https://www.wowza.com/docs/how-to-monitor-server-connections-load-and-application-statistics

Richard

Mamoor,

This shows that Wowza is installed and running. You can proceed to configuring applications and testing playback in supported clients.

Richard

This is usually audio+video bitrate. It is probabably outBitRate, i.e., server to client bitrate, but I am not sure about Simple Server Statistics, I have not used it.

Richard

Hi,

Thanks for this app. But it did not work for me, look:

http://66.228.126.145:8086/serverreport

No error in log files.

Any idea?

Thanks

Please send a PM with the price for stats per application.

Stats per application are shared with my contracted customers currently. But I haven’t decided whether or not to open them.

Jinmo

Many thanks comjakma! Works great!

@PLUG.Andre: About Step 5: you must insert the HTTPProvider block before the one about com.wowza.wms.http.HTTPServerVersion. Should work then …

On os x it works for me!

homux-dbFile

/Library/WowzaMediaServer-2.1.1/conf/homux-stat.db

On EC2 too:

homux-dbFile

/home/wowza/conf/homux-stat.db

homux-insertCycle

10000

i now need to create the upload package including it to my edges… and a web page including all of those edges nice graphs picking each edges automatically …

GREAT APP!

I can´t get this work !! Help please

My VHost.xml

4

*

1935

true

24000

65000

true

100

cupertinostreaming,smoothstreaming,sanjosestreaming

com.homux.wms.http.ServerReport

serverreport*

admin-digest

com.wowza.wms.http.HTTPCrossdomain

*crossdomain.xml

none

com.wowza.wms.http.HTTPClientAccessPolicy

*clientaccesspolicy.xml

none

com.wowza.wms.http.HTTPServerVersion *

none

1

*

8086

true

16000

16000

true

100

com.homux.wms.http.ServerReport

serverreport*

admin-digest

com.wowza.wms.http.streammanager.HTTPStreamManager

streammanager*

admin-digest

com.wowza.wms.http.HTTPServerInfoXML

serverinfo*

admin-digest

com.wowza.wms.http.HTTPConnectionInfo

connectioninfo*

admin-digest

com.wowza.wms.http.HTTPConnectionCountsXML

connectioncounts*

admin-digest

com.wowza.wms.http.HTTPServerVersion

*

none

smoothstreaming

smoothstreaming

cupertinostreaming

cupertinostreaming

sanjosestreaming

sanjosestreaming

120

80

4

50

5

4

250

true

65000

24000

true

100

2000

90000

250

75

true

256000

65000

50

4096

true

65000

65000

50

4096

4

8

4

4

60000

12000

20000

0

60000

true

My Server.xml

*

8083

Server,VHost,VHostItem,Application,ApplicationInstance,MediaCaster,Module,IdleWorker

false

localhost

localhost

8084

8085

true

${com.wowza.wms.ConfigHome}/conf/jmxremote.password

${com.wowza.wms.ConfigHome}/conf/jmxremote.access

false

Shockwave Flash|CFNetwork|MacNetwork/1.0 (Macintosh)

com.homux.wms.server.ServerStat

10

10

6970

false

homux-dbFile

/usr/local/WowzaMediaServer-2.2.2/conf/homux-stat.db

homux-insertCycle

60000

What im doing wrong ?!?! I already upload the files homux-serverstat.jar, sqlitejdbc-v056.jar into [install-dir]/lib and homux-stat.db into anywhere

Thks

Hi rrlanham, Yes I restrted Wowza after adding jar files into the lib folder, actually i just restarted again

root@empresarios [~]# /etc/init.d/WowzaMediaServer restart

WowzaMediaServer: stopping

waiting for processes to exit

waiting for processes to exit [ OK ]

WowzaMediaServer: starting [ OK ]

comjakma: When I go to http://[wowza-address]:8086/serverreport/getData.html I just got a blank page !

What do you think might be doing wrong? Can you help me?

Thanks guys

nothing …

Do u think its something to do with uncomment the stats appender in /conf/log4j.properties file. ??? because i have not touch that file !

Thks

Please send a PM with the price for stats per application.

I’m interesting to buy stats per application too, thks