Cpu, memory,swap,disk utilization

Posted on 2007-10-01
Last Modified: 2013-12-16
I would like to ask your advice. I'm looking any tools that can be run at backend of my redhat system by crontab every night. The tools must be able to grab Cpu, memory,swap,disk, others  utilization and save it as pdf file and name it based on date. such as ultization-for-date.pdf

hopefully it freeware...thank you
Question by:operation1611
    LVL 43

    Expert Comment

    I don't think You want to run it every night. Such snapshots will give You nothing.
    Use monitoring tools like mrtg

    Author Comment

    yeah i know the mrtg can do that...but im looking any single file that i can set it run everynight at 12midnight
    LVL 43

    Accepted Solution


    /usr/bin/free -m # show memory and swap usage
    /bin/df -m # show disks usage
    /usr/bin/top -bn1 #mem,swap,cpu and user processes

    about cpu usage, do You want current, average from last ?? seconds, from system startup?

    Author Comment


    the script i can set at the crontab to be run at midnight...but how to save the output to pdf extension?

    Author Comment

    and can this script generate output as graphical graph also?
    LVL 9

    Expert Comment

    In order to get graphic result you should use the MRTG
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now