How to monitor open files of linux system

Hi

we just wish to monitor open files of linux system in check_mk.
what are the steps i need to follow ?
can somebody guide ?

Hi,

in the linux agent file downloads you can find the file mk_filehandle.
This monitors the file /proc/sys/fs/file-nr

The three values in file-nr denote the number of allocated file handles, the number of allocated but unused file handles, and the maximum number of file handles.

If you copy that file to the monitored host in the folder /usr/lib/check_mk_agent/plugins and make it executable, it should extend the agent with that data.

2 Likes

Exactly, and the service will look like this. Unfortunately the big number is not formatted very nicely.

image

1 Like

There is an MKP for the bakery: Checkmk Exchange

2 Likes

Hi,
Unfortunately this is not a solution if you want to monitor the file handles per user. In that case, you will probably have to write your own script and run it as a local check.
Kind regards,

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.