Monitor for file on systems?

So I use the SNMP Extension to track # (count) of updates the package manager reports on each of my Linux systems I care about, and that’s pretty good for now.

I was hoping, though, that I could also track for the presence (or lack thereof) of a file on each system, “/var/run/reboot-required”. For if that file is present, that system should be rebooted (probably kernel update, or other important stuff), and if it is absent, then it does not need rebooting.

I tried to find a method in the documentation for libreNMS and other Googly-fu, but no luck.

Does anyone know of a way to do this?

Write your own script to do the checking then add it to snmpd.conf like the other applications: Applications - LibreNMS Docs

1 Like

Will that be “graphable” within libreNMS? Or how would that be represented in the libreNMS ecosystem? (from a metrics perspective). And I take it this would show up in the “Apps” section of the webGUI? Sorry haven’t done such a method myself just yet but I’m pretty sure I see what you’re proposing :slight_smile:

You would need to then also put some front end code together to get that to work.

The alternative would be to do the extend script then use the Custom OID feature so it then graphs within the WebUI but you have to add those per device rather than globally per OS.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.