how to monitor the total number of processes in windows

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: how to monitor the total number of processes in windows

Post by scottwilkerson »

scottwilkerson wrote:Also when it is in this state, can you run the command from the command line adding the --verbose flag and chech the /usr/local/ncpa/var/log/ncpa_listener.log on the remote machine

Thanks
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
h4doukeeN
Posts: 63
Joined: Wed Aug 09, 2017 9:32 am

Re: how to monitor the total number of processes in windows

Post by h4doukeeN »

scottwilkerson wrote:
scottwilkerson wrote:Also when it is in this state, can you run the command from the command line adding the --verbose flag and chech the /usr/local/ncpa/var/log/ncpa_listener.log on the remote machine

Thanks
after executing the command the following appeared in the log

Code: Select all

File "C:\Users\jomann\Documents\ncpa\agent\listener\processes.py", line 422, in run_check
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 3028: ordinal not in range(128)
2018-03-02 10:42:36,075: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:\Users\jomann\Documents\ncpa\agent\listener\server.py", line 168, in token_auth_decoration
  File "C:\Users\jomann\Documents\ncpa\agent\listener\server.py", line 911, in api
  File "C:\Users\jomann\Documents\ncpa\agent\listener\processes.py", line 422, in run_check
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 3027: ordinal not in range(128)
Versión NCPA 2.1.1

Image

execution by console

Image
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: how to monitor the total number of processes in windows

Post by npolovenko »

@ h4doukeeN, Would you be able to upgrade your NCPA agent to the latest version? Seems like there were quite a few bug fixes in recent releases. Also, please run the following command to find out the check_ncpa.py version:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -V
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
h4doukeeN
Posts: 63
Joined: Wed Aug 09, 2017 9:32 am

Re: how to monitor the total number of processes in windows

Post by h4doukeeN »

npolovenko wrote:@ h4doukeeN, Would you be able to upgrade your NCPA agent to the latest version? Seems like there were quite a few bug fixes in recent releases. Also, please run the following command to find out the check_ncpa.py version:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -V
problem persists

NCPA agent version is updated
Image

plugin is updated from version 1.1.1
Image

a 1.1.3
Image
h4doukeeN
Posts: 63
Joined: Wed Aug 09, 2017 9:32 am

Re: how to monitor the total number of processes in windows

Post by h4doukeeN »

it's weird what happens after a reboot in the servers now I have problems with the server 69 that has only 621 processes and the 68 that has 880 is running without problems ... the 71 has never presented problems, but I can not identify what it is due that the failure of one to another passes being more persistent in the 68

Image

Image
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: how to monitor the total number of processes in windows

Post by cdienger »

Greetings,

I've been able to reproduce this and it appears to have something to do with the handling of processes with characters outside of the standard ascii range. I will be filing a bug with our dev team to have a closer look at this.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: how to monitor the total number of processes in windows

Post by scottwilkerson »

Thanks for adding the link to the BR
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked