Page 1 of 1

AIX, the Wizard, and NCPA listener

Posted: Thu Dec 14, 2023 10:43 am
by kbauma01
Hey all,

I am trying to pull in some AIX servers using NCPA via the wizard, and 18 of the 130 I have done are having issues. They don't see the mount points, the processes, etc. They are all on the same OS level, have the same patches, etc.

This is the error.

2023-12-14 09:45:14,506 13435334 INFO ::ffff:10.15.14.86 - - [2023-12-14 09:45:14] "GET /api/interf
ace?token=XXXX HTTP/1.0" 500 2381 0.051287
2023-12-14 09:45:14,531 13435334 DEBUG Initializing WebSocket
NFO ::ffff:10.15.14.86 - - [2023-12-14 09:45:14] "GET /api/interf
ace?token=unix_rules HTTP/1.0" 500 2381 0.051287
2023-12-14 09:45:14,531 13435334 DEBUG Initializing WebSocket
2023-12-14 09:45:14,531 13435334 DEBUG Validating WebSocket request
2023-12-14 09:45:14,534 13435334 ERROR Exception on /api/disk [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site2023-12-14 09:45:14,531 13435334 DEBUG Validating WebSocket
request
2023-12-14 09:45:14,534 13435334 ERROR Exception on /api/disk [GET]
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_reques
t
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exceptio
n
File "/opt/freeware/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_reques
t
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 185, in token_auth_decoration
File "/tmp/test/ncpa/agent/listener/server.py", line 931, in api
File "/tmp/test/ncpa/agent/listener/psapi.py", line 279, in getter
File "/tmp/test/ncpa/agent/listener/psapi.py", line 260, in refresh
File "/tmp/test/ncpa/agent/listener/psapi.py", line 230, in get_root_node
File "/tmp/test/ncpa/agent/listener/psapi.py", line 185, in get_disk_node
File "/opt/freeware/lib/python2.7/site-packages/psutil/__init__.py", line 2133, in disk_partition
s
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitions
OSError: [Errno 13] Permission denied

I've compared a server that has no issues to the others and I don't see what is wrong. Any help would be appreciated.

Re: AIX, the Wizard, and NCPA listener

Posted: Thu Dec 14, 2023 11:59 am
by bbahn
This seems to be an issue with the psutils python library. Do you have any special permissions set up on any of your servers?

What version of NCPA are you using? It's possible that the version you're using has an older version of the psutil library and is missing some fixes for things like this. NCPA 3.0.1 just released with the latest version of the psutil library and may fix your problems.

Re: AIX, the Wizard, and NCPA listener

Posted: Thu Dec 14, 2023 1:12 pm
by kbauma01
The configs and versions of python are the same on the servers. And the latests, and from what I understand is the last version of ncpa for AIX, is ncpa-2.2.1.aix7.1.ppc.

I tried uninstalling ncpa and reinstalling it but that did not fix the issue. This is very weird. Could it be because XI is 2024R1?