Page 1 of 1
This plugin must be either run as root or setuid root
Posted: Mon Jan 09, 2017 11:31 am
by dlukinski
Hello XI support team
We are getting "Warning: This plugin must be either run as root or setuid root." error when trying to run check_icmp on some of our modGearman machines (as attached).
Please advice what could be done to fix this properly
Thank you
Re: This plugin must be either run as root or setuid root
Posted: Mon Jan 09, 2017 12:31 pm
by lmiltchev
Are the permissions on the "check_icmp" plugin different on the "failing" machines?
Can you run the following commands on one of the problem, and one of the working gearman machines, and show the output?
Code: Select all
ls -la /usr/local/nagios/libexec/check_icmp
rep nag /etc/group
Note: Modify the path to the plugin if needed
Re: This plugin must be either run as root or setuid root
Posted: Mon Jan 09, 2017 1:42 pm
by dlukinski
lmiltchev wrote:Are the permissions on the "check_icmp" plugin different on the "failing" machines?
Can you run the following commands on one of the problem, and one of the working gearman machines, and show the output?
Code: Select all
ls -la /usr/local/nagios/libexec/check_icmp
rep nag /etc/group
Note: Modify the path to the plugin if needed
Hi
Got it working by chmod u+s (groups were nagios all cases / owner was root in all cases
-----------------------------------
login as: root
[email protected]'s password:
Last login: Thu Jan 5 05:58:43 2017
[root@uskc-nagsgprod01 libexec]# chmod u+s check_icmp
[root@uskc-nagsgprod01 libexec]# ls -la check_icmp
-rwsr-xr-x. 1 root nagios 213886 Sep 2 11:32 check_icmp
[root@uskc-nagsgprod01 libexec]# rep nag /etc/group
bash: rep: command not found...
Re: This plugin must be either run as root or setuid root
Posted: Mon Jan 09, 2017 1:49 pm
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Re: This plugin must be either run as root or setuid root
Posted: Mon Jan 09, 2017 3:22 pm
by dlukinski
dwhitfield wrote:It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Yes please