Skip to main content
Planned

[os::linux::local::plugin] Calculated value of the max open files and percentage thresholds in "open-files" mode

Related products:Infra Monitoring - Connectors
  • November 21, 2023
  • 7 replies
  • 78 views

Aleksey
Forum|alt.badge.img+6

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

 

7 replies

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • December 1, 2023
NewDiscussion ongoing

omercier
Centreonian
Forum|alt.badge.img+15
  • Centreonian
  • January 26, 2024

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.

 


Aleksey
Forum|alt.badge.img+6
  • Author
  • Steward **
  • January 30, 2024

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.


omercier
Centreonian
Forum|alt.badge.img+15
  • Centreonian
  • January 30, 2024

Ok, no problem.


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • February 12, 2024
Discussion ongoingNeeds Votes

Forum|alt.badge.img+5
  • Centreonian
  • June 12, 2024
Needs VotesIn Backlog

Forum|alt.badge.img+5
  • Centreonian
  • October 15, 2025
In BacklogPlanned