unbit / uwsgi

uWSGI application server container
http://projects.unbit.it/uwsgi
Other
3.45k stars 691 forks source link

Error reading socket with nagios plugin #993

Closed roflmao closed 8 years ago

roflmao commented 9 years ago
# uwsgi --socket /tmp/graphite-web.sock --plugin nagios --nagios
UWSGI CRITICAL: error reading response

Config:

# cat /etc/uwsgi-emperor/vassals/graphite.ini 
[uwsgi]
plugins-dir = /usr/lib/uwsgi
plugins = python
uid = _graphite
gid = _graphite
wsgi-file = /usr/share/graphite-web/graphite.wsgi
socket          = /tmp/graphite-web.sock
plugins = carbon
enable-metrics = true
carbon-use-metrics = true
carbon-id = %n
carbon = 127.0.0.1:2003

Does the nagios plugin support socket through unix sockets or only TCP?

roflmao commented 9 years ago

from emperor.log:

-- unavailable modifier requested: 100 --
xrmx commented 9 years ago

100 is the modifier used by the nagios plugin, so maybe adding 100:nagios to the plugins do the trick?

xrmx commented 8 years ago

3 months without followup, closing.

N-Mi commented 8 years ago

Reopening this issue, as I have the same message as roflmao.

Here is my config (I tried to add 100:nagios as suggested):

[uwsgi]

chdir = /opt/foo
gid = www-data
master = True
plugins = python, 100:nagios
processes = 1
socket = 127.0.0.1:9005
stats = /tmp/foo.socket
uid = www-data
wsgi-file = ws_foo.wsgi
daemonize = /var/log/nginx/foo.log
logto = /var/log/nginx/foo.log
#log-maxsize = 10000000
enable-threads = true
die-on-term = true
chmod-socket = 666 

When I launch uwsgi --socket 127.0.0.1:9005 --plugin nagios --nagios, I still get this message :

Fri Sep  2 10:02:14 2016 - -- unavailable modifier requested: 100 --