UIM: scope discovery completes immediately without discovering any devices.
search cancel

UIM: scope discovery completes immediately without discovering any devices.

book

Article ID: 280750

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

We are attempting to discovery scopes for a discovery_agent that is installed on a Linux hub but the scope discovery completes immediately without discovering any devices.

Error captured in the discovery_agent.log

[DiscoveryRun, discovery_agent] stderr: Exception in thread "DiscoveryRun" 
[DiscoveryRun, discovery_agent] stderr: java.lang.UnsatisfiedLinkError: /tmp/com.nimsoft.lib/librocksaw-LINUX_23_64.so: /tmp/com.nimsoft.lib/librocksaw-LINUX_23_64.so: failed to map segment from shared object

Environment

Any discovery_agent probe version

Cause

This particular issue is seen on Linux systems where the /tmp filesystem is mounted with the "noexec" filesystem option, or is otherwise treated as a non-executable filesystem by the kernel (perhaps by some external security hardening, kernel extension, etc).

Resolution

Resolution 1. Ensure that the filesystem where /tmp resides is NOT mounted "noexec" and that files can be executed there.  A simple test of this is to place an executable file in /tmp and ensure that it can in fact be executed.

Resolution 2: Specify a new location for the temporary directory used by the discovery_agent probe

a. Create a tmp folder in the /opt/nimsoft/

b. Raw configure the discovery_agent in IM or Admin Console

c. Add the following to end of the line of 'setup > startup > opt > java_opts' with a space preceding the hyphen 

 -Djava.io.tmpdir=/opt/nimsoft/tmp 

d. Apply > OK