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
Using SU from root to access other id's for Nagios
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Using SU from root to access other id's for Nagios
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.
Re: Using SU from root to access other id's for Nagios
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
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
-
- 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
you could do this only of you add the su <id> to a script that you have given sudo access to the nagios user.
Re: Using SU from root to access other id's for Nagios
okay, thanks Scott!
-
- 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
May we close the thread?dr057 wrote:okay, thanks Scott!