Page 1 of 1

nagios user doesn't have access to check a service

Posted: Wed Jul 16, 2014 4:17 am
by springs
hi all,

trying to get my nagios user on the end client to run some scripts that I've made just to check if the vmware service is running. when testing the command under the user it errors as the user does not have access to run that specific command.

vmware runs under the root user but again, my nagios user can't check what vm's are running as it will only report back on it's own local account. is anyone able to assist with this as well?

my setup is as follows:
Nagios core installed on Centos
Nagios client is running on Ubuntu server

Thanks

Re: nagios user doesn't have access to check a service

Posted: Wed Jul 16, 2014 1:13 pm
by tmcdonald
You might need to enable the sticky bit on the plugin in order to get it to run as another user (root).

http://www.thegeekstuff.com/2013/02/sticky-bit/

Re: nagios user doesn't have access to check a service

Posted: Mon Jul 28, 2014 6:11 am
by springs
Dont think that the sticky bits helped.

I basically need the nagios user to be able to check a service that is running under the root user as at the moment it's checking for vmware running under itself.

Re: nagios user doesn't have access to check a service

Posted: Mon Jul 28, 2014 12:18 pm
by sreinhardt
Can you post the script you are attempting to execute, and the exact error message please?