From: Immae Date: Sun, 8 Jun 2014 13:18:58 +0000 (+0200) Subject: TODO file and example monitor X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=27c20be31c9b1c88e1e4f55e86d0933782acf1e4;p=perso%2FImmae%2FProjets%2FRuby%2FMonitor.git TODO file and example monitor --- diff --git a/README b/README new file mode 100644 index 0000000..9ff867e --- /dev/null +++ b/README @@ -0,0 +1,4 @@ +This is a simple monitoring program that will run a list of commands +periodically or continuously (like tail -f) + +Still in early development diff --git a/TODO b/TODO new file mode 100644 index 0000000..b04335b --- /dev/null +++ b/TODO @@ -0,0 +1,10 @@ +- sudo commands (ask for password) +- config in different places +- adding/removing entries directly from the program +- keep previous buffers for oneshot commands +- custom key bindings (and informations in the window) +- Man file +- Check correctness of entries in config file (and capitalization) +- Key to force window update +- Customization of window size +- ~Internationalization diff --git a/monitorrc b/monitorrc index f2f6ca9..991714a 100644 --- a/monitorrc +++ b/monitorrc @@ -1,35 +1,23 @@ +[journalctl_err] +Name = Journalctl errors +Command = "journalctl --full -f -p4" +Type = continuous +Buffer = 5000 + [journalctl] -Name = Journalctl bla bla bla bla bla bla bla +Name = Journalctl Command = "journalctl --full -f" -Buffer = 100 Type = continuous +Buffer = 7000 [tinc_check] Name = Tinc Command = "tinc_check_connect" Type = oneshot -Periodic = 10 - -[test] -Name = Test -Command = "cat monitorrc" -Type = oneshot -Periodic = 10 - -[lsR] -Name = lsR -Command = "ls -1 /var/named /etc/zsh" -Type = oneshot -Periodic = 10 - -[test2] -Name = Test -Command = "cat monitorrc" -Type = oneshot -Periodic = 10 +Periodic = 600 -[lsR2] -Name = 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 -Command = "ls -1 /var/named /etc/zsh" +[fail2ban_check] +Name = Fail2ban +Command = "fail2ban_check" Type = oneshot -Periodic = 10 +Periodic = 60