Chronyd
A shell script that gets the stats from chronyd and exports them with SNMP Extend.
SNMP Extend
-
Download the shell script onto the desired host
wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/chrony -O /etc/snmp/chrony -
Make the script executable.
chmod +x /etc/snmp/chrony -
Edit the snmpd.conf file to include the extend by adding the following line to the end of the config file:
extend chronyd /etc/snmp/chronyNote
Some distributions need sudo-permissions for the script to work with SNMP Extend. See the instructions on the section SUDO for more information.
-
Restart snmpd service on the host
LibreNMS discovers the application automatically. Its statistics then appear on the Apps page of the host. Note: the applications module must be enabled on the host or globally.