Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Open FDs (File Descriptors)
1
2011-07-21
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
- Nagios Fusion
GPL
108181
File | Description |
---|---|
check_open_fds | check_open_fds |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Work only in Linux
Check total open file descriptors and compare with percent of maximum allowance by kernel
There are default values. So script do not need any args
but you can customize:
-w - warning level in number of FDs
-W - warning level in % to kernel limit (default = 75%)
-c - critical level in number of FDs
-C - critical level in % to kernel limit (default = 90%)
wW < cC
Very simple bash script
Check total open file descriptors and compare with percent of
maximum allowance by kernel
There is default values. So script do not need any args
but you can customize:
-w - warning level in number of FDs
-W - warning level in % to kernel limit (default = 75%)
-c - critical level in number of FDs
-C - critical level in % to kernel limit (default = 90%)
wW < cC
Script uses logic from this page:
http://www.netadmintools.com/art295.html
Output of cat /proc/sys/fs/file-nr on differen kernels
3391 969 52427 # For kernels <= 2.4.X
2323 0 141241 # For kernels >= 2.6.X
| | |
| | maximum open file descriptors (LIMIT)
| total free allocated file descriptors
total allocated file descriptors
(the number of file descriptors allocated since boot)
The number of open file descriptors is column 1 - column 2
In new kernel column 1 - is what we need.
use 1 - 2 for backcompatibility.
If problems and too much opened files you can increase allowance
echo "104854" > /proc/sys/fs/file-max
Check total open file descriptors and compare with percent of
maximum allowance by kernel
There is default values. So script do not need any args
but you can customize:
-w - warning level in number of FDs
-W - warning level in % to kernel limit (default = 75%)
-c - critical level in number of FDs
-C - critical level in % to kernel limit (default = 90%)
wW < cC
Script uses logic from this page:
http://www.netadmintools.com/art295.html
Output of cat /proc/sys/fs/file-nr on differen kernels
3391 969 52427 # For kernels <= 2.4.X
2323 0 141241 # For kernels >= 2.6.X
| | |
| | maximum open file descriptors (LIMIT)
| total free allocated file descriptors
total allocated file descriptors
(the number of file descriptors allocated since boot)
The number of open file descriptors is column 1 - column 2
In new kernel column 1 - is what we need.
use 1 - 2 for backcompatibility.
If problems and too much opened files you can increase allowance
echo "104854" > /proc/sys/fs/file-max
Reviews (0)
Be the first to review this listing!