Does PRTG have any sensors that can monitor open file descriptors (preferably those associated with a specific user) on a Linux system?
Background: Our organization recently experienced downtime when our LDAP server hit an open file descriptor limit which resulted in a kernel panic, breaking authentication to all connected systems. We would love to begin proactively monitoring open file descriptors associated with the LDAP process user so that we can take action when numbers get too high. Does PRTG have any sensors that can do this?
Thanks!
Article Comments
Thanks, Stephan. Is that something we might be able to get some assistance with creating? Would there be any example scripts to look at that could get us started?
Oct, 2016 - Permalink
Hi Becky,
Unfortunately, we can't assist when it comes to custom scripting. With example scripts, do you mean what output is necessary or a basic concept for monitoring the file descriptors (which we can't provide)?
Oct, 2016 - Permalink
Hi, Stephan.
Any relevant example scripts would be helpful. Is the best place to look for such scripts within the PRTG installation directories (the subdirectories beneath C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\ ), or is there a resource somewhere online as well?
Thanks very much!
Oct, 2016 - Permalink
Hi Becky,
Well, all you need is basically a shell script that retrieves the corresponding values and packs them into a PRTG compatible format. Then move the script to /var/prtg/scripts (or scriptsxml, depending on the type). The necessary output format can be found in your PRTG webinterface under:
Setup > PRTG API > Custom Sensors
Let me know if you need any further assistance regarding the matter :)
Oct, 2016 - Permalink
Unfortunately, PRTG doesn't have sensors for that. You may have to write a script yourself and use it in conjunction with our SSH Script sensors :/
Oct, 2016 - Permalink