Code Monkey home page Code Monkey logo

zbx-nginx's People

Contributors

sfuerte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

zbx-nginx's Issues

Issue with nginx_status parsing

Hi,

Is there any reason to use such regex to parse numbers in nginx status response?

buffer = re.findall(r'\d{1,8}', result.read())

In my case I have status response and numbers like these:

Active connections: 8788
server accepts handled requests
 546392300 546392300 762056810
Reading: 0 Writing: 162 Waiting: 8626

As you can see numbers are big and pattern does not work as expected. Result of regex matching: ['8788', '54639230', '0', '54639230', '0', '76205681', '0', '0', '162', '8626']

Following regex pattern is working as expected: r'\d+'

Thanks.

importing template gives error

error: Invalid tag "/zabbix_export/templates/template(1)/items/item(1)": unexpected tag "preprocessing".
same error with zabbix server 3.2/3.4

error in userparameter_nginx.conf file

here
UserParameter=nginx.writting[*],/etc/zabbix/zabbix_agentd.scripts/nginx-stat.py -h $1 -p $2 -a writting

you have a double "t" in the word "writing" and this causes an error "ZBX_NOTSUPPORTED: Unsupported item key".
and your scripts require python> = 2.7.9, that mean debian support with version 8 or higher, please specify this

and in your zabbix_template is specified {NGINX.HOST}, in zabbix 3.4 - zabbix interprets this as {HOST.IP} and sends a query of the type "nginx.accepted [{HOST.IP}, 80]", and in response "ZBX_NOTSUPPORTED: Special characters ", ', ", `, *, ?, [, ], {, }, ~, $, !, &, ;, (, ), <, >, |, #, @, 0x0a" are not allowed in the parameters."
if we change it in the zabbix_template {NGINX.HOST} to {HOST.IP}, the interpretation is correct, but we have an error of 403, because in nginx default conf allow - only for 127.0.0.1.
You must add it to allow host.ip in default.conf or change {NGINX.HOST} to 127.0.0.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.