Current time: 05-04-2024, 12:55 AM Hello There, Guest! (LoginRegister)


Post Reply 
Graphical Statistics whith RRD-tools
Author Message
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #8
RE: Graphical Statistics whith RRD-tools
New version whith Apache and nginx HTTP-servers statistics

Improved CPUs stat.
Removed bugs

For upgrate remove old database /rrd/bd/resoures.rrd

Aditional instraction

3. crontab -e

*/1 * * * * /var/www/ispcp/engine/rrd/resourses.sh >/dev/null 2>&1
*/1 * * * * /var/www/ispcp/engine/rrd/netstat.sh >/dev/null 2>&1
*/1 * * * * /var/www/ispcp/engine/rrd/memory.sh >/dev/null 2>&1
*/4 * * * * /var/www/ispcp/engine/rrd/hdd_usage.sh >/dev/null 2>&1
*/3 * * * * /var/www/ispcp/engine/rrd/speed_fan.sh >/dev/null 2>&1
*/2 * * * * /var/www/ispcp/engine/rrd/temp_cpu.sh >/dev/null 2>&1
*/2 * * * * /var/www/ispcp/engine/rrd/temp_hdd.sh >/dev/null 2>&1
*/2 * * * * /var/www/ispcp/engine/rrd/nginx-collect >/dev/null 2>&1
*/5 * * * * /var/www/ispcp/engine/rrd/nginx-graph >/dev/null 2>&1 #optional for nginx http-server
*/3 * * * * /var/www/ispcp/engine/rrd/apache.sh >/dev/null 2>&1 #optional for nginx http-server

9. Edit /etc/httpd/httpd.conf
LoadModule status_module modules/mod_status.so

ExtendedStatus On

<Location /serverstatus>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1 78.46.102.101
</Location>

10.
#service httpd reload

11. add points to menu
admin/menu_statistics.tpl

<tr>
<td><a href="graph_nginx.php" class="submenu">nginx</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_apache.php" class="submenu">Apache</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>

------- optionaly for nginx ---------

12. add to nginx.conf in server directive (server with panel)

location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}

You can add this location on each domain and subdomain that you watn to monitoring. Into vhosts.conf
Plots shows automaticaly if preasent

13. Edit ispcp/engine/rrd/nginx-rrd.conf

You can add to constant SERVERS_URL all ips and domains wich our want to minitoring

14. service nginx reload
if you have an eroor recompile nginx whith option
--with-http_stub_status_module

15. test
#GET http://localhost/nginx_status

Its all.


Attached File(s)
.gz  ispGraphStat_0.7_http.tar.gz (Size: 12.77 KB / Downloads: 33)
(This post was last modified: 04-02-2010 03:24 PM by data-stream_ru.)
03-31-2010 08:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Graphical Statistics whith RRD-tools - Nuxwin - 03-30-2010, 07:03 PM
RE: Graphical Statistics whith RRD-tools - data-stream_ru - 03-31-2010 08:31 PM

Forum Jump:


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