Page 1 of 1
exclude kernel processes from check_procs?
Posted: Tue Oct 01, 2013 6:58 pm
by alex_gottschalk
Is it possible to exclude kernel processes (threads?) from the count made by check_procs plugin? Userland process count is a useful metric, but combined user+kernel is much less so. Also the number of kernel processes scales with the core count of the host, so it's currently very difficult to set a sane default.
For example:
Code: Select all
alex@host:~
:-) $ ps aux | wc -l
284
alex@host:~
:-) $ ps aux | grep -v ]$ | wc -l
54
Re: exclude kernel processes from check_procs?
Posted: Wed Oct 02, 2013 12:06 am
by tmcdonald
https://www.nagios-plugins.org/doc/man/check_procs.html
Throw in the -k (--no-kthreads == no kernel threads) option and that should work.
Re: exclude kernel processes from check_procs?
Posted: Mon Nov 04, 2013 2:16 pm
by alex_gottschalk
That flag doesn't appear to be in the version of check_procs distributed with Ubuntu 12.04 or CentOS 6.4.
Re: exclude kernel processes from check_procs?
Posted: Mon Nov 04, 2013 3:02 pm
by abrist
You are correct. You may need to build the newest plugins from source. My suggestions is to not install all the plugins (once compiled), but to copy the one you need to a slightly different name in the libexec folder (as some of the new plugins may have issues with your currently configured checks).
https://www.nagios-plugins.org/