check_xi_ncpa INTERNAL SERVER ERROR

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post by scottwilkerson »

Can you post your ncpa_listener.log from the client? thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
AlexSavVl
Posts: 38
Joined: Wed Oct 24, 2018 5:50 am

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post 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)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post 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.
AlexSavVl
Posts: 38
Joined: Wed Oct 24, 2018 5:50 am

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post by AlexSavVl »

ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post 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.
AlexSavVl
Posts: 38
Joined: Wed Oct 24, 2018 5:50 am

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post 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/
AlexSavVl
Posts: 38
Joined: Wed Oct 24, 2018 5:50 am

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
AlexSavVl
Posts: 38
Joined: Wed Oct 24, 2018 5:50 am

Re: check_xi_ncpa INTERNAL SERVER ERROR

Post 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
Locked