You seem to have skillfully omitted the only useful piece of information: 

What is this device you're trying to add which has no snmpEngineID, and what idiot manufacturer created it?

We don't use snmpEngineID as a unique id in the database, so I'm not really sure what the error you're seeing is coming from. You also don't say what you're clicking on or where, the error you get doesn't seem to make sense for clicking on a device name on the devices page. You need to be much, much clearer with what's happening.

adam.

On 2018-01-08 20:59:57, Alberto Busso <alberto@busso.net> wrote:

Hi all,

I am a new user of observium and I am doing some tests with few devices
before deploying it on a wider network.

When I try to add my first device (with -d option), it only partially works.

In the log I have only this error:

CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQv -m SNMP-FRAMEWORK-MIB -M
/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp
'udp':'172.16.192.102':'161' snmpEngineID.0]

CMD EXITCODE[0]
CMD RUNTIME[0.0324s]
CMD EXITDELAY[10ms]
STDOUT[
No Such Object available on this agent at this OID
]
SNMP STATUS[FALSE]
SNMP ERROR[#1000 - Failed response]

So, it seems I am not getting the EngineID object.

Then at the end of the log I have this:

SQL[INSERT INTO `devices`
(`hostname`,`sysName`,`status`,`snmp_community`,`snmp_port`,`snmp_transport`,`snmp_version`,`os`,`snmpEngineID`,`location`,`sysContact`)
VALUES ('172.16.192.102','Terlapini RB
Sottotetto','1','public','161','udp','v2c','routeros','','Gussago','Elsy')]
SQL RUNTIME[0.04079700s]
Devices failed: 1.

So, it seems that the script will try to add the device but with an
empty EngineID field. The result is that the device is added (e.g. I can
see it in the device when accessing e.g. via web interface, but when I
click on it, it does not show up in the list with a reply that there are
no devices matching the search criterias).

I also noticed that if I try to add a second device with same EngineID
problem, the SQL INSERT will fail with ' duplicate key' error. I have
the impression that the EngineID is used as a unique key in the SQL DB
and if it is empty this may cause problems.

Am I right? In this case, I have to understand why I cannot get the
EngineID from the device.

Tnx

Alberto

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