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
nagios user doesn't have access to check a service
Re: nagios user doesn't have access to check a service
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/
http://www.thegeekstuff.com/2013/02/sticky-bit/
Former Nagios employee
Re: nagios user doesn't have access to check a service
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: nagios user doesn't have access to check a service
Can you post the script you are attempting to execute, and the exact error message please?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.