Search Results

Search: Posts Made By: unplugme71
2,466
Posted By unplugme71
I've tried vnstat -i eth0 --oneline before but it...
I've tried vnstat -i eth0 --oneline before but it only printed today and the current month. Is there a way to print the prior day?
2,466
Posted By unplugme71
Convert vnstat log to csv
My goal is to log daily network activity (rx/tx) from each ethernet interface.

I installed vnstat, and while it reports daily and monthly stats, it doesn't offer a nice way to convert to csv to...
6,757
Posted By unplugme71
Good point. I'll run both hourly. Is there a way...
Good point. I'll run both hourly. Is there a way to merge the hourly files into one per day?
6,757
Posted By unplugme71
The first script kicks off once per day and runs...
The first script kicks off once per day and runs every 5 minutes for 288 times. How can I combine both?

From what I read, if I just run 'sar' it gives me an average CPU since last reboot. Not...
6,757
Posted By unplugme71
Here's what I have so far for the entire process....
Here's what I have so far for the entire process.

crontab -e

0 0 * * * /scripts/collect_cpu.sh
0 * * * * /scripts/process_cpu.sh



collect_cpu.sh
#!/bin/bash

sar -u 300 288 >>...
6,757
Posted By unplugme71
Awesome! That worked. ---------- Post...
Awesome! That worked.

---------- Post updated at 12:38 PM ---------- Previous update was at 12:06 PM ----------

What about time conversion from 12 to 24hr?
6,757
Posted By unplugme71
Thank you both for your replies. The OS i'm using...
Thank you both for your replies. The OS i'm using is Debian 8 x64.



Thank you again for this information. I was not aware about the other columns being part of the whole equation of cpu...
6,757
Posted By unplugme71
Parse log file to insert into database
I have a log file that's created daily by this command:

sar -u 300 288 >> /var/log/usage/$(date "+%Y-%m-%d")_$(hostname)_cpu.log

It that contains data like this:

Linux 3.16.0-4-amd64...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 07:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy