check_icmp: with setcap enabled, but complains about suid (#1269)
waja
notifications at github.com
Wed Jul 2 17:45:15 CEST 2014
Even if check_icmp has the capabilities to work, it complains about needed
root privilidges:
waja at bb:~$ /usr/lib/nagios/plugins/check_icmp -H google.com
Warning: This plugin must be either run as root or setuid root.
To run as root, you can use a tool like sudo.
To set the setuid permissions, use the command:
chmod u+s yourpluginfile
OK - google.com: rta 17.559ms, lost 0%|rta=17.559ms;200.000;500.000;0;
pl=0%;40;80;; rtmax=17.635ms;;;; rtmin=17.387ms;;;;
bb:~# getcap /usr/lib/nagios/plugins/check_icmp
/usr/lib/nagios/plugins/check_icmp = cap_net_raw+ep
--
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/issues/1269
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20140702/02ec6f8c/attachment.html>
More information about the Devel
mailing list