monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit-dev] Suggestion: file descriptor count


From: Brian Candler
Subject: [monit-dev] Suggestion: file descriptor count
Date: Fri, 2 May 2008 15:13:11 +0100
User-agent: Mutt/1.5.11

I have a suggestion for a new process resource test: the number of open file
descriptors a process has.

We currently have a knocked-together shell script which does

  ls /proc/<pid>/fd | wc -l

and compares this to a threshold. If we could use monit to do this, it would
give a much cleaner approach.

I don't know if there's a better way (more efficient or more portable) to
collect this data though.

Cheers,

Brian.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]