NetXMS Support Forum

English Support => Feature Requests => Topic started by: raypetter on March 21, 2015, 04:32:37 PM

Title: More information when object already exists
Post by: raypetter on March 21, 2015, 04:32:37 PM
From time to time, I find myself trying to locate "objects that already exists". This is becoming time consuming. When adding the host, the error message only displays that the object already exists but shows no additional information. So I am lost as to exactly why the error is displayed.

This happened just now when I tried to register a "foobar.domain.com" and I get the error message. I know for a fact that "foobar" was never registered in netxms before (new naming standard) but perhaps the IP was used on an old object that was removed. I tried registering "foobar" with both dns and ip - same result every time.

It would be a major improvement if the error message could show some additional details about the duplicate object.
Title: Re: More information when object already exists
Post by: Tatjana Dubrovica on March 21, 2015, 08:09:01 PM
Try to find your object using IP filter in the filter of object tree:

Buy default search is done by node name. In this type of search can be used
'*' and '?' symbols for pattern search.

But there are few prefix that can be used for other search options:
- '/' - will search in comments
- '>' - will search by IP address

Example: ">10.5.0.12"
Title: Re: More information when object already exists
Post by: raypetter on March 21, 2015, 11:09:54 PM
Thanks for the feedback. I appreciate the tip but my feature request still stands. I was not able to locate the duplicate object, and didn't get any hits on a simple ">x.x.x.*" search. I suspect a bug, as I am 99% sure that the ip is not in use in any of the current objects visible. It might have been used previously on some depricated host.

Next step is to search the database I guess.
Title: Re: More information when object already exists
Post by: Tatjana Dubrovica on March 23, 2015, 10:47:44 AM
I would advise to check debug log of the server on a debug level 4 while node is added. There will be written reason why this node is not added:

[23-Mar-2015 10:42:36.057] [DEBUG] [CLSN-0] Received message CMD_CREATE_OBJECT
[23-Mar-2015 10:42:36.057] [DEBUG] PollNode(10.5.0.27/0) zone 0
[23-Mar-2015 10:42:36.057] [DEBUG] PollNode: Node 10.5.0.27 already exist in database
[23-Mar-2015 10:42:36.057] [DEBUG] [CLSN-0] Sending message CMD_REQUEST_COMPLETED

Title: Re: More information when object already exists
Post by: Tatjana Dubrovica on March 23, 2015, 10:58:02 AM
If there will be message that node already exists in database, then most probably it means that node with this IP is in the system scheduled for deletion, but can't be deleted because of some lock. In this case restart of server should help.
Title: Re: More information when object already exists
Post by: raypetter on March 23, 2015, 11:09:55 AM
Thanks, I'll try that.

However, I am still hopeful for some more info in the GUI.

Netxms is a wonderful application, but I often end up in a few annoyances that could have been avoided with a bit more verbose message output.
Title: Re: More information when object already exists
Post by: raypetter on April 14, 2015, 10:31:37 AM
Tried restarting netxms, and still no luck. I am not able to add two critical servers that need monitoring because of this.
Title: Re: More information when object already exists
Post by: raypetter on April 14, 2015, 10:37:19 AM
After upgrading netxms to the latest stable release, I was able to use the search feature as mentioned in this thread. I quickly located the problem, and it turns out netxms did exactly what it was supposed to. I blame myself for implementing a new naming standard on our servers.. Would still love to see more feedback to the user when this kind of problem occurs.

"can't add node A because of ip conflict with node B"
Title: Re: More information when object already exists
Post by: Tatjana Dubrovica on April 16, 2015, 11:45:01 AM
Change request created: https://dev.raden.solutions/issues/804
Title: Re: More information when object already exists
Post by: raypetter on April 17, 2015, 01:22:10 PM
Cheers  :D
Title: Re: More information when object already exists
Post by: Tatjana Dubrovica on April 22, 2015, 05:29:45 PM
Will be included in next release.
Title: Re: More information when object already exists
Post by: raypetter on May 08, 2015, 07:09:26 PM
Fantastic. Also love what you guys have done with the download page (stable and development branch). Keep up the good work.