tanrakukairo / zabbix_template_nginx

12 stars 7 forks source link

use web.page.get instead of userparam and curl? #2

Open v-zhuravlev opened 6 years ago

v-zhuravlev commented 6 years ago

HI! Maybe it would be easier to use web.page.get[localhost,_status,8080] instead of curl? See syntax here https://www.zabbix.com/documentation/3.4/manual/config/items/itemtypes/zabbix_agent And then parse using preprocessing and regex on server side? what do you think?

In that case no userparameters are needed.

v-zhuravlev commented 6 years ago

Sample response from such key:

HTTP/1.1 200 OK

Server: nginx/1.13.12

Date: Fri, 18 May 2018 09:48:45 GMT

Content-Type: text/plain

Content-Length: 100

Connection: close

Active connections: 1 
server accepts handled requests
 17 17 17 
Reading: 0 Writing: 1 Waiting: 0