summary.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <div>
  2. <div class="accordion">
  3. <div class="accordion-group">
  4. <div class="accordion-heading" sc-collapse="in">
  5. <a class="accordion-toggle" href="javascript:void(0)">
  6. 服务器基本信息
  7. </a>
  8. </div>
  9. <div id="collapseOne" class="accordion-body collapse">
  10. <div class="accordion-inner">
  11. <div class="row">
  12. <div class="span3">
  13. <table class="table table-bordered" ng-if="server">
  14. <tr>
  15. <th colspan="2">SRS/{{server.version}}</th>
  16. </tr>
  17. <tr>
  18. <td>运行</td>
  19. <td>{{server.srs_uptime| sc_filter_time}}</td>
  20. </tr>
  21. <tr>
  22. <td>CPU</td>
  23. <td>{{server.cpu_percent| sc_filter_percentf}} / {{system.cpus_online| sc_filter_percentf}}</td>
  24. </tr>
  25. <tr>
  26. <td>内存</td>
  27. <td>
  28. {{server.mem_percent| sc_filter_percentf2}}
  29. {{server.mem_kbyte| sc_filter_filesize_k2}} / {{system.mem_ram_kbyte| sc_filter_filesize_k2}}
  30. </td>
  31. </tr>
  32. <tr>
  33. <td>网络</td>
  34. <td>
  35. <span title="SRS的连接数">{{system.conn_srs}}</span> /
  36. <span title="SRS的入网带宽,即客户端上传带宽">{{kbps.in.srs| sc_filter_bitrate_k2}}</span> /
  37. <span title="SRS的出网带宽,即客户端下载带宽">{{kbps.out.srs| sc_filter_bitrate_k2}}</span>
  38. </td>
  39. </tr>
  40. </table>
  41. </div>
  42. <div class="span3">
  43. <table class="table table-bordered" ng-if="system">
  44. <tr>
  45. <th colspan="2">OS信息</th>
  46. </tr>
  47. <tr>
  48. <td>运行</td>
  49. <td>{{system.uptime| sc_filter_time}}</td>
  50. </tr>
  51. <tr>
  52. <td>CPU</td>
  53. <td>{{system.cpu_percent * system.cpus_online| sc_filter_percentf}} / {{system.cpus_online| sc_filter_percentf}}</td>
  54. </tr>
  55. <tr>
  56. <td>内存</td>
  57. <td>
  58. {{system.mem_ram_percent| sc_filter_percentf2}}
  59. {{system.mem_ram_kbyte * system.mem_ram_percent| sc_filter_filesize_k2}} / {{system.mem_ram_kbyte| sc_filter_filesize_k2}}
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>负载</td>
  64. <td>{{system.load_1m| sc_filter_number}} / {{system.load_5m| sc_filter_number}} / {{system.load_15m| sc_filter_number}}</td>
  65. </tr>
  66. </table>
  67. </div>
  68. <div class="span3">
  69. <table class="table table-bordered" ng-if="system">
  70. <tr>
  71. <th colspan="2">负载信息</th>
  72. </tr>
  73. <tr>
  74. <td>外网</td>
  75. <td>
  76. <span title="系统外网的入网带宽,即客户端上传带宽">{{kbps.in.sys| sc_filter_bitrate_k2}}</span> /
  77. <span title="系统外网的出网带宽,即客户端下载带宽">{{kbps.out.sys| sc_filter_bitrate_k2}}</span>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td>内网</td>
  82. <td>
  83. <span title="系统内网的入网带宽,即客户端上传带宽">{{kbps.in.inner| sc_filter_bitrate_k2}}</span> /
  84. <span title="系统内网的出网带宽,即客户端下载带宽">{{kbps.out.inner| sc_filter_bitrate_k2}}</span>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td>连接</td>
  89. <td>
  90. <span title="系统总连接数">{{system.conn_sys}}</span>
  91. <span title="系统ESTABLISHED状态的连接数">{{system.conn_sys_et}}</span>
  92. <span title="系统TIME_WAIT状态的连接数">{{system.conn_sys_tw}}</span>
  93. <span title="系统UDP绑定端口">{{system.conn_sys_udp}}</span>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>磁盘</td>
  98. <td>
  99. <span title="IO繁忙度">{{system.disk_busy_percent| sc_filter_percentf2}}</span>
  100. <span title="磁盘读取速度Bps">{{system.disk_read_KBps| sc_filter_filerate_k2}}</span>
  101. <span title="磁盘写入速度Bps">{{system.disk_write_KBps| sc_filter_filerate_k2}}</span>
  102. </td>
  103. </tr>
  104. </table>
  105. </div>
  106. <div class="span2">
  107. <table class="table table-bordered" ng-if="system">
  108. <tr>
  109. <th colspan="2">其他信息</th>
  110. </tr>
  111. <tr>
  112. <td title="系统CPU信息">CPU</td>
  113. <td>
  114. <span title="CPU核心数">{{system.cpus}}</span> /
  115. <span title="在线CPU核心数">{{system.cpus_online}}</span>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td title="SRS的PID">PID</td>
  120. <td>{{server.pid}}</td>
  121. </tr>
  122. <tr>
  123. <td title="SRS的父PID">PPID</td>
  124. <td>{{server.ppid}}</td>
  125. </tr>
  126. <tr>
  127. <td title="SRS API是否有效">Ready</td>
  128. <td>{{global.ok| sc_filter_yesno}}</td>
  129. </tr>
  130. </table>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>