From 58776c386eb5792ac4122c1ed30014395cbb495d Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Sun, 9 Apr 2017 17:14:16 -0400 Subject: [PATCH] Small updates to the README summary --- README | 19 +++++++++++++++++-- TODO | 1 - etc/bdsm/bdsm.conf | 4 ---- etc/bdsm/processors/file.processor | 2 +- etc/bdsm/processors/sqlite3.processor | 3 ++- 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/README b/README index 3d92685..05d42fd 100644 --- a/README +++ b/README @@ -2,16 +2,31 @@ bdsm A Slightly Cyberpunk project [git|www].slightlycyberpunk.com -bdsm is the Bash Daemon for System Monitoring, a truly agentless system monitoring and administration tool for Linux and Unix systems. +bdsm is the Bash Daemon for System Monitoring, a truly agentless system +monitoring and administration tool for Linux and Unix systems. Rather than +installing specific client software on each individual host, or resorting +to only monitoring basic service information through web requests, bdsm +uses a persistant SSH tunnel and the existing unix monitoring services +such as vmstat, iostat, sensors, and others to provide detailed monitoring +of virtually any unix systems. It is easily extended to different system +architectures and different tools and shell environments through a +series of plugin module scripts. + +Doing this kind of monitoring through a shell environment does create +significant overhead, and bdsm is not recommended any production uses. +It may be useful for certain niche hardware and software applications, +and as an experiment in shell scripting. 0) PREREQUISITES a) A GNU system b) bash +c) (additional requirements based on the monitoring plugins selected) 1) INSTALLATION INSTRUCTIONS -Create a new user named bdsm and clone the repository into this user's home directory. +Create a new user named bdsm and clone the repository into this user's home +directory. 2) CONFIGURATION diff --git a/TODO b/TODO index d6a806f..a98e2a8 100644 --- a/TODO +++ b/TODO @@ -2,7 +2,6 @@ TODO BUGFIXES: - Confirm configure correctly adds/removes services - - Processor rejection of malfomed records / prevent malformed records PLUGINS: diff --git a/etc/bdsm/bdsm.conf b/etc/bdsm/bdsm.conf index f7ecb56..e69de29 100644 --- a/etc/bdsm/bdsm.conf +++ b/etc/bdsm/bdsm.conf @@ -1,4 +0,0 @@ -generic:bdsm -{ - vmstat(5); -} diff --git a/etc/bdsm/processors/file.processor b/etc/bdsm/processors/file.processor index 4b3f308..316776e 100755 --- a/etc/bdsm/processors/file.processor +++ b/etc/bdsm/processors/file.processor @@ -41,7 +41,7 @@ help() start() { - cat /home/bdsm/in.fifo >> /home/bdsm/bdsm.out & + cat /home/bdsm/in.fifo | grep '.*|.*|.*|.*' >> /home/bdsm/bdsm.out & echo $! > /home/bdsm/pids/file.processor.pid } diff --git a/etc/bdsm/processors/sqlite3.processor b/etc/bdsm/processors/sqlite3.processor index d731cf4..97ff850 100755 --- a/etc/bdsm/processors/sqlite3.processor +++ b/etc/bdsm/processors/sqlite3.processor @@ -43,8 +43,9 @@ start() { journal_mode="`sqlite3 $CONFIG_PATH/bdsm.db 'PRAGMA journal_mode;'`" if [ "$journal_mode" != "wal" ]; then - sqlite3 $CONFIG_PATH/bdsm.db "PRAGMA journal_mode;" + sqlite3 $CONFIG_PATH/bdsm.db "PRAGMA journal_mode='wal';" fi + sqlite3 $CONFIG_PATH/bdsm.db "PRAGMA SQLITE_DEFAULT_WAL_AUTOCHECKPOINT = 100;" sqlite3 $CONFIG_PATH/bdsm.db "SELECT 1 FROM MEASUREMENTS" 2>/dev/null 1>&2 if [ $? -eq 1 ]; then -- 1.8.3.1