Skip to main content

Hello.

Now the "open-files" mode assumes that we must set the threshold values statically.
Please make a small improvement to this mode.

We can get the system open file threshold with the command cat /proc/sys/fs/nr_open
This value can be set to default as the maximum if not explicitly set.
This will add convenient percentage WARN/CRIT thresholds.

PS: https://github.com/centreon/centreon-plugins/issues/3969

 

NewDiscussion ongoing

Hi @Aleksey,

According to the discussion on github and what I can find in the doc, the /proc/sys/fs/nr_open file gives the maximum number of open files per process.

So if you want to take advantage of this information, I suggest you to rephrase your idea to apply it to processes monitoring, not to open-files. I find preferable to add a metric to the process monitoring mode rather than adding the notion of processes in the open-files monitoring mode.

 


Perhaps you are right and it is better to add a check for open files for each process in the "process" mode. But I don't see any option to rename the idea ("open-files" -> "process") on this site.


Ok, no problem.


Discussion ongoingNeeds Votes

Needs VotesIn Backlog