net_connect probe fails ICMP ping for non root user
search cancel

net_connect probe fails ICMP ping for non root user

book

Article ID: 281354

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

When robot is running as a non root user, ICMP pings fail for the net_connect probe.

Error in probe logs:

Mar 28 13:41:26:112 nc: Protocol set is :icmp
Mar 28 13:41:26:112 nc: ptNetPingWait: can't create raw socket
Mar 28 13:41:26:112 nc: getReqSocketId...

Environment

  • UIM
  • net_connect
  • Linux/Unix OS

Cause

Permissions needed to perform network operations for non root user are not set.

Resolution

Perform the following operation on the system (the path may need to be adjusted):

   sudo setcap cap_net_raw+eip /opt/nimsoft/probes/network/net_connect/net_connect

To verify it has been set:

   getcap /opt/nimsoft/probes/network/net_connect/net_connect

Deactivate and activate the net_connect probe.