You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,16 @@ Features:
10
10
11
11
## Usage
12
12
13
-
Example usage that monitors memory usage by checking every 2 seconds, sends a notification when memory usage is above 80% and will not send another notification until after 60 seconds.
13
+
Example usage that monitors memory usage by checking every 2 seconds, sends a notification when memory usage is above 80% and will not send another notification until after 10 seconds.
14
14
15
15
```bash
16
-
notifymem -threshold 80 -delay 60 -interval 2
16
+
notifymem -threshold 80 -delay 10 -interval 2
17
+
```
18
+
19
+
Run a test which will check memory usage and send a test notification:
20
+
21
+
```bash
22
+
notifymem -test
17
23
```
18
24
19
25
## Installation
@@ -25,14 +31,15 @@ Next, create a systemd service file in `/etc/systemd/system/notifymem.service` w
25
31
```ini
26
32
[Unit]
27
33
Description=notifymem service: notify when memory usage reaches a threshold
0 commit comments