Nagios Agent(NCPA) permission issue in AIX servers
Posted: Mon Apr 09, 2018 3:04 am
Hi Team,
I have installed NCPA agent in AIX-7.1 servers and while onboarding the OS parameters, we are getting the below error in server side:
Nagios server side error:
==========================
]# /usr/local/nagios/libexec/check_ncpa.py -v -H cass6 -P 5666 -t 'mytoken' -M 'system/agent_version'
Connecting to: https://cass6:5666/api/system/agent_ver ... en&check=1
An error occurred:HTTP Error 500: INTERNAL SERVER ERROR
[root@dc1lp161990 nagios]# /usr/local/nagios/libexec/check_ncpa.py -v -H dc2ap10118 -P 5666 -t 'mytoken' -M 'system/agent_version'
Connecting to: https://dc2ap10118:5666/api/system/agen ... en&check=1
An error occurred:HTTP Error 500: INTERNAL SERVER ERROR
==========================
On checking the client ncpa_listener error log, I got the below error:
==========================
bash-4.2$ pwd
/usr/local/ncpa/var/log
bash-4.2$ tail -f ncpa_listener.log
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 168, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 896, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 269, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 216, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 176, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 1979, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 193, in disk_partitions
OSError: [Errno 13] Permission denied
2018-04-09 17:19:19,833 18874536 INFO 10.34.69.28 - - [2018-04-09 17:19:19] "GET /api/memory/swap/?token=mytoken&warning=50&critical=80&units=Gi&check=1 HTTP/1.1" 500 2362 0.005731
==========================
Could you please advise on this ?
We are having other AIX 7.1 servers in which this agent is working fine. What could be the issue ?
I have installed NCPA agent in AIX-7.1 servers and while onboarding the OS parameters, we are getting the below error in server side:
Nagios server side error:
==========================
]# /usr/local/nagios/libexec/check_ncpa.py -v -H cass6 -P 5666 -t 'mytoken' -M 'system/agent_version'
Connecting to: https://cass6:5666/api/system/agent_ver ... en&check=1
An error occurred:HTTP Error 500: INTERNAL SERVER ERROR
[root@dc1lp161990 nagios]# /usr/local/nagios/libexec/check_ncpa.py -v -H dc2ap10118 -P 5666 -t 'mytoken' -M 'system/agent_version'
Connecting to: https://dc2ap10118:5666/api/system/agen ... en&check=1
An error occurred:HTTP Error 500: INTERNAL SERVER ERROR
==========================
On checking the client ncpa_listener error log, I got the below error:
==========================
bash-4.2$ pwd
/usr/local/ncpa/var/log
bash-4.2$ tail -f ncpa_listener.log
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/tmp/test/ncpa/agent/listener/server.py", line 168, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 896, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 269, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 216, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 176, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 1979, in disk_partitions
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 193, in disk_partitions
OSError: [Errno 13] Permission denied
2018-04-09 17:19:19,833 18874536 INFO 10.34.69.28 - - [2018-04-09 17:19:19] "GET /api/memory/swap/?token=mytoken&warning=50&critical=80&units=Gi&check=1 HTTP/1.1" 500 2362 0.005731
==========================
Could you please advise on this ?
We are having other AIX 7.1 servers in which this agent is working fine. What could be the issue ?