Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, Can you please explain how to monitor user logins,process and server load using SAR. And im using RHEL-6 and Oracle linux. Thanks ranjit...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    vrk
    vrk is offline
    Just Joined!
    Join Date
    Jun 2012
    Posts
    16

    Monitoring user logins, process and server load using SAR.


    Hello,

    Can you please explain how to monitor user logins,process and server load using SAR. And im using RHEL-6 and Oracle linux.

    Thanks
    ranjit

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,168
    SAR monitoring logins? Not possible. Server load, not a problem. Read the man page for sar. We use it extensively to help with system/network diagnostics.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Location
    Silver Spring, MD
    Posts
    95

    Fail log along with other ways to verify login attempts

    Quote Originally Posted by vrk View Post
    Hello,

    Can you please explain how to monitor user logins,process and server load using SAR. And im using RHEL-6 and Oracle linux.

    Thanks
    ranjit
    One way you can view who has failed would be to use faillog command

    Code:
    faillog -a # lists all the failed login attempts
    faillog -u <user> # lists the failed login attempts for a specific user
    faillog -r # resets the failed login counters
    Maybe this can help with the process

    Also the who command works pretty well:

    Code:
    who -a # this lists all the users logged on the system
    Code:
    ps -aux # provides information on specific user processes
    top -d 3 # identifies user processes in real-time but gives the user the ability to manipulate the fields as needed / server load can be monitored as well
    Let me know if this helps.

    tdsan

  4. #4
    vrk
    vrk is offline
    Just Joined!
    Join Date
    Jun 2012
    Posts
    16
    thanks for the information
    tdsan

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,168
    Quote Originally Posted by vrk View Post
    thanks for the information
    tdsan
    Yes. Very useful post tdsan. I wasn't aware of that command. Vrk, do note that if there have been no failed login attempts that you will get an error "Cannot open /var/log/faillog: No such file or directory" running it.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •