sfuerte / zbx-nginx Goto Github PK
View Code? Open in Web Editor NEWZabbix Template for Nginx
License: GNU General Public License v3.0
Zabbix Template for Nginx
License: GNU General Public License v3.0
Hi,
Is there any reason to use such regex to parse numbers in nginx status response?
Line 64 in 3ddc15c
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.
error: Invalid tag "/zabbix_export/templates/template(1)/items/item(1)": unexpected tag "preprocessing".
same error with zabbix server 3.2/3.4
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.