8086 포트로 Wowza application의 구동 및 서버 커넥션 상태를 확인할 수 있다.
# vi /usr/local/WowzaMediaServer/conf/VHost.xml
87번 라인의 Admin HostPort 항목을 참조하면 되는데 아래 항목들을 모니터링할 수 있다.
streammanager : live stream의 구동
(http://wowza-ip-address:8086/streammanager)
serverinfo : 서버의 실행시간, 전체 커넥션 상태, application별 로딩 및 커넥션 상태 확인
(http://wowza-ip-address:8086/serverinfo)
connectioninfo
(http://wowza-ip-address:8086/connectioninfo)
connectioncounts : 현재 로딩된 application의 커넥션 상태 및 스트림 상세 정보 확인
(http://wowza-ip-address:8086/connectioncounts)
서버의 모니터링만을 위해서는 serverinfo, connectioncounts 정보만 있어도 충분할 것 같다.
<!-- Admin HostPort -->
<HostPort>
<ProcessorCount>1</ProcessorCount>
<IpAddress>*</IpAddress>
<Port>8086</Port>
<SocketConfiguration>
<ReuseAddress>true</ReuseAddress>
<ReceiveBufferSize>16000</ReceiveBufferSize>
<SendBufferSize>16000</SendBufferSize>
<KeepAlive>true</KeepAlive>
<AcceptorBackLog>100</AcceptorBackLog>
</SocketConfiguration>
<HTTPStreamerAdapterIDs></HTTPStreamerAdapterIDs>
<HTTPProviders>
<HTTPProvider>
<BaseClass>com.wowza.wms.http.streammanager.HTTPStreamManager</BaseClass>
<RequestFilters>streammanager*</RequestFilters>
<AuthenticationMethod>admin-digest</AuthenticationMethod>
</HTTPProvider>
<HTTPProvider>
<BaseClass>com.wowza.wms.http.HTTPServerInfoXML</BaseClass>
<RequestFilters>serverinfo*</RequestFilters>
<AuthenticationMethod>admin-digest</AuthenticationMethod>
</HTTPProvider>
<HTTPProvider>
<BaseClass>com.wowza.wms.http.HTTPConnectionInfo</BaseClass>
<RequestFilters>connectioninfo*</RequestFilters>
<AuthenticationMethod>admin-digest</AuthenticationMethod>
</HTTPProvider>
<HTTPProvider>
<BaseClass>com.wowza.wms.http.HTTPConnectionCountsXML</BaseClass>
<RequestFilters>connectioncounts*</RequestFilters>
<AuthenticationMethod>admin-digest</AuthenticationMethod>
</HTTPProvider>
<HTTPProvider>
<BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
<RequestFilters>*</RequestFilters>
<AuthenticationMethod>none</AuthenticationMethod>
</HTTPProvider>
</HTTPProviders>
</HostPort>
웹페이지 접속시 관리자 아이디와 비번을 넣어야만 접속이 가능하게끔 하려면 위의 푸른색 부분과 같이
<AuthenticationMethod> 태그를 admin-digest로 설정해야 한다. (디폴트 설정 값)
로그인 과정 없이 바로 접속하기 위해선 admin-digest를 none으로 변경해주면 된다.
접속 로그인 아이디와 비번은 conf/admin.password 에서 설정할 수 있다.
디폴트로 아무 값도 입력되어 있지 않다.
# vi /usr/local/WowzaMediaServer/conf/admin.password
# Admin password file (format [username][space][password])
#username password접속아이디 접속비번 (아이디와 비번은 스페이스로 구분)
각각의 정보들은 모두 xml 문서이기 때문에 플래쉬나 jquery 등으로 모니터링 툴을 만들어도 될 것 같다.
어짜피 서버 모니터링이 필요하기 땜에 관리자 모드에 붙여놓을 필요가 있겠다.
0