nagios user doesn't have access to check a service

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
springs
Posts: 3
Joined: Wed May 01, 2013 4:56 am

nagios user doesn't have access to check a service

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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/
Former Nagios employee
springs
Posts: 3
Joined: Wed May 01, 2013 4:56 am

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

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

Post by sreinhardt »

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