This plugin must be either run as root or setuid root

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

This plugin must be either run as root or setuid root

Post 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
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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: This plugin must be either run as root or setuid root

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: This plugin must be either run as root or setuid root

Post 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...
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

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: This plugin must be either run as root or setuid root

Post 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
Locked