Skip to content
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

Check for open file descriptors #83

Open
widhalmt opened this issue Aug 8, 2019 · 4 comments
Open

Check for open file descriptors #83

widhalmt opened this issue Aug 8, 2019 · 4 comments

Comments

@widhalmt
Copy link
Member

widhalmt commented Aug 8, 2019

Use a check to verify that there are not too many open file descriptors.

Hint:

for p in $(pidof icinga2); do echo -e "$p\r\n" && lsof -p $p && echo -e "\n"; done
@dnsmichi
Copy link

dnsmichi commented Aug 8, 2019

Keep in mind that sockets count into this as well, so with many endpoint connections this is a "normal" expected behaviour. The stats as numbers, compared to the system limits (ulimit) are interesting over time.

@widhalmt
Copy link
Member Author

widhalmt commented Aug 8, 2019

A check over time might not be possible with the current implementation of diagnostics. But I planned for fetching the currently set limits and compare them to the actual use.

Thanks for the hint with the sockets.

@dnsmichi
Copy link

dnsmichi commented Aug 8, 2019

You'll likely have other tasks where you need some data points in say 5 or 10 seconds. This could be added in there as well. Similar to what vmstat does.

@widhalmt
Copy link
Member Author

widhalmt commented Aug 8, 2019

ref/NC/628417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants