On 16 February, 2015 - Mike Stupalov wrote:
On 16.02.2015 18:38, Simon Smith wrote:
Hi All,
I’m having an issue here with a few of our UniFi Access Points and Observium
Observium detects most of our AP’s as UniFi but for seem reason two of them as being detected as AirOS ?
I have no idea why it is doing this!
They all have same Firmware and OS installed so why is it detecting it as AirOS instead of UniFi ?
I have even compared snmpwalks and they are both identical (oversally data is different, but names, models, etc all the same!)
Also ive noticed the correct ones for UniFi, aren’t detecting the firmware version correctly either ?
its showing one point as 3.1.12 when infact I’m on 3.2.10
Any help where I should start looking or even ideas for me, would be very helpful
Send me (or pastebin) debug output:
./poller.php -d -m os -h your_incorrect_unifi
A tad OT but anyhow.
All of my UAP-AC running 3.2.10 firmware gets detected correctly:
Hardware Unifi UAP-AC Operating System Ubiquiti UniFi 3.2.10.2886.150119.1407
I patched my CE-edition to correctly detect the verision strings from my Unifi AP's:
diff -Nur -x mibs ../observium.orig/includes/polling/os/unifi.inc.php ./includes/polling/os/unifi.inc.php --- ../observium.orig/includes/polling/os/unifi.inc.php 2014-03-31 15:32:19.000000000 +0200 +++ ./includes/polling/os/unifi.inc.php 2015-02-11 11:54:11.608907455 +0100 @@ -19,6 +19,7 @@ $hardware = "Unifi ".$hardware;
$version = trim(snmp_get($device, "dot11manufacturerProductVersion.5", "-Ovq", "IEEE802dot11-MIB", mib_dirs())); +if (!$version) { $version = trim(snmp_get($device, "dot11manufacturerProductVersion.2", "-Ovq", "IEEE802dot11-MIB", mib_dirs())); } list(,$version) = preg_split('/.v/',$version);
// EOF
It's basically the same hack thats done for the dot11manufacturerProductName
//Anton