File size: 523 Bytes
bad179a
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# scratch config: this computer + one unreachable ssh host, autopilot in dry run   usage: mkcfg.sh <dir>
rm -rf "$1"; mkdir -p "$1/ServerMonitorPy"
cat > "$1/ServerMonitorPy/servers.json" <<'JSON'
{"version": 1, "servers": [
 {"id": "local0000001", "name": "This computer", "group": "Local", "transport": 0, "autopilot": {"dryRun": true}},
 {"id": "dead00000001", "name": "Unreachable box", "group": "Test", "transport": 1, "host": "127.0.0.1", "port": 1, "user": "nobody", "autopilot": {"dryRun": true}}
]}
JSON