#!/bin/bash TOTALCONNS=`java -cp /root/scripts JMXCommandLine -jmx service:jmx:rmi://$1:8084/jndi/rmi://$1:8085/jmxrmi -user admin -pass jmxpassword getConnectionCounts` LIVECONNS=`java -cp /root/scripts JMXCommandLine -jmx service:jmx:rmi://$1:8084/jndi/rmi://$1:8085/jmxrmi -user admin -pass jmxpassword getConnectionCounts _defaultVHost_:liverepeater` echo "$TOTALCONNS" echo "$LIVECONNS"
/root/scripts/get_wowza_connections.sh 10.0.0.1
Target[edge1.conns]: `/root/scripts/get_wowza_connections.sh 10.0.0.1` Directory[edge1.conns]: myhostname Options[edge1.conns]: nopercent,growright,gauge,noinfo Title[edge1.conns]: Open Wowza connections -- edge1.btvcluster PageTop[edge1.conns]: <H1>Open Wowza connections -- edge1.btvcluster</H1> MaxBytes[edge1.conns]: 10000 YLegend[edge1.conns]: # conns ShortLegend[edge1.conns]: connections LegendI[edge1.conns]: Total Connections: LegendO[edge1.conns]: Live Cons Legend1[edge1.conns]: Open Wowza connections -- myhostname
#!/bin/bash TOTALCONNS=`java -cp /root/scripts JMXCommandLine -jmx service:jmx:rmi://$1:8084/jndi/rmi://$1:8085/jmxrmi -user admin -pass jmxpassword getConnectionCounts` LIVECONNS=`java -cp /root/scripts JMXCommandLine -jmx service:jmx:rmi://$1:8084/jndi/rmi://$1:8085/jmxrmi -user admin -pass jmxpassword getConnectionCounts _defaultVHost_:liverepeater` echo "$TOTALCONNS $LIVECONNS"
#!/bin/sh case $1 in config) cat <<'EOM' graph_title Wowza connections graph_scale no graph_category wowza graph_vlabel connections total_connections.label total connections live_connections.label live connections total_connections.draw AREA live_connections.draw LINE1 EOM exit 0;; esac cons=`/root/scripts/get_wowza_connections.sh 10.0.0.1` tot=`echo $cons | cut -d' ' -f1` live=`echo $cons | cut -d' ' -f2` echo -n "total_connections.value " echo $tot echo -n "live_connections.value " echo $live
Answer by tuan phan van · Jun 07, 2011 at 01:32 AM
Answer by Richard Lanham · Jun 07, 2011 at 10:14 AM
Answer by Richard Lanham · Aug 23, 2011 at 10:32 PM
Should run same on Windows. Here is setup guide for JMX command line:
http://www.wowza.com/forums/content.php?151-Sample-Java-class-for-creating-a-command-line-interface-to-control-Wowza-Media-Server
Richard
Answer by Richard Lanham · Mar 01, 2012 at 02:38 PM
Regarding the graphs at the top of this thread posted by "georgi", I'm not familiar with that. You can get connection count graphs in JConsole like this:
http://www.wowza.com/forums/content.php?174-How-to-graph-individual-values-(ex.-concurrent-connections-to-the-server)
Richard
Answer by Richard Lanham · Jan 05, 2013 at 02:20 PM
Answer by Richard Lanham · Jan 07, 2013 at 02:09 PM
Answer by Randall Auriemma · Mar 01, 2012 at 06:41 PM
© 2005–2019 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal