icinga2-diagnostics icon indicating copy to clipboard operation
icinga2-diagnostics copied to clipboard

Check for open file descriptors

Open widhalmt opened this issue 6 years ago • 4 comments

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

widhalmt avatar Aug 08 '19 07:08 widhalmt

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.

dnsmichi avatar Aug 08 '19 07:08 dnsmichi

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.

widhalmt avatar Aug 08 '19 07:08 widhalmt

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.

dnsmichi avatar Aug 08 '19 08:08 dnsmichi

ref/NC/628417

widhalmt avatar Aug 08 '19 08:08 widhalmt