Adding hosts in auto-discovery fails
![](https://secure.gravatar.com/avatar/ed41bab81bba1fb61034bd9f1d66a653.jpg?s=120&d=mm&r=g)
Hi i tried auto-discovery feature, and hosts cannot be added even though they are resolvable and accessed by ping and SNMP. Manually can be added.
here is the debug from the discovery log:
SQL[[0;33mSELECT `device_id` FROM `devices` WHERE `sysName` = 'STO-3750-OFF 5' OR `hostname` = 'STO-3750-OFF5'[0m] [0m
Discovering new host STO-3750-OFF5 through CDP
Host STO-3750-OFF5 resolved as 10.x.x.x
Host STO-3750-OFF5 (10.x.x.x) founded inside configured nets, try to adding:
SQL[[0;33mSELECT D.`hostname` FROM ipv4_addresses AS A
LEFT JOIN `ports` AS P ON A.`port_id` = P.`port _id`
LEFT JOIN `devices` AS D ON D.`device_id` = P.` device_id`
WHERE D.`disabled` = 0 AND A.`ipv4_address` = 'STO- 3750-OFF5'[0m] [0m
Trying v2c community public ...
CMD[[0;33m/usr/bin/snmpget -v2c -c *** -OQUst -m SNMPv2-MIB -M /opt/ observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'STO-3750-OFF5':'161' sysObjectID.0 sysUpTime.0[0m][0m
EXITCODE[[0;31m1[0m][0m
RUNTIME[[0;32m6.0104s[0m], [0m
STDOUT[
]
SNMP_STATUS[[0;31mFALSE[0m][0m
No reply on community public using v2c.
However when i do the command above alone, it works:
/usr/bin/snmpget -v2c -c public -OQUst -m SNMPv2-MIB -M /opt/observium/mibs/ rfc:/opt/observium/mibs/net-snmp 'udp':'STO-3750-OFF5':'161' sysObjectID.0 sysUpTime.0
sysObjectID.0 = enterprises.9.1.516
sysUpTime.0 = 4151734310
And also works when i add the device manually:
./add_device.php STO-3750-OFF5 publicv2c
Observium CE 0.14.11.6000
Add Device(s)
Try to add sto-3750-off5:
Trying v2c community OriRead ...
Now discovering sto-3750-off5 (id = 22)
sto-3750-off5 22 ios (cisco)
Ports : Vl1(1)[1463] Vl10( .........
Many thanks
Pet
participants (1)
-
dorje2007@seznam.cz