![](https://secure.gravatar.com/avatar/c526ac10e4222e27c17cbf0af069f8b5.jpg?s=120&d=mm&r=g)
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!
![](https://secure.gravatar.com/avatar/b3a546cd599e8024ed2790e548f4c63b.jpg?s=120&d=mm&r=g)
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!
![](https://secure.gravatar.com/avatar/c526ac10e4222e27c17cbf0af069f8b5.jpg?s=120&d=mm&r=g)
Ah, that gives some insight, seems that time I didn't have enough privs for my user.
Thanks!
On Oct 29, 2014, Peter Childs pchilds@staff.iinet.net.au wrote:
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!
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Sent with K-@ Mail - the evolution of emailing.
participants (3)
-
Gary
-
Gary Tang
-
Peter Childs