This issue has been solve. I have add in /etc/hosts and restart the server.

 

From: observium [mailto:observium-bounces@observium.org] On Behalf Of Tom Laermans
Sent: 24 Mei 2016 15:16
To: Observium Network Observation System <observium@observium.org>
Subject: Re: [Observium] Error Adding Device

 

Or get the professional version, which does allow this in the meanwhile :-)

On 24/05/2016 04:00, Spencer Ryan wrote:

You can't add devices by IP, they must be a hostname. Either add them in DNS, or put them in /etc/hosts and use whatever name you choose in that file.



Spencer Ryan
| Senior Systems Administrator | sryan@arbor.net

Arbor Networks

+1.734.794.5033 (d) | +1.734.846.2053 (m)

 

On Mon, May 23, 2016 at 9:58 PM, Mohd Zainal Abidin Rabani <zainal@nocser.net> wrote:

Hi,

 

Getting this error:

 

observium@observium-desktop:/opt/observium$ ./add_device.php -d 10.2.30.2 N0c53rd0tn3t v2c

DEBUG!

 

SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'dbSchema';]

SQL RUNTIME[0.00069404s]

 

SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 'current_rev';]

SQL RUNTIME[0.00053310s]

 

SQL[SELECT * FROM `config`]

SQL RUNTIME[0.00061989s]

 

CMD[/bin/hostname -f]

 

EXITCODE[0]

CMD RUNTIME[0.0076s]

STDOUT[

observium-desktop

]

Observium CE 0.16.1.7533

Add Device(s)

 

 

CMD[/opt/observium/scripts/distro]

 

EXITCODE[0]

CMD RUNTIME[0.38s]

STDOUT[

Linux|4.4.0-21-generic|amd64|Ubuntu|16.04

]

 

CMD[/usr/bin/env python --version 2>&1]

 

EXITCODE[0]

CMD RUNTIME[0.0565s]

STDOUT[

Python 2.7.11+

]

 

SQL[SELECT version();]

SQL RUNTIME[0.00033402s]

 

CMD[/usr/bin/snmpget --version 2>&1]

 

EXITCODE[0]

CMD RUNTIME[0.1467s]

STDOUT[

NET-SNMP version: 5.7.3

]

 

CMD[/usr/bin/rrdtool --version |head -n1]

 

EXITCODE[0]

CMD RUNTIME[0.2724s]

STDOUT[

RRDtool 1.5.5  Copyright by Tobias Oetiker <tobi@oetiker.ch>

]

 

SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);]

SQL RUNTIME[0.02811098s]

 

CMD[/usr/bin/env apache2 -v | awk '/Server version:/ {print $3}']

 

EXITCODE[0]

CMD RUNTIME[0.1172s]

STDOUT[

Apache/2.4.18

]

 

SQL[SELECT @@sql_mode;]

SQL RUNTIME[0.02187586s]

 

SQL[SHOW VARIABLES LIKE 'character_set_connection']

SQL RUNTIME[0.02842999s]

 

#####  Software versions  #####

 

o OS                   Linux 4.4.0-21-generic [amd64] (Ubuntu 16.04)

o Apache               2.4.18

o PHP                  7.0.4-7ubuntu2

o Python               2.7.11+

o MySQL                5.7.12-0ubuntu1 (extension: mysqli 5.0.12-dev)

o SNMP                 NET-SNMP 5.7.3

o RRDtool              1.5.5

 

#####  MySQL mode  #####

 

o MySQL

                        ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

 

#####  Charset info  #####

 

o PHP                  UTF-8

o MySQL                utf8

 

#####  Timezones info  #####

 

o Date                 Tuesday, 24-May-16 09:55:39 MYT

o PHP                  +08:00

o MySQL                +08:00

 

Try to add 10.2.30.2:

 

SQL[SELECT COUNT(*) FROM `devices` WHERE `hostname` = '10.2.30.2']

SQL RUNTIME[0.00078392s]

Could not resolve 10.2.30.2.

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.

 

Need advice please.

 

Regards,

 

Mohd Zainal Abidin Rabani

Technical Support

 

 


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

 




_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium