Page 1 of 1

Ncpa agent failing to start on windows server

Posted: Thu Jul 25, 2019 3:07 pm
by Keystone
Hello,

We have a host that has NCPA agent version 2.1.6 which was running fine fewdays back, we added 20 + new services to monitor running processes, suddenly i got UNKNOWN: Execution exceeded timeout threshold of 60s error.

I treied restarting the agent but its stuck in starting, we tried terminating it from task manager and start it again but its still wont

Below are the logs we have

Ncpa listener log

[24996] 2019/07/25 12:43:58.285 starting logging at level ERROR
[24996] 2019/07/25 12:43:58.348 Python exception encountered:
[24996] 2019/07/25 12:43:58.348 Internal Message: cannot import service module
[24996] 2019/07/25 12:43:58.348 Type => <type 'exceptions.AttributeError'>
[24996] 2019/07/25 12:43:58.348 Value => 'module' object has no attribute 'openssl_md_meth_names'
[24996] 2019/07/25 12:43:58.348 Traceback (most recent call last):

[24996] 2019/07/25 12:43:58.348 File "C:\ncpa\agent\ncpa_windows.py", line 13, in <module>

[24996] 2019/07/25 12:43:58.348 File "C:\Python27\lib\site-packages\gevent\pywsgi.py", line 338, in <module>

[24996] 2019/07/25 12:43:58.348 File "C:\Python27\lib\mimetools.py", line 6, in <module>

[24996] 2019/07/25 12:43:58.348 File "C:\Python27\lib\tempfile.py", line 35, in <module>

[24996] 2019/07/25 12:43:58.348 File "C:\Python27\lib\random.py", line 49, in <module>

[24996] 2019/07/25 12:43:58.348 File "C:\Python27\lib\hashlib.py", line 138, in <module>

[24996] 2019/07/25 12:43:58.348 AttributeError: 'module' object has no attribute 'openssl_md_meth_names'

this next piece is from ncpa_passive.txt


ImportError: No module named None
2019-07-22 18:08:41,098:ERROR:__init__:Could not import module passive.None, skipping. No module named None
2019-07-22 18:08:41,098:ERROR:__init__:No module named None
Traceback (most recent call last):
File "C:\ncpa\agent\ncpa_windows.py", line 184, in run_all_handlers
ImportError: No module named None
2019-07-22 18:13:41,107:ERROR:__init__:Could not import module passive.None, skipping. No module named None
2019-07-22 18:13:41,107:ERROR:__init__:No module named None
Traceback (most recent call last):
File "C:\ncpa\agent\ncpa_windows.py", line 184, in run_all_handlers
ImportError: No module named None

Re: Ncpa agent failing to start on windows server

Posted: Thu Jul 25, 2019 5:01 pm
by mbellerue
Could you PM me your configuration files? I'd like to see ncpa.cfg, and your passive check configuration files in the ncpa.cfg.d directory.

Re: Ncpa agent failing to start on windows server

Posted: Fri Jul 26, 2019 5:49 pm
by Keystone
i sent a PM, its still in my inbox, let me know if you have received it.

Re: Ncpa agent failing to start on windows server

Posted: Mon Jul 29, 2019 9:13 am
by mbellerue
I've got it, taking a look now.

Re: Ncpa agent failing to start on windows server

Posted: Mon Jul 29, 2019 11:05 am
by Keystone
thanks.

Re: Ncpa agent failing to start on windows server

Posted: Mon Jul 29, 2019 2:23 pm
by tgriep
I suggest installing the latest version of the NCPA agent on the server.
The errors suggest that there are some corrupt or missing files and they are keeping the agent from starting up.

Plus, there were a couple of bugs that could be causing the issue.

https://www.nagios.org/ncpa/#downloads

Re: Ncpa agent failing to start on windows server

Posted: Tue Jul 30, 2019 3:54 pm
by Keystone
Thank you,

We reinstalled the NCPAplugin and its working now.

Re: Ncpa agent failing to start on windows server

Posted: Tue Jul 30, 2019 4:10 pm
by mbellerue
Glad to hear it's working! Closing thread.