Page 2 of 3

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Thu Nov 15, 2018 2:51 pm
by scottwilkerson
Can you post your ncpa_listener.log from the client? thanks

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Fri Nov 16, 2018 4:03 am
by AlexSavVl
scottwilkerson wrote:Can you post your ncpa_listener.log from the client? thanks

Code: Select all

2018-11-16 12:16:49,418:ERROR:app:Exception on /api/processes/ [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 169, in token_auth_decoration
  File "C:\ncpa\agent\listener\server.py", line 927, in api
  File "C:\ncpa\agent\listener\processes.py", line 420, in run_check
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 360: ordinal not in range(128)

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Fri Nov 16, 2018 2:35 pm
by ssax
Please create a bug report for this here:

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

This is a different issue than the one you previously linked to, please include the ncpa_listener.log output you posted in your last post.

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Wed Nov 21, 2018 1:19 am
by AlexSavVl

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Wed Nov 21, 2018 1:01 pm
by ssax
The developers will see it, you'll just need to wait until they respond.

What is the output of this command (run from powershell as admin on the remote machine)?

Code: Select all

Get-WmiObject Win32_Process -Filter "name = 'java.exe'" | Select-Object CommandLine
I'm wondering if there are some special characters in one of the java command arguments that is causing the issue.

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Fri Nov 23, 2018 2:30 am
by AlexSavVl
ssax wrote:The developers will see it, you'll just need to wait until they respond.

What is the output of this command (run from powershell as admin on the remote machine)?

Code: Select all

Get-WmiObject Win32_Process -Filter "name = 'java.exe'" | Select-Object CommandLine
I'm wondering if there are some special characters in one of the java command arguments that is causing the issue.
Still no answer..

Code: Select all

CommandLine
-----------
"C:\Program Files\Java\jdk1.8.0_45\bin\java.exe"   -Djava.util.logging.config.file="C:\Tomcat\conf\logging.propertie...
Full output with '| Out-String -Width 1024'

Code: Select all

"C:\Program Files\Java\jdk1.8.0_45\bin\java.exe"   -Djava.util.logging.config.file="C:\Tomcat\conf\logging.properties"
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager   -Djava.endorsed.dirs="C:\Tomcat\endorsed" -classpat
h "C:\Tomcat\bin\bootstrap.jar;C:\Tomcat\bin\tomcat-juli.jar" -Dcatalina.base="C:\Tomcat" -Dcatalina.home="C:\Tomcat" -
Djava.io.tmpdir="C:\Tomcat\temp" org.apache.catalina.startup.Bootstrap  start
The problem persists on all servers with all process. Services works.

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Mon Nov 26, 2018 3:44 pm
by ssax
Please create a ticket here so that we can get a remote session setup to debug this further, include a link back to this forum post in the ticket:

https://support.nagios.com/tickets/

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Fri Nov 30, 2018 4:17 am
by AlexSavVl
ssax wrote:Please create a ticket here so that we can get a remote session setup to debug this further, include a link back to this forum post in the ticket:

https://support.nagios.com/tickets/
Are you sure we need a ticket? It is standart installaation Windows 2008R2 server with russian language.
We have the problem on all servers.

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Fri Nov 30, 2018 12:49 pm
by lmiltchev
Our developers are looking into this issue as we speak.

Until the problem is fixed, you could create a powershell script on the Windows server that would use WMI commands, and provide you with the correct (expected) output, then call the script via NCPA.

Check issue #509 on github for updates.

Re: check_xi_ncpa INTERNAL SERVER ERROR

Posted: Wed Dec 05, 2018 1:30 am
by AlexSavVl
lmiltchev wrote:Our developers are looking into this issue as we speak.

Until the problem is fixed, you could create a powershell script on the Windows server that would use WMI commands, and provide you with the correct (expected) output, then call the script via NCPA.

Check issue #509 on github for updates.
I dont know how to use powershell.
Bug report was created 16 days ago. We have problem with basic functionalyty in production installation.
Can I find out the approximate time to solve the problem?
Thank you