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
{
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