Last change
on this file since 37 was 37, checked in by george, 17 years ago |
Změna rozvržení složek na klasický styl trunk, branches a tags. Stránka o vývoji přehozena do složky devel a vlastní pomocné skripty do složky custom.
|
File size:
1.7 KB
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | // Toto je ukázkový skript pro aktualizaci dat. Zkopírujte si jej jako monitor.php a upravte podle potřeby.
|
---|
4 |
|
---|
5 | include('../global.php');
|
---|
6 | include('system.php');
|
---|
7 | include('wow.php');
|
---|
8 |
|
---|
9 | //GetNetworkState();
|
---|
10 | while(1)
|
---|
11 | {
|
---|
12 | $NetworkState = GetNetworkState();
|
---|
13 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=3&Value='.MemoryUsage());
|
---|
14 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=4&Value='.CpuUsage());
|
---|
15 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=5&Value='.WoWPlayersOnline());
|
---|
16 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=6&Value='.WoWEmulatorRestartCount());
|
---|
17 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=7&Value='.DiskFree());
|
---|
18 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=8&Value='.WoWAccountCount());
|
---|
19 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=10&Value='.WoWGMOnline());
|
---|
20 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=11&Value='.round($NetworkState['eth1']['DownAverage']));
|
---|
21 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=12&Value='.round($NetworkState['eth1']['UpAverage']));
|
---|
22 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=13&Value='.WoWCharacterCount());
|
---|
23 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=14&Value='.WoWGuildCount());
|
---|
24 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=15&Value='.WoWEmulatorAvailability());
|
---|
25 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=16&Value='.Ping());
|
---|
26 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=17&Value='.TeamSpeak());
|
---|
27 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=18&Value='.WoWTranslatedQuestsCount());
|
---|
28 | file_get_contents($Config['AddNewValueUrl'].'?MeasureId=19&Value='.DiskUtilization());
|
---|
29 |
|
---|
30 | sleep(58); // 60(measure period) - 2(disk utilization)
|
---|
31 | }
|
---|
32 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.