Alternative "distro" script for Linux

Tags: #<Tag:0x00007f5221c4bd80>
# cat > /usr/local/bin/distro
#!/bin/sh
lsb_release -ds
# chmod +x /usr/local/bin/distro
# distro
Ubuntu 18.04.3 LTS
# cat >> /etc/snmp/snmpd.conf
#Distro Detection
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/local/bin/distro
# systemctl restart snmpd

After this I did a “rediscover” and librenms now knows that this server is Ubuntu.

Hi and welcome to community,

if you found something to fix/enhance in ‘distro’ it would be appreciated if you could write a Pull Request to https://github.com/librenms/librenms-agent