Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

System statistics gathering

Options
  • 13-02-2015 4:51pm
    #1
    Moderators, Technology & Internet Moderators Posts: 37,485 Mod ✭✭✭✭


    I want to gather four stats over time (about 3 months) on 6 low end boxes.

    CPU usage
    RAM usage
    Network bandwidth
    Load

    Now nagios is an option, but to be honest it looks like a pain in the arse to set up for what seems to me should be a simple enough task.

    OS is Debian squeeze.

    Any recommendations?


Comments

  • Moderators, Society & Culture Moderators Posts: 9,664 Mod ✭✭✭✭Manach


    I was reading in Linux Magazine(?) about nmon. It looks interesting as it can capture a fair amount of stats and various addon are available for visualisation of such.


  • Registered Users Posts: 1,193 ✭✭✭liamo


    I think sysstat is what you're looking for.

    Here are the install and setup instructions and a few reporting examples.

    # Install the package
    apt-get install sysstat

    # Enable it
    vi /etc/default/sysstat
    Change ENABLED="false" to "true"

    # If required, edit /etc/cron.d/sysstat to change the data
    # collection frequency from the default of every 10 minutes.

    # (re)start the service
    service sysstat restart

    # Report on the data gathered so far.

    # cpu usage
    sar -p

    # memory use
    sar -r

    # Network (by device)
    sar -n DEV


    There are some good examples here:
    http://www.thegeekstuff.com/2011/03/sar-examples/

    And now that you know what you're looking for, there are loads of other examples of usage available by Googling.

    Hope this helps.

    Liam


    Edit: Just realised that you asked the question a month ago so you have probably implemented a solution already. Even so, sysstat is a good one to remember for next time.


  • Closed Accounts Posts: 18,969 ✭✭✭✭syklops


    Another vote for munin.


  • Moderators, Music Moderators Posts: 23,359 Mod ✭✭✭✭feylya


    I'm a big fan of sysdig http://www.sysdig.org/

    Dump the data to the local disk, or move them off somewhere occasionally.


Advertisement