Skip to content

lukehuang/Zabbix-template-NGINX-advanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zabbix Template NGINX-advanced

Based on template: https://github.com/hpoul/zabbix-nginx-stats

A. Testing

Templates were developed and tested on:

Zabbix 2.2.x
Centos 6

B. Requirements

  • enabled access request logging into files with suffix .access.zabbix.log with this format:
         log_format timed_combined '$remote_addr $host $remote_user [$time_local]  '
                    '"$request" $status $body_bytes_sent '
                    '"$http_referer" "$http_user_agent" $request_time $upstream_response_time $pipe';
  • perl modules/packages:

    • perl-Statistics-Descriptive
    • perl-TimeDate
  • zabbix-sender

  • running zabbix-agent :)

C. Installation

  • copy file "zabbix-nginx-adv.conf" into your zabbix-agent include folder

  • copy files from scripts folder into /etc/zabbix/scripts folder (with 755 perms)

  • import xml file as template into your zabbix-server

D. Monitored Items

through Discovery:

  • Nginx status HTTP_STATUS_CODE "{#NAME}"

  • Nginx upstream_time ... "{#NAME}"

  • Nginx request_time ... "{#NAME}"

Nginx advanced items:

  • Uptime

E. License

This template were distributed under GNU General Public License 3.

F. Docs

G. Copyright

Copyright (c) 2016 Sugarfactory, s.r.o.

H. Authors

Patrik Majer (patrik.majer.pisek |at| gmail |dot| com)

About

zabbix template for nginx access logs stats

Resources

License

Stars

Watchers

Forks

Packages

No packages published