Open iamfasal opened 3 months ago
Hello @iamfasal,
This is an issue with the PSUtil library where if it can't find the right file systems, it throws an error. This error was not being handled, but now should be handled in NCPA 3.1.0.
Hello @ne-bbahn May I know when this v3.1.0 will be released? Does it resolve this issue completely and would be able monitor the resource usages correctly (like CPU, Memory, Swap, Disk, etc.)?
Thanks for the heads up 🙂
Does it resolve this issue completely and would be able monitor the resource usages correctly (like CPU, Memory, Swap, Disk, etc.)?
This will resolve the crashing, but if those filesystems don't exist then PSUtil won't be able to find them and NCPA won't be able to get the information.
@ne-bbahn Does this mean NCPA agent won't work in OpenVZ/Virtuozzo containers? If not, is there any work around to monitor Simfs file systems correctly in OpenVZ/Virtuozzo containers?
@ne-bbahn Does this mean NCPA agent won't work in OpenVZ/Virtuozzo containers? If not, is there any work around to monitor Simfs file systems correctly in OpenVZ/Virtuozzo containers?
I'm not sure exactly what will work in OpenVZ/Virtuozzo containers as I haven't really dug that deep into the PSUtil library and am not familiar with OpenVZ/Virtuozzo containers. Have you checked whether /proc/diskstats
and /sys/block
exist and if it's just a permissions issue?
@ne-bbahn Those files doesn't even exists in the OpenVZ/Virtuozzo vps servers. Please review the snippets in my initial message which has outputs.
Any solutions for such file systems?
The NCPA agent is throwing the error "UNKNOWN: An error occurred connecting to API. (HTTP error: '500 INTERNAL SERVER ERROR') " error on Nagios system. Further checking the ncpa_listener.log, it is throwing the following errors:
The server has CentOS 7.9 OS installed.
The VPS server is built using the OpenVZ or Virtuozzo platform, which doesn't have /proc/diskstats files so any patch version or solution available to mitigate this case.
Any help would be appreciable.
Thanks,