Build Nginx
Installing the Pcre-devel, Zlib-devel support Package
[Email protected]/]# yum-y install Pcre-devel zlib-devel
Create Nginx User
[Email protected]/]# useradd-m-s/sbin/nologin nginx
Unzip the installation
[Email protected]/]# tar zxvf nginx-1.6. 0 /]# CD nginx-1.6. 0 [email protected] nginx-1.6.0]#/configure--prefix=/usr/local/nginx--with-http_realip_module--with-http_sub _module--with-http_gzip_static_module--with-http_stub_status_module--with-pcre
[[email protected] nginx-1.6.0]# make && make install
Optimizing Execution paths
[Email protected] nginx-1.6. 0] # ln-s/usr/local/nginx/sbin/* /usr/local/sbin/
On the Zabbix agentd client, check to see if Nginx has loaded the--with-http_stub_status_module. Zabbix Monitoring based on Nginx stub status module, fetch the data provided
Check if With-http_stub_status_module is installed
[Email protected] nginx-1.6. 0] #/usr/local/sbin/nginx-Vnginx version:nginx/1.6. 0 4.4. 7 20120313 4.4. 7---prefix=/usr/local/nginx--with-http_realip_module--with-http_sub_module- -with-http_gzip_static_module--with-http_stub_status_module--with-pcre
Zabbix 3.0.4 Nginx Performance monitoring