Reading the charts

  • I mean you, LOL. Really, Can someone help me with the graphs? What kind of information can i get from all this? What should I pay attention?


    MEMORY USAGE

    Zitat






    LOAD AVERAGE

    Zitat






    CPU USAGE

    Zitat






    ETH0 TRAFFIC

    Zitat






    DISK USAGE

    Zitat





    • Offizieller Beitrag

    The majority of the graphs (memory usage, disk usage) should ideally not be all red. Load average should be well under 1 unless you are doing transcoding or transferring a lot of information over a gigabit connection. eth0 traffic could be anything depending on how much information you are transferring to/from the server.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "ryecoaaron"

    The majority of the graphs (memory usage, disk usage) should ideally not be all red. Load average should be well under 1 unless you are doing transcoding or transferring a lot of information over a gigabit connection. eth0 traffic could be anything depending on how much information you are transferring to/from the server.


    I don't transcode, but I do unzip/unrar and i think that those load pikes are just that. I was wondering if there is a way to pull out from system how much I have transferred, like daily, weekly and montlhy. Like how much GBs I have downloaded and uploaded.


    And I'm a little confused about Disk Usage. I think that those numbers and graphs are telling me how much TB I once had and how much I'm using right now. It's just that, right, I'm not crazy?

    • Offizieller Beitrag

    There isn't a graph for transferred data. The ifconfig command will show you the total transferred since last reboot.


    The disk usage chart is showing that you are adding data over time. It shows you were using close to zero at the beginning of July (week 29) and now you are using close to 3 TB (week 33). The different charts are just zooming in to show you a small, most recent time period (that applies to all charts).

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "ryecoaaron"

    There isn't a graph for transferred data. The ifconfig command will show you the total transferred since last reboot.


    The disk usage chart is showing that you are adding data over time. It shows you were using close to zero at the beginning of July (week 29) and now you are using close to 3 TB (week 33). The different charts are just zooming in to show you a small, most recent time period (that applies to all charts).


    Hum... what about a cron job to save a txt with my daily transfers? Is it possible? Can you help me with that?

  • You could use an init script that is executed on shutdown.


    simple script would be like


    Code
    ifconfig eth0 >> /var/log/traffic.log


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

    • Offizieller Beitrag

    If you had a router running dd-wrt or tomato, you would have those numbers :) Here is mine from tomato:




    Like David said, I would add a cron job to run at midnight each night. If you want just data, you could narrow it down to:


    Code
    ifconfig eth0 | grep "RX bytes" >> /var/log/traffic.log


    This number will be the total though. If you shutdown or reboot in the middle of the day, it will be reset.

  • Zitat von "ryecoaaron"

    This number will be the total though. If you shutdown or reboot in the middle of the day, it will be reset.


    And thats why i suggessted an rc.d/init script that runs on shutdown.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

    • Offizieller Beitrag
    Zitat von "davidh2k"


    And thats why i suggessted an rc.d/init script that runs on shutdown.


    He wants daily transfers though. If you write to the log each night at midnight, you just have to subtract the amount from the previous entry to determine that day's usage. If you shutdown each day, then it would work great :)

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Bash
    #!/bin/sh
    
    
    traffic=`ifconfig eth0 | grep "RX bytes"`
    
    
    echo "$(date +%F_%T) | $traffic" >>/var/log/traffic.txt


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

    • Offizieller Beitrag

    Even better because that will show the date with the usage :)

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thats what I do with the temps of my hard disks that are attached to my 3ware controller.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Zitat von "davidh2k"
    Bash
    #!/bin/sh
    
    
    traffic=`ifconfig eth0 | grep "RX bytes"`
    
    
    echo "$(date +%F_%T) | $traffic" >>/var/log/traffic.txt


    Greetings
    David


    I know what it's doing and I know it's a script. I just don't have a clue where to put it.


    On a side note, the command saves this:

    Code
    RX bytes:1437772732395 (1.3 TiB)  TX bytes:247554670363 (230.5 GiB)


    Is there a way to make it saves this instead:

    Code
    RX bytes:1437772732395 (1.3 TiB);TX bytes:247554670363 (230.5 GiB);

    This way it can easily get converted into charts and spreadsheets ;)


    We should put all these constructive discussion on a single thread after we get things done ;)


    This is interesting

    • Offizieller Beitrag

    This will add the semi-colons you want.


    Bash
    #!/bin/bash
    
    
    traffic=`ifconfig eth0 | grep "RX bytes"`
    traffic=${traffic//)/);}
    
    
    echo "$(date +%F_%T) | $traffic" >>/var/log/traffic.txt


    You could save it in the /root/ directory.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "ryecoaaron"

    This will add the semi-colons you want.


    Bash
    #!/bin/bash
    
    
    traffic=`ifconfig eth0 | grep "RX bytes"`
    traffic=${traffic//)/);}
    
    
    echo "$(date +%F_%T) | $traffic" >>/var/log/traffic.txt


    You could save it in the /root/ directory.


    I save it like what? On windows I would save it as a ".bat" file and use scheduler to run it when I want it, but on Linux, I have no clue...


    Sorry to bother you with that. Should I save this as a ".sh" file?

    • Offizieller Beitrag

    Here is what you want to do:


    - Login via ssh as root
    - nano /root/net_usage.sh
    - Paste code into file
    - ctrl-O to save
    - ctrl-X to exit
    - chmod +x /root/net_usage.sh
    - Login to web interface and go to cron jobs tab
    - Pick minute as 0, hour as 0, user as root, command as /root/net_usage.sh
    - Click OK

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!


  • Changed

    Code
    echo "$(date +%F_%T) | $traffic" >>/var/log/traffic.txt

    into

    Code
    echo "$(date +%F_%T);$traffic" >>/var/log/traffic.txt


    But I'm still getting

    Code
    2013-08-12_17:27:31;          RX bytes:1444736809975 (1.3 TiB);  TX bytes:247789621639 (230.7 GiB);


    Lots of space between date-time. Can I remove all that space between date_time and RX or it's just something I gotta live with?

    • Offizieller Beitrag

    How's this? The first sed takes out ALL of the spaces. The second sed puts a space back in before each (. You can remove the second one if you don't need a space there.


    Bash
    #!/bin/bash
    
    
    traffic=`ifconfig eth0 | grep "RX bytes"`
    traffic=${traffic//)/);}
    traffic=$(sed -e 's/ \+//g' <<<"$traffic")
    traffic=$(sed -e 's/(/ (/g' <<<"$traffic")
    echo "$(date +%F_%T);$traffic" >>/var/log/traffic.txt


    My output is:


    Code
    2013-08-12_15:45:10;RXbytes:1816562499 (1.6GiB);TXbytes:2776300280 (2.5GiB);

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Zitat von "mizifih"

    Sorry to bother you with that. Should I save this as a ".sh" file?


    Unlike Windows, Unix does not care about the filetype by extension, but due to actual content. *.sh is a good way to save your shell files.


    Zitat von "mizifih"


    Can you share that!? I'd love to have a temp chart on top of that.


    Sure:


    smart3ware.sh


    Output looks like this:



    You can grep to see highest tempatures etc. pp.



    Side Note: Port 6 and 7 are no longer attached, but i still grab them as it does not generate any errors.


    Greetings
    David


    PS: I did not wrote the script myself, i made an early version myself and a friend from a LAN Party pimped it a 'bit'.

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!