Observium – Add Linux Distro Name

After using Observium for a while, I realize that all Linux device doesn’t have distro name (such as Debian, CentOS, etc) on them. It means that all Linux device will be displayed as Generic Linux without distinctive information what distro they are using for.

Luckily, Observium has kindly enough to give a script that would detect the distro. In this short tutorial, I will give an example on how to use it on Debian 8 (Jessie) and CentOS 7 distro. Any other distro might need to adapt a little bit.

Download this script


[email protected]:/home# wget -O /usr/bin/distro http://cdn-img.tonggoes.ga/distro

Save it as /usr/bin/distro and make it executable (For simplicity reason, do this as root user)


[email protected]:/home# chmod +x /usr/bin/distro

Add to snmpd.conf


[email protected]:/home# nano /etc/snmp/snmpd.conf

Place this line at the end of file

extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro

Restart snmpd service


[email protected]:/home# service snmpd restart

Leave a Reply

Your email address will not be published. Required fields are marked *

Ads