Моя конфигурация collectd выглядит так:
LoadPlugin nginx
...
<Plugin "nginx">
URL "http://localhost:8080/nginx_status?auto"
</Plugin>
Конфигурация Nginx выглядит так:
server {
listen 8080;
index index.html index.htm;
server_name localhost;
root /var/www/default/;
location / {
try_files $uri $uri/ /index.html;
}
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}
Когда я выполняю
$ curl http://localhost:8080/nginx_status?auto
он выводит:
Active connections: 1
server accepts handled requests
56 56 322
Reading: 0 Writing: 1 Waiting: 0
Но при открытом графите график nginx недоступен. Collectd и Nginx много раз перезагружались. Какие-либо предложения?