How to enable ICMP ping for NetXMS server running under non-root account

From NetXMS Wiki
Jump to: navigation, search

Most modern Linux distributions (with kernel 2.6.24 or higher) support setting capabilities on executable files. NetXMS server uses raw sockets to do ICMP pings. To enable raw socket access for netxmsd use the following command:

sudo setcap cap_net_raw=ep /usr/bin/netxmsd

(replace /usr/bin/netxmsd with actual path to your netxmsd).