aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README4
-rw-r--r--TODO10
-rw-r--r--monitorrc38
3 files changed, 27 insertions, 25 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..9ff867e
--- /dev/null
+++ b/README
@@ -0,0 +1,4 @@
1This is a simple monitoring program that will run a list of commands
2periodically or continuously (like tail -f)
3
4Still in early development
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..b04335b
--- /dev/null
+++ b/TODO
@@ -0,0 +1,10 @@
1- sudo commands (ask for password)
2- config in different places
3- adding/removing entries directly from the program
4- keep previous buffers for oneshot commands
5- custom key bindings (and informations in the window)
6- Man file
7- Check correctness of entries in config file (and capitalization)
8- Key to force window update
9- Customization of window size
10- ~Internationalization
diff --git a/monitorrc b/monitorrc
index f2f6ca9..991714a 100644
--- a/monitorrc
+++ b/monitorrc
@@ -1,35 +1,23 @@
1[journalctl_err]
2Name = Journalctl errors
3Command = "journalctl --full -f -p4"
4Type = continuous
5Buffer = 5000
6
1[journalctl] 7[journalctl]
2Name = Journalctl bla bla bla bla bla bla bla 8Name = Journalctl
3Command = "journalctl --full -f" 9Command = "journalctl --full -f"
4Buffer = 100
5Type = continuous 10Type = continuous
11Buffer = 7000
6 12
7[tinc_check] 13[tinc_check]
8Name = Tinc 14Name = Tinc
9Command = "tinc_check_connect" 15Command = "tinc_check_connect"
10Type = oneshot 16Type = oneshot
11Periodic = 10 17Periodic = 600
12
13[test]
14Name = Test
15Command = "cat monitorrc"
16Type = oneshot
17Periodic = 10
18
19[lsR]
20Name = lsR
21Command = "ls -1 /var/named /etc/zsh"
22Type = oneshot
23Periodic = 10
24
25[test2]
26Name = Test
27Command = "cat monitorrc"
28Type = oneshot
29Periodic = 10
30 18
31[lsR2] 19[fail2ban_check]
32Name = Test bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla 20Name = Fail2ban
33Command = "ls -1 /var/named /etc/zsh" 21Command = "fail2ban_check"
34Type = oneshot 22Type = oneshot
35Periodic = 10 23Periodic = 60