0.0.18 • Published 5 months ago
@webtypen/monitor-client v0.0.18
@webtypen/monitor-client | $ wtm
Installation
$ npm install -g @webtypen/monitor-client
Usage
# Show current state
$ wtm status
# Start monitoring
$ wtm start
# Start stop
$ wtm stop
# Set Custom-Config-Path
$ wtm config.path /home/{USER}/wt_monitoring.json
# Show installed version
$ wtm version
Actions
Register an action:
...
"actions": {
"my_backup_action": {
"type": "backup.mongodb",
"database": "{MONGODB_DATABASE_NAME}",
"automation": { "mode": "daily", "times": ["18:30"] }
}
}
...
Manually run an action:
$ wtm run my_backup_action
Process Management
Register a process:
...
"processes": {
"api": {
"command": "cd /{PROJECT_DIR}/ && node app.js",
"autostart": true
}
}
...
Usage:
# Show process state
$ wtm process.status
# Start a process
$ wtm process.start {PROCESS_KEY}
# Restart a process
$ wtm process.restart {PROCESS_KEY}
# Stop a process
$ wtm process.stop {PROCESS_KEY}
0.0.18
5 months ago
0.0.17
6 months ago
0.0.16
6 months ago
0.0.15
7 months ago
0.0.14
7 months ago
0.0.13
7 months ago
0.0.12
7 months ago
0.0.11
7 months ago
0.0.10
7 months ago
0.0.9
7 months ago
0.0.8
7 months ago
0.0.7
7 months ago
0.0.6
7 months ago
0.0.5
7 months ago
0.0.4
7 months ago
0.0.3
7 months ago
0.0.2
7 months ago
0.0.1
7 months ago