librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
116 stars 187 forks source link

Adding linux_config_files snmp script to monitor RPM configuration file updates #453

Closed bnerickson closed 1 year ago

bnerickson commented 1 year ago

This is a simple script to execute rpmconf --test --all to get a count of configuration files that are out-of-sync with the latest configuration file from the package distributor.

Application support PR: https://github.com/librenms/librenms/pull/14776

bnerickson commented 1 year ago

Latest commit updates the command execution error handling logic after confirming the behavior of the rpmconf command. Rpmconf exits with code "5" if there are config files out of sync.