Current time: 11-28-2024, 02:29 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GraphStat whith RRDtools
Author Message
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #12
RE: GraphStat whith RRDtools
crontab -e

*/1 * * * * /var/www/ispcp/engine/rrd/netstat.sh >/dev/null 2>&1
*/1 * * * * /var/www/ispcp/engine/rrd/resourses.sh >/dev/null 2>&1
*/1 * * * * /var/www/ispcp/engine/rrd/memory.sh >/dev/null 2>&1
*/1 * * * * /var/www/ispcp/engine/rrd/hdd_usage.sh >/dev/null 2>&1
*/1 * * * * /var/www/ispcp/engine/rrd/speed_fan.sh >/dev/null 2>&1
*/1 * * * * /var/www/ispcp/engine/rrd/temp_cpu.sh >/dev/null 2>&1
*/1 * * * * /var/www/ispcp/engine/rrd/temp_hdd.sh >/dev/null 2>&1

Если кто копал первый вариант, старую базу придётся удалить.

Остаётся сделать левое меню, капнуть русификации и усё. Мона буить наводить марафет.
вставляем
admin/menu_statistics.tpl

<tr>
<td><a href="graph_cpu.php" class="submenu">{TR_MENU_CPU_GRAPH}</a></td>
</tr>
<tr>
<td height="3" width="193"><img src="{THEME_COLOR_PATH}/images/top/menu_separator.jpg" height="3" width="193" alt="" /></td>
</tr>
<tr>
<td><a href="graph_mem.php" class="submenu">{TR_MENU_MEM_GRAPH}</a></td>
</tr>
<tr>
<td height="3" width="193"><img src="{THEME_COLOR_PATH}/images/top/menu_separator.jpg" height="3" width="193" alt="" /></td>
</tr>
<tr>
<td><a href="graph_hddusage.php" class="submenu">{TR_MENU_HDD_GRAPH}</a></td>
</tr>
<tr>
<td height="3" width="193"><img src="{THEME_COLOR_PATH}/images/top/menu_separator.jpg" height="3" width="193" alt="" /></td>
</tr>
<tr>
<td><a href="graph_netstat.php" class="submenu">{TR_MENU_NET_GRAPH}</a></td>
</tr>
<tr>
<td height="3" width="193"><img src="{THEME_COLOR_PATH}/images/top/menu_separator.jpg" height="3" width="193" alt="" /></td>
</tr>
<tr>
<td><a href="graph_temp.php" class="submenu">{TR_MENU_TEMP_GRAPH}</a></td>
</tr>
<tr>
<td height="3" width="193"><img src="{THEME_COLOR_PATH}/images/top/menu_separator.jpg" height="3" width="193" alt="" /></td>
</tr>

вставляем в /var/www/ispcp/gui/include/admin-functions.php
после строки 'TR_MENU_SERVER_STATISTICS' => tr('Server statistics'),
следующее
'TR_MENU_CPU_GRAPH' => tr('CPU Load'),
'TR_MENU_MEM_GRAPH' => tr('Memory Usage'),
'TR_MENU_HDD_GRAPH' => tr('HDDs Usage'),
'TR_MENU_NET_GRAPH' => tr('Ehernet Speed'),
'TR_MENU_TEMP_GRAPH' => tr('Termal Graphic'),

Наслаждайтесь, сейчас русификацию доделаю


Attached File(s)
.gz  ispGraphStat_0.3.tar.gz (Size: 9.16 KB / Downloads: 4)
(This post was last modified: 03-26-2010 04:59 PM by data-stream_ru.)
03-26-2010 12:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
GraphStat whith RRDtools - data-stream_ru - 03-22-2010, 04:02 AM
RE: GraphStat whith RRDtools - Nuxwin - 03-22-2010, 04:57 AM
RE: GraphStat whith RRDtools - MasterTH - 03-22-2010, 03:45 PM
RE: GraphStat whith RRDtools - server801 - 03-24-2010, 07:36 AM
RE: GraphStat whith RRDtools - data-stream_ru - 03-26-2010 12:47 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)