Changeset 30 for measure_scripts/monitor_sample.php
- Timestamp:
- Feb 13, 2008, 2:24:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
measure_scripts/monitor_sample.php
r27 r30 7 7 include('wow.php'); 8 8 9 GetNetworkStat();9 //GetNetworkState(); 10 10 while(1) 11 11 { 12 $NetworkStat = GetNetworkState();12 $NetworkState = GetNetworkState(); 13 13 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=3&Value='.MemoryUsage()); 14 14 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=4&Value='.CpuUsage()); … … 18 18 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=8&Value='.WoWAccountCount()); 19 19 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=10&Value='.WoWGMOnline()); 20 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=11&Value='.round($NetworkStat ['eth1']['down_avg']));21 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=12&Value='.round($NetworkStat ['eth1']['up_avg']));20 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=11&Value='.round($NetworkState['eth1']['down_avg'])); 21 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=12&Value='.round($NetworkState['eth1']['up_avg'])); 22 22 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=13&Value='.WoWCharacterCount()); 23 23 file_get_contents($Config['AddNewValueUrl'].'?MeasureId=14&Value='.WoWGuildCount());
Note:
See TracChangeset
for help on using the changeset viewer.