Discover Agent fails to run when ICMP discover set to yes and noexec set on /tmp

Document ID : KB000016152
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Discover Agent running on Linux will fail when ICMP discover is set to yes and  /tmp is mounted as noexec. An error that you may see in the probe log:

[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: Operation not permitted 

 

Answer:

To get around the discovery_agent from using /tmp perform the following:

1. Raw configure the discovery_agent in IM

2. 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 

3. Apply > OK