When you snmpwalk the OID from the Observium box what do you see?
# find . -type f -name "*php" | xargs grep 7890
./tests/IncludesCommonTest.php:~!@#$%^&*()_+`1234567890-=[]{}|;':",./<>? ./tests/IncludesCommonTest.php: array(96, '1234567890', '/^\d+$/'), ./includes/polling/os/unix.inc.php: $os_data = trim(snmp_get($device, ".1.3.6.1.4.1.2021.7890.1.3.1.1.6.100.105.115.116.114.111", "-Oqv", "UCD-SNMP-MIB", mib_dirs()),'" '); ./includes/polling/os/unix.inc.php: $os_data = trim(snmp_get($device, ".1.3.6.1.4.1.2021.7890.1.101.1", "-Oqv", "UCD-SNMP-MIB", mib_dirs()),'" '); ./includes/discovery/libvirt-vminfo.inc.php: $dom_split = str_word_count($dom, 1, '1234567890-.');
We can see it is discovered during polling (not discovery).
# snmpget -v2c -c public test-hosts .1.3.6.1.4.1.2021.7890.1.3.1.1.6.100.105.115.116.114.111
UCD-SNMP-MIB::ucdavis.7890.1.3.1.1.6.100.105.115.116.114.111 = STRING: "RedHat 6.6"
From: Gary Tang <phoenix@startledphoenix.commailto:phoenix@startledphoenix.com> Reply-To: Observium <observium@observium.orgmailto:observium@observium.org> Date: Thursday, 30 October 2014 1:14 am To: Observium <observium@observium.orgmailto:observium@observium.org> Subject: [Observium] Distro Script not working
I have added the distro script as per http://www.observium.org/wiki/Linux_Distribution_Detection
Running the distro script produces the right output, but observium does not seem to be detecting the distro correctly (still showing as Linux ***-generic) Snmpd has been restarted, and the OS being detected is Ubuntu 14.04.
Any idea what could be going wrong?
Thanks!