Page 2 of 2

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

Posted: Tue Aug 02, 2011 1:12 am
by pzusa
Hi,

That's a pretty common problem :)
You've had wrong file permissions set for the check_icmp script (located in libexec directory).
This one is beeing used for hosts availability checking (in standard configuration).
It needs the "set user or group ID on execution" bit set for the owner of the file and root:root ownership to work properly :) (i.e: root:root r-sr-xr-x)

And that's it :)
By the way - the same file permissions are required for the check_dhcp script :)

Take care

Michalux

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

Posted: Wed Aug 03, 2011 3:34 am
by ajayy
hi nscott,

I have tried the NRPE step by step instructions,

http://www.utahsysadmin.com/2008/03/14/ ... olaris-10/

however now I get the same error which I got before "Warning: This plugin must be either run as root or setuid"

I even tried the earlier step but no joy this time ... it still remains the same cant get it to work ...

hi pzusa - if you can please let me know how to change the wrong file permissions it would help me out i guess
Please help

thanks

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

Posted: Wed Aug 03, 2011 10:33 am
by nscott
Running .A-subcomponents is not fixing the permissions? Thats really strange. Whats the ls -l on your libexec directory?

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

Posted: Wed Aug 03, 2011 12:41 pm
by ajayy
hi nscott,

Yeah running ./A-subcomponents doesnt fix permissions anymore and it says " Subcomponents already configured- skipping "

please find the output below

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

Posted: Wed Aug 03, 2011 1:15 pm
by nscott
DOH! I forgot, when you're in the /tmp/nagiosxi directory, you'll need to do this:

rm installed.subcomponents -f

Then run the A-subcomponents script again

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

Posted: Thu Aug 04, 2011 3:42 am
by pzusa
ajayy wrote: hi pzusa - if you can please let me know how to change the wrong file permissions it would help me out i guess
Please help
thanks
Login as root and cd to the /usr/local/nagios/libexec directory.
Than run: chmod u+s check_icmp
This should fix the problem.

Michalux

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

Posted: Thu Aug 04, 2011 8:10 am
by ajayy
hi nscott,

Thank you so much once again, it has worked and its all back up and running :)

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

Posted: Thu Aug 04, 2011 8:11 am
by ajayy
hi pzusa,

Thank you for giving those instructions on how to change the file permissions :)