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
This plugin must be either run as root or setuid root
This plugin must be either run as root or setuid root
You do not have the required permissions to view the files attached to this post.
Last edited by dwhitfield on Mon Jan 09, 2017 3:33 pm, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
Re: This plugin must be either run as root or setuid root
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?
Note: Modify the path to the plugin if needed
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/groupBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: This plugin must be either run as root or setuid root
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?Note: Modify the path to the plugin if neededCode: Select all
ls -la /usr/local/nagios/libexec/check_icmp rep nag /etc/group
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...
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: This plugin must be either run as root or setuid root
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
Yes pleasedwhitfield wrote:It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!