Page 1 of 1

Warning: This plugin must be either run as root or setuid ro

Posted: Sat Jan 27, 2018 11:44 pm
by huyvinhptit
I have this error when using Nagios XI, expect you to only fix the problem. Because I have followed the instructions on the net forever not yet.
Thank you very much.
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
check_icmp: Failed to obtain ICMP socket: Operation not permitted
Image
Image

Thanks you very much.

Re: Warning: This plugin must be either run as root or setui

Posted: Sun Jan 28, 2018 5:53 pm
by dwhitfield
What's the output when you run chmod u+s yourpluginfile? Also, what's the output of ll check_icmp?

Re: Warning: This plugin must be either run as root or setui

Posted: Thu Mar 01, 2018 8:18 pm
by huyvinhptit
Thanks you very much ! I edited it successfully and you can close this topic.

Re: Warning: This plugin must be either run as root or setui

Posted: Fri Mar 02, 2018 11:25 am
by scottwilkerson
Glad you were able to get it to work