Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

System statistics gathering

  • 13-02-2015 04:51PM
    #1
    Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭


    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, Paid Member Posts: 9,842 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, Registered Users 2 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,966 ✭✭✭✭syklops


    Another vote for munin.


  • Moderators, Music Moderators Posts: 23,363 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