Open fabiuseur opened 6 months ago
Update: I saw sometimes on RHEL9 the same issue as on RHEL8.
2023-12-19 14:18:12,779 listener INFO before_request() - request.url: https://<linux_client>:5693/api/disk/logical/|data/?token=<very_secret_token>&warning=85&critical=90&check=1
Traceback (most recent call last):
File "listener/psapi.py", line 90, in make_mountpoint_nodes
2023-12-19 14:18:13,032 root ERROR cannot access local variable 'node_children' where it is not associated with a value
Traceback (most recent call last):
File "listener/psapi.py", line 399, in get_root_node
File "listener/psapi.py", line 343, in get_disk_node
File "listener/psapi.py", line 139, in make_mountpoint_nodes
UnboundLocalError: cannot access local variable 'node_children' where it is not associated with a value
From your example, you were trying to access different API endpoints.
'disk|/logical/|data'
in your 3.0.1 example (should be disk/logical/|data
)
disk/logical/|data
in your 3.0.0 example
First, verify that you have a /disk/logical/|data endpoint. You can verify these in the NCPA UI under API. These endpoints are generated automatically using the disk nodes found with the psutil
library.
I have tried these checks on RHEL8/9 and NCPA 3.0.1 and it's working just fine for me.
If you're certain that there is a |data
partition and NCPA can't detect it, then it may be a bug with the psutil library or our handling of the returned content from that library.
Could you give more information on how your disk is mounted?
Hi,
We have updated the Nagios NCPA agent for Linux to the latest version 3.0.1. Now the disks checks aren't working anymore. If I do a rollback to previous version 3.0.0 is working properly.
on RHEL9 I don't have this issue and the other service checks on the RHEL8 host is working fine, like CPU usage and memory usage.