turnkeylinux / tracker

TurnKey Linux Tracker
https://www.turnkeylinux.org
70 stars 16 forks source link

observium can't add device by manual or console #662

Closed thusithasumanadasa closed 8 years ago

thusithasumanadasa commented 8 years ago

after typing this ./add_device.php <X.X.X.X ip address> <community> <version> Here I've add new device ip and its community and version. gives this error..

Observium CE 0.16.1.7533
Add Device(s)

Try to add X.X.X.X:
Could not resolve X.X.X.X.
Devices failed: 1.

USAGE:
add_device.php <hostname> [community] [v1|v2c] [port] [udp|udp6|tcp|tcp6]
add_device.php <hostname> [any|nanp|anp|ap] [v3] [user] [password] [enckey] [md5|sha] [aes|des] [port] [udp|udp6|tcp|tcp6]
add_device.php <filename>

EXAMPLE:
SNMPv1/2c:                    add_device.php <hostname> [community] [v1|v2c] [port] [udp|udp6|tcp|tcp6]
SNMPv3   :         Defaults : add_device.php <hostname> any v3 [user] [port] [udp|udp6|tcp|tcp6]
           No Auth, No Priv : add_device.php <hostname> nanp v3 [user] [port] [udp|udp6|tcp|tcp6]
              Auth, No Priv : add_device.php <hostname> anp v3 <user> <password> [md5|sha] [port] [udp|udp6|tcp|tcp6]
              Auth,    Priv : add_device.php <hostname> ap v3 <user> <password> <enckey> [md5|sha] [aes|des] [port] [udp|udp6|tcp|tcp6]
FILE     :                    add_device.php <filename>

ADD FROM FILE:
 To add multiple devices, create a file in which each line contains one device with or without options.
 Format for device options, the same as specified in USAGE.

OPTIONS:
 -p                                          Skip icmp echo checks, device added only by SNMP checks

DEBUGGING OPTIONS:
 -d                                          Enable debugging output.
 -dd                                         More verbose debugging output.
 -t                                          Do not add device(s), only test auth options.

But when I snmpwalk to that ip it works and gives snmp data snmpwalk -c abc X.X.X.X -v1.(abc is version)

what is the wrong that I've done in adding device in to observium.The same problem shows in adding web console.That gives this error message Could not resolve X.X.X.X..

JedMeister commented 8 years ago

Hi, as noted in a comment on the other thread you posted in, you need to use hostname (not IP). FWIW it's also noted in the help text you published! :smile:

I'm closing now as this is our bug/feature request tracker; for future support questions, please us our forums instead. Thanks.