Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


scripts and templates for nginx

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
umask



Joined: 20 Mar 2008
Posts: 2

PostPosted: Fri Mar 21, 2008 3:34 am    Post subject: scripts and templates for nginx Reply with quote

Scripts and templates for nginx.

Nginx - http://nginx.net/

Provide graphing nginx clients statistics (active, reading, writing, waiting) and nginx socket statistics (accepts, handled, requests). It's a formal devision used only for graphs usability.

For use do next steps:

1. Enable nginx http_stub_status_module at configure stage (if requared).

2. Enable stub status. Add to nginx.conf (in any server context):

Code:

location /nginx_status {
   stub_status on;
   # disable access_log if requared
   access_log   off;
   #allow XX.YY.AA.ZZ;
   #allow YY.ZZ.JJ.CC;
   #deny all;
}


Restart nginx.

3.

Code:

cp get_nginx_clients_status.pl <path_cacti>/scripts/
cp get_nginx_socket_status.pl <path_cacti>/scripts/
chmod 0755 <path_cacti>/scripts/get_nginx_socket_status.pl
chmod 0755 <path_cacti>/scripts/get_nginx_clients_status.pl


4. Check that it's work. Run

Code:

get_nginx_clients_status.pl http://nginx.server.tld/nginx_status


and see that returned the same string:

Code:

nginx_accepts:113869 nginx_handled:113869 nginx_requests:122594


5. Import to cacti cacti_graph_template_nginx_clients_stat.xml and cacti_graph_template_nginx_sockets_stat.xml.

6. Add nginx graphs to your hosts.

P.S. Sorry for my english



cacti-nginx.tar.gz
 Description:

Download
 Filename:  cacti-nginx.tar.gz
 Filesize:  5.15 KB
 Downloaded:  976 Time(s)

Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 14053
Location: Muenster, Germany

PostPosted: Fri Mar 21, 2008 10:51 am    Post subject: Reply with quote

Moving to Scripts and Templates.
Is it possible to provide some screenshots?
Reinhard
Back to top
umask



Joined: 20 Mar 2008
Posts: 2

PostPosted: Sat Mar 22, 2008 1:58 am    Post subject: Reply with quote

graphs

(my server have low load now).



graph_image_nginx_sockets_stat.png
 Description:
 Filesize:  37.12 KB
 Viewed:  3959 Time(s)

graph_image_nginx_sockets_stat.png



graph_image_nginx_clients_stat.png
 Description:
 Filesize:  42.42 KB
 Viewed:  3959 Time(s)

graph_image_nginx_clients_stat.png


Back to top
myfreeke
Cacti User


Joined: 04 Dec 2007
Posts: 81

PostPosted: Thu May 15, 2008 12:15 am    Post subject: Reply with quote

Hey umask


I Import xml error:

Error: XML: Hash version does not exist.
Back to top
kirgudu



Joined: 04 Feb 2009
Posts: 3

PostPosted: Fri Apr 03, 2009 7:17 am    Post subject: Reply with quote

works fine, thank's!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group