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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
pzusa
Posts: 34
Joined: Fri Jun 24, 2011 9:54 am

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

Post 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
ajayy
Posts: 20
Joined: Fri Jul 15, 2011 5:14 am

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

Post 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
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

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

Post by nscott »

Running .A-subcomponents is not fixing the permissions? Thats really strange. Whats the ls -l on your libexec directory?
Nicholas Scott
Former Nagios employee
ajayy
Posts: 20
Joined: Fri Jul 15, 2011 5:14 am

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

Post by ajayy »

hi nscott,

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

please find the output below
You do not have the required permissions to view the files attached to this post.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

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

Post 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
Nicholas Scott
Former Nagios employee
pzusa
Posts: 34
Joined: Fri Jun 24, 2011 9:54 am

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

Post 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
ajayy
Posts: 20
Joined: Fri Jul 15, 2011 5:14 am

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

Post by ajayy »

hi nscott,

Thank you so much once again, it has worked and its all back up and running :)
ajayy
Posts: 20
Joined: Fri Jul 15, 2011 5:14 am

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

Post by ajayy »

hi pzusa,

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