Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_icmp: with setcap enabled, but complains about suid #1269

Closed
waja opened this issue Jul 2, 2014 · 1 comment
Closed

check_icmp: with setcap enabled, but complains about suid #1269

waja opened this issue Jul 2, 2014 · 1 comment
Labels
Milestone

Comments

@waja
Copy link
Member

waja commented Jul 2, 2014

Even if check_icmp has the capabilities to work, it complains about needed root privilidges:

waja@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

@waja waja added this to the 1.6 milestone Jul 2, 2014
@waja waja added the bug label Jul 2, 2014
@waja
Copy link
Member Author

waja commented Jul 6, 2014

fixed by ba21e26

@waja waja closed this as completed Jul 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant