Re: check_xi_ncpa INTERNAL SERVER ERROR
Posted: Thu Nov 15, 2018 2:51 pm
Can you post your ncpa_listener.log from the client? thanks
Support for Nagios products and services
https://support.nagios.com/forum/
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)Code: Select all
Get-WmiObject Win32_Process -Filter "name = 'java.exe'" | Select-Object CommandLineStill no answer..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)?
I'm wondering if there are some special characters in one of the java command arguments that is causing the issue.Code: Select all
Get-WmiObject Win32_Process -Filter "name = 'java.exe'" | Select-Object CommandLine
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...
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 startAre you sure we need a ticket? It is standart installaation Windows 2008R2 server with russian language.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/
I dont know how to use powershell.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.