how to monitor the total number of processes in windows

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

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

Postby scottwilkerson » Wed Feb 28, 2018 2:35 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Postby h4doukeeN » Fri Mar 02, 2018 8:45 am

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
h4doukeeN
 
Posts: 63
Joined: Wed Aug 09, 2017 9:32 am

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

Postby npolovenko » Fri Mar 02, 2018 4:40 pm

@ 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.
User avatar
npolovenko
Support Tech
 
Posts: 1882
Joined: Mon May 15, 2017 5:00 pm

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

Postby h4doukeeN » Mon Mar 05, 2018 3:19 pm

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

Postby h4doukeeN » Wed Mar 07, 2018 2:57 pm

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
h4doukeeN
 
Posts: 63
Joined: Wed Aug 09, 2017 9:32 am

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

Postby cdienger » Wed Mar 07, 2018 5:17 pm

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.
User avatar
cdienger
Support Tech
 
Posts: 1665
Joined: Tue Feb 07, 2017 11:26 am


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

Postby scottwilkerson » Thu Apr 12, 2018 8:25 am

Thanks for adding the link to the BR
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11144
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Previous

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 16 guests