Proper configuration file on an Ubuntu server being monitored

Hi all,
I am up and running and trying to add some Ubuntu 18.04 servers to be monitored. I’m seeing data, but I’m not sure if my config file is properly set up. For example, the Distro Detection section:

 #Distro Detection
 extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro

Doesn’t work, since there’s no /usr/bin/distro on Ubuntu. I wonder if there are other items that are not effective, or if I am missing something. Can anyone suggest any tips or maybe a config file that works well with Ubuntu?

Thanks

Here’s my config file, found on a tutorial site:

# Change RANDOMSTRINGGOESHERE to your preferred SNMP community string
 com2sec readonly  default         [my random string here]

 group MyROGroup v2c        readonly
 view all    included  .1                               80
 access MyROGroup ""      any       noauth    exact  all    none   none

 syslocation Rack, Room, Building, City, Country [GPSX,Y]
 syscontact Your Name <[email protected]>

 #Distro Detection
 extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro

 #Hardware Detection (uncomment to enable)
 #extend .1.3.6.1.4.1.2021.7890.2 hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name'
 #extend .1.3.6.1.4.1.2021.7890.3 manufacturer '/bin/cat /sys/devices/virtual/dmi/id/sys_vendor'
 #extend .1.3.6.1.4.1.2021.7890.4 serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial'

change that to your SNMP community string

that was just a placeholder. I updated it in the question to indicate that I have my random string in that place. Thanks

Looks very similar to my Ubuntu snmpd.conf config files:

# Change RANDOMSTRINGGOESHERE to your preferred SNMP community string
#com2sec readonly  default         RANDOMSTRINGGOESHERE
com2sec readonly  172.n.n.n         mysnmpstring

group MyROGroup v2c        readonly
view    all        included     .1 80
access  MyROGroup ""            any     noauth  exact   all     all     none

syslocation Comms Cupboard
syscontact Me <myemail>

# Distro Detection
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
# OS Update statistics
extend osupdate /etc/snmp/os-updates.sh
# NTP client statistics
extend ntp-client /etc/snmp/ntp-client.sh

The only real differences I can see are specifiying the LibreNMS server’s IP address and this line:

access MyROGroup "" any noauth exact all all none

I use an identical file in both 18.04 and 16.04 Ubuntu servers without any problems.

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