NCPA API: OSError: [Errno 13] Permission denied
Posted: Thu Mar 20, 2014 11:58 pm
Hi
I install http://assets.nagios.com/downloads/ncpa ... .amd64.deb in my Ubuntu 12.04.2 LTS bit.
and use the default config file except modifing token to 123 .
When I visit https://192.168.56.2:5693/api/?token=123
It redirects me to https://192.168.56.2:5693/error/Referen ... ot%20exist.
The web shows me :
{
"error": "Referencing node that does not exist."
}
The listener log shows:
2014-03-21 12:55:57,282 2160 ERROR [Errno 13] Permission denied
Traceback (most recent call last):
File "/build/ncpa/agent/listener/server.py", line 226, in api
File "/build/ncpa/agent/listener/psapi.py", line 211, in getter
File "/build/ncpa/agent/listener/psapi.py", line 30, in accessor
File "/build/ncpa/agent/listener/psapi.py", line 42, in run
File "/build/ncpa/agent/listener/psapi.py", line 35, in walk
File "/build/ncpa/agent/listener/psapi.py", line 88, in run
File "/build/ncpa/agent/listener/psextensions.py", line 36, in get_services
File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
OSError: [Errno 13] Permission denied
2014-03-21 12:55:57,290 2160 INFO 192.168.56.1 - - [21/Mar/2014 12:55:57] "GET /api/?token=123 HTTP/1.1" 302 -
2014-03-21 12:55:57,330 2160 INFO 192.168.56.1 - - [21/Mar/2014 12:55:57] "GET /error/Referencing%20node%20that%20does%20not%20exist. HTTP/1.1" 200 -
2014-03-21 12:55:57,444 2160 INFO 192.168.56.1 - - [21/Mar/2014 12:55:57] "GET /favicon.ico HTTP/1.1" 404 -
Does anyone know what does it mean?
Thank you
I install http://assets.nagios.com/downloads/ncpa ... .amd64.deb in my Ubuntu 12.04.2 LTS bit.
and use the default config file except modifing token to 123 .
When I visit https://192.168.56.2:5693/api/?token=123
It redirects me to https://192.168.56.2:5693/error/Referen ... ot%20exist.
The web shows me :
{
"error": "Referencing node that does not exist."
}
The listener log shows:
2014-03-21 12:55:57,282 2160 ERROR [Errno 13] Permission denied
Traceback (most recent call last):
File "/build/ncpa/agent/listener/server.py", line 226, in api
File "/build/ncpa/agent/listener/psapi.py", line 211, in getter
File "/build/ncpa/agent/listener/psapi.py", line 30, in accessor
File "/build/ncpa/agent/listener/psapi.py", line 42, in run
File "/build/ncpa/agent/listener/psapi.py", line 35, in walk
File "/build/ncpa/agent/listener/psapi.py", line 88, in run
File "/build/ncpa/agent/listener/psextensions.py", line 36, in get_services
File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
OSError: [Errno 13] Permission denied
2014-03-21 12:55:57,290 2160 INFO 192.168.56.1 - - [21/Mar/2014 12:55:57] "GET /api/?token=123 HTTP/1.1" 302 -
2014-03-21 12:55:57,330 2160 INFO 192.168.56.1 - - [21/Mar/2014 12:55:57] "GET /error/Referencing%20node%20that%20does%20not%20exist. HTTP/1.1" 200 -
2014-03-21 12:55:57,444 2160 INFO 192.168.56.1 - - [21/Mar/2014 12:55:57] "GET /favicon.ico HTTP/1.1" 404 -
Does anyone know what does it mean?
Thank you