LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-25-2016, 09:18 PM   #1
mmcc0912
Member
 
Registered: Mar 2010
Posts: 37

Rep: Reputation: 0
SolarWinds monitoring and root history is a mess.


SolarWinds uses SSH and scripts to do it's monitoring checks. OK, fine. It has to run as root so that it can make these checks, well, thanks for not implementing SUDO by default. So what happens is the history for root is clobbered by all it's commands/processes for checks. Searching and trying things just doesn't get me the outcome that I (and others) really need, disable the monitoring system from writing history.

While it seemed easy (with issues) was to check and see if there is a connection from the server in .bash_profile (RHEL based).

chkSWOusr=$(w | grep orion)
if [ "$chkSWOusr" == 0 ]; then
shopt -u -o history
fi

Well, if someone needs root and there is a check, they get missed but better than nothing usable. It works when I use shopt on a login but it's not working when I use .bash_profile and tried /etc/profile.d/ script, to preserve /etc/profile from edits.

So I have to ask, there are far smarter and those that know Linux way more than I. Am I barking up the wrong tree? Do I need to disable root history period? Is there a more elegant way to disable root writing to history based on source?

Thanks much LQ community.
 
Old 03-29-2016, 04:32 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Wrt Sudo is this what you're looking for?: https://thwack.solarwinds.com/docs/DOC-178469
 
Old 03-30-2016, 07:39 AM   #3
mmcc0912
Member
 
Registered: Mar 2010
Posts: 37

Original Poster
Rep: Reputation: 0
Yeah, they don't write the default scripts for sudo, thus there are many scripts to change. Any updates to the system or templates, those manual edits would be over-written. I was hoping to find an approach to avoid the pitfalls of all that. I don't feel I'm going to be able to disable it based on source connection but I thought I'd ask. If this is where I have to go, then I'm going to have to. Maybe disable history in the scripts rather than adding in sudo, if I have to go that route of modifying the defaults.

Thanks unSpawn ....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Sudo root logs history in RHEL 5 getraj.12 Red Hat 1 06-07-2012 04:58 PM
Solarwinds Network monitor equivalent biomimetic Linux - Software 7 12-31-2011 08:47 AM
Solarwinds? tboyer Linux - Server 0 11-21-2011 05:44 PM
monitoring software? like solarwinds, or whatsup gold? jedimastermopar Linux - Software 1 07-22-2010 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration