1824536 Members
3689 Online
109672 Solutions
New Discussion юеВ

Real-Time monitoring

 
SOLVED
Go to solution
Boiss├й_1
Advisor

Real-Time monitoring

Hi,

1)Is there a way for the administrator to monitor in real-time users' actions on a HP-UX 11.x server ??

2)Is it possible for the administrator to know if there are unauthorized attemps to access ressources ??

3)Could alarms be sent in real-time to the administrator when unsuccessful login attempts are detected ??

Thanks,

S├йbastien Boiss
7 REPLIES 7
Matthew_50
Valued Contributor

Re: Real-Time monitoring

1) try `w` or `whodo`
2) what kind of resources ?
3) I think it's possible with enable PAM and customize scripts.
Muthukumar_5
Honored Contributor

Re: Real-Time monitoring

1. Yes. You can use w or whodo commands. If you setup proper HISTFILE setup using /etc/profile or $HOME/.profile file then, you can lively monitor them.

2. Is it based on memory, disk like that. You can use top or ps command to get / user based.

3. You can use lastb command to get bad login informations.

hth.
Easy to suggest when don't know about the problem!
Boiss├й_1
Advisor

Re: Real-Time monitoring

Thanks for your answers...
Bill Hassell
Honored Contributor
Solution

Re: Real-Time monitoring

1) Well it depends on whether you just want to know when they logged in, or see every command they type. For the second case, assuming they use the standard HP POSIX shell, you can look at each user's shell history ($HOME/.sh_history). If you need this in realtime, you'll need to run the tail -f command which shows you any changes every one second. If you need to monitor all the users, then you'll need lots of extra terminals and people to sit there and watch the commands.

2) As mentioned, lastb tells you all that. You have to write a script that checks for new additions to that list.

3) As with item #2, you have to write a script to monitor this command.

It sounds like you are concerned about security and/or users that have too many privileges on this system. For security, you might take a look at IDS (Intrusion Detection System to monitor things automatically. Get information at:

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUX-HIDS

For system stability due to poor user behavior, this is reallt a social problem and the easiest solutuion is to remove shell access for problem users and write a menu script instead. Certainly you never, ever give root access to developers and database administrators. For assistant administrators, use SAM's restricted use feature and also get a copy of sudo to provide limited command capability.


Bill Hassell, sysadmin
Boiss├й_1
Advisor

Re: Real-Time monitoring

Is HIDS available for HP-UX 11.00 ?
I don't find where i can download it.

S├Г┬йbastien Boiss
Pierre Pasturel
Respected Contributor

Re: Real-Time monitoring

Sebastien -

HPUX-HIDS on 11.0 is a discontinued release. We do not widely deliver HIDS 11.0 depots and generally require customers to go through CCP (customer commitment process; formerly known as business escalation). This is mainly to sensitize customers to the fact that HPUX 11.0 support days are numbered and that they need to seriously plan for a transition to 11i.

Pierre
Olivier Masse
Honored Contributor

Re: Real-Time monitoring

Point #1 seems to be motivated by security issues. Checking the history file is not good enough (users can disable the history file or delete it, and it's hard to be real-time).

HIDS can be configured with triggers but from what I seen with the early versions, it was not flexible enough. Anyone, correct me if I'm wrong.

The solution we implemented at our site is activating the trusted system enabling the auditing subsystem and watching for every system call from the exec() family. That's as a best history file you can get. The logs are sent almost real-time to another server where they can be analyzed. Furthermore, that's the kind of data you will need if any legal action must be taken against an attacker.

But going trusted is a major step which is less relevant since the release of the shadow password option. I would not do it just for fun if you're in production. But yet it works with 11.0, while HIDS doesn't.

Good luck