Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukaneren authored Nov 9, 2023
1 parent d8e7800 commit 3dc694e
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# monitoreng
The script records the CPU, RAM, and Swap usage of the device at specified intervals and stores the maximum and minimum data accessed during its runtime. Additionally, it generates logs when predetermined thresholds are exceeded.

# Usage
``` bash
chmod +x monitoreng.sh
./monitoreng.sh
```
Program produces output on /opt/monitoreng

``` bash
ls /opt/monitoreng
max-min-values.txt values.txt
```

``` bash
cat /opt/monitoreng/max-min-values
Max-CPU-Value: 7%
Min-CPU-Value: 0%
Max-RAM-Value: 12%
Min-RAM-Value: 10%
Max-Swap-Value: 0%
Min-Swap-Value: 0%
```

```bash
cat /opt/monitoreng/values
Date: 2023-11-10_01-04-50
CPU Usage: 7%
RAM Usage: 12%
Swap Usage: 0%
---
Date: 2023-11-10_01-04-54
CPU Usage: 3%
RAM Usage: 12%
Swap Usage: 0%
---
Date: 2023-11-10_01-04-57
CPU Usage: 2%
RAM Usage: 12%
Swap Usage: 0%
---
Date: 2023-11-10_01-05-00
CPU Usage: 1%
RAM Usage: 12%
Swap Usage: 0%
---
Date: 2023-11-10_01-05-03
CPU Usage: 3%
RAM Usage: 12%
Swap Usage: 0%
---

```

0 comments on commit 3dc694e

Please sign in to comment.