Nagios UNKNOWN : CHECK_MEMORY_WINDOWS

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Nagios UNKNOWN : CHECK_MEMORY_WINDOWS

Postby AVMDevops » Tue Jan 12, 2021 10:53 am

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 !
AVMDevops
 
Posts: 1
Joined: Fri Jan 08, 2021 8:18 am

Re: Nagios UNKNOWN : CHECK_MEMORY_WINDOWS

Postby gormank » Tue Jan 12, 2021 4:20 pm

gormank
 
Posts: 812
Joined: Tue Dec 02, 2014 12:00 pm

Re: Nagios UNKNOWN : CHECK_MEMORY_WINDOWS

Postby mcapra » Mon Jan 18, 2021 10:16 pm

What version of NCPA are you running? You may need to use an older version like 1.8.1. Per the README:

Older systems that have been supported by NCPA in the past:

Ubuntu 12.04 using NCPA 2.1.4
Debian 7 using NCPA 2.1.4
OpenSUSE 11, 12, 13 using NCPA 2.1.4
AIX 6 with NCPA 2.1.1
CentOS / RHEL 5 using NCPA 2.0.6
Oracle 5 using NCPA 2.0.6
Windows XP/Vista using NCPA 1.8.1
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3617
Joined: Thu May 05, 2016 3:54 pm


Return to Community Support

Who is online

Users browsing this forum: No registered users and 37 guests