D
D
Dmitry Bannik2015-07-18 19:08:50
HTML
Dmitry Bannik, 2015-07-18 19:08:50

How to output the result of atop to a text file?

How to output the result of the program atop -r -b 01:20to a text file
I tried this:
atop -r -b 01:20 > atop.txt
it did not work. Writes cyclically without interruption, which clogs the file with repeating information.
Answer to the question:

atop -r /var/log/atop/atop_YYYYMMDD -b hh:mm -e hh:mm > put_log_here

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
lagudal, 2018-12-02
@lagudal

svg is the easiest.

B
Beliyadm, 2018-12-02
@beliyadm

As they wrote above, SVG or just a background image with 3-5 conditions for media queries for different resolutions (in my opinion, this is easier to implement)

Y
Yusif Zourab, 2018-12-03
@iLegion

I'll add to the options above. It is also possible that multiple background layers are used.

<div class="sample1">
    <div class="sea">
        <div class="mermaid"><div class="fishing"></div></div>                
        <div class="fish"></div>
    </div>
</div>

.sample1 .sea, .sample1 .mermaid, .sample1 .fishing {
    height:300px;
    width:480px;
    position: relative;
}
            
.sample1 .sea {
    background: url(media/sea.png) repeat-x top left;          
}
            
.sample1 .mermaid {
    background: url(media/mermaid.svg) repeat-x bottom left;
}
        
.sample1 .fish {
    background: url(media/fish.svg) no-repeat;
    height:70px;
    width:100px;
    left: 30px;
    top: 90px;
    position: absolute;
}
            
.sample1 .fishing {
    background: url(media/fishing.svg) no-repeat top right 10px;
}

S
sim3x, 2015-07-18
@sim3x

every 80 sec write to file

To  monitor the system load and write it to a file (in plain ASCII) with an inter‐
val of one minute during half an hour with active processes sorted on memory  con‐
sumption:

         atop -M 60 30 > /log/atop.mem

atop  [-g|-m|-d|-n|-u|-p|-s|-c|-v|-o] [-C|-M|-D|-N|-A] [-af1x] [-L linelen] [-Plabel[,label]...]  [ interval [ samples ]]

atop  [ interval [ samples ]]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question