Using SU from root to access other id's for Nagios

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
dr057
Posts: 3
Joined: Tue Sep 11, 2018 12:47 pm

Using SU from root to access other id's for Nagios

Post by dr057 »

If we have root access to a system and want to access lower level id's using SU can we issue su <id> within Nagios setup to access commands under those lower level id's to setup alerts? I assume this can be done within Nagios, but just wanted to please confirm.

Just wanted to add, even through we have root it still does not have access to the cmd list under some of the id's since it's an appliance.

Thanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Using SU from root to access other id's for Nagios

Post by npolovenko »

Hello, @dr057. Can you show your notification command and demonstrate how you want to edit it? What commands are you trying to access?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dr057
Posts: 3
Joined: Tue Sep 11, 2018 12:47 pm

Re: Using SU from root to access other id's for Nagios

Post by dr057 »

Hi Npolovenko,

I'm simply trying to find out if I can issue an su <id> using root from Nagios to access a set of commands under that id. From root alone I cannot access those commands as they are builtin to this application, but if I can do an su <id> in Nagios I can then access that command list.

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Using SU from root to access other id's for Nagios

Post by scottwilkerson »

you could do this only of you add the su <id> to a script that you have given sudo access to the nagios user.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dr057
Posts: 3
Joined: Tue Sep 11, 2018 12:47 pm

Re: Using SU from root to access other id's for Nagios

Post by dr057 »

okay, thanks Scott!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Using SU from root to access other id's for Nagios

Post by scottwilkerson »

dr057 wrote:okay, thanks Scott!
May we close the thread?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked