-
Notifications
You must be signed in to change notification settings - Fork 285
check_procs: support of light weight processes (threads) #1601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
check_procs: support of light weight processes (threads) #1601
Conversation
fd01163 to
46089d3
Compare
Using snprintf which honors the buffers size and guarantees null temination. (Closes: #1601)
…ination. (Closes: #1601) As strcpy may overflow the resulting buffer: flo@p5:~$ /tmp/f/usr/lib/nagios/plugins/check_pgsql -d "$(seq 1 10000)" *** buffer overflow detected ***: terminated Aborted I would propose to change the code rather like this, using snprintf which honors the buffers size and guarantees null termination.
…ination. (Closes: monitoring-plugins#1601) As strcpy may overflow the resulting buffer: flo@p5:~$ /tmp/f/usr/lib/nagios/plugins/check_pgsql -d "$(seq 1 10000)" *** buffer overflow detected ***: terminated Aborted I would propose to change the code rather like this, using snprintf which honors the buffers size and guarantees null termination.
|
@waja why is it closed? I would like to get any feedback. |
46089d3 to
60d8131
Compare
|
@waja i updated my PR to the current version to resolve all conflicts |
|
@bkuebler Thanks for caring about the issue. You might have seen that the CI tests failed. I didn't looked into the PR itself, but if you didn't yet rebase your PR on recent master, I would recommend to do so. |
|
Yes i am working on it and will fix it |
60d8131 to
07a6e03
Compare
07a6e03 to
38df3d0
Compare
|
JFTR I try to complete all open issues within the next 3 weeks.
|
Take your time! |
To use check_procs and it's mechanism to check threads on systems instead of processes. With this feature you can use "-n" flag to switch to threads overall instead of processes.
If you would like to use threads (lwp) in ps so calls NLWP (number of light weight processes) as metric now you can use "-m NLWP". For example if you use this you can check if the given process or any of the checked processes are reach the thread threshold defined with -c or -w