Nagios UNKNOWN : CHECK_MEMORY_WINDOWS?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
RealGrynomics
Posts: 1
Joined: Fri Feb 19, 2021 6:40 am

Nagios UNKNOWN : CHECK_MEMORY_WINDOWS?

Post by RealGrynomics »

Hello everyone,

I have this alarme on my Nagios server :

CHECK_MEMORY_WINDOWS status : UNKNOWN: An error occured connecting to API. (HTTP error: '500 INTERNAL SERVER ERROR')

on my remote machine (windows server 2008 r2), in the log file of ncpalistener.log, i have this :

2020-12-30 06:54:13,219:ERROR:app:Exception on /api/memory/virtual/ [GET]
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\flask\app.py", line 1817, in wsgi_app
File "C:\Python27\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
File "C:\Python27\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
File "C:\Python27\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
File "C:\Python27\lib\site-packages\flask\app.py", line 1461, in dispatch_request
File "C:\ncpa\agent\listener\server.py", line 185, in token_auth_decoration
File "C:\ncpa\agent\listener\server.py", line 946, in api
File "C:\ncpa\agent\listener\nodes.py", line 114, in run_check
File "C:\ncpa\agent\listener\nodes.py", line 334, in run_check
UnboundLocalError: local variable 'perfdata' referenced before assignment



all others services work well :

CHECK_DISK_WINDOWS status OK

CHECK_PROCESS_WINDOWS status OK

GENERIC_PING | GENERIC_PING status OK



Can someone help me ?

Thanks !
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios UNKNOWN : CHECK_MEMORY_WINDOWS?

Post by benjaminsmith »

Hi @RealGrynomics,

It looks like you have this same issue:

https://github.com/NagiosEnterprises/ncpa/issues/733

Try making the proposed correction or upgrade to 2.3.1. Then check the logs again and post the output if you're still having an issue.

Benjamin
Nagios Support Team
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked