thinknagent 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Readme.md +12 -12
  2. package/package.json +1 -1
package/Readme.md CHANGED
@@ -20,7 +20,7 @@ npm install -g thinknagent
20
20
 
21
21
  **If permission denied:**
22
22
  ```bash
23
- chmod +x $(which thinknagent)
23
+ chmod +x (which thinknagent)
24
24
  ```
25
25
 
26
26
  ---
@@ -55,7 +55,7 @@ chmod +x $(which thinknagent)
55
55
  **Basic (metrics only):**
56
56
  ```bash
57
57
  thinknagent init \
58
- --server https://thinkncollab.com \
58
+ --server YOUR_APP_SERVER \
59
59
  --name my-server \
60
60
  --room <roomId>
61
61
  ```
@@ -63,29 +63,29 @@ thinknagent init \
63
63
  **With log streaming:**
64
64
  ```bash
65
65
  thinknagent init \
66
- --server https://thinkncollab.com \
66
+ --server YOUR_APP_SERVER \
67
67
  --name my-server \
68
68
  --room <roomId> \
69
- --logs /var/log/syslog,/var/log/nginx/access.log,/var/log/nginx/error.log
69
+ --logs <YOUR_LOG_FILE>
70
70
  ```
71
71
 
72
72
  **With PM2 app logs:**
73
73
  ```bash
74
74
  thinknagent init \
75
- --server https://thinkncollab.com \
75
+ --server YOUR_APP_SERVER \
76
76
  --name my-server \
77
77
  --room <roomId> \
78
- --logs /home/ubuntu/.pm2/logs/thinkncollab-out.log,/home/ubuntu/.pm2/logs/thinkncollab-error.log
78
+ --logs <YOUR_PM2_LOG_FILE>
79
79
  ```
80
80
 
81
81
  **With GPU metrics:**
82
82
  ```bash
83
83
  thinknagent init \
84
- --server https://thinkncollab.com \
84
+ --server YOUR_APP_SERVER \
85
85
  --name my-server \
86
86
  --room <roomId> \
87
87
  --gpu \
88
- --logs /var/log/syslog
88
+ --logs <YOUR_SYS_LOG_FILE>
89
89
  ```
90
90
 
91
91
  Get your `roomId` from the room URL:
@@ -137,8 +137,8 @@ Stream any log file to the DevOps Wall in real-time:
137
137
  /var/log/auth.log # auth/ssh
138
138
  /var/log/nginx/access.log # nginx access
139
139
  /var/log/nginx/error.log # nginx errors
140
- /home/ubuntu/.pm2/logs/thinkncollab-out.log # pm2 stdout
141
- /home/ubuntu/.pm2/logs/thinkncollab-error.log # pm2 stderr
140
+ /home/ubuntu/.pm2/logs/app-out.log # pm2 stdout
141
+ /home/ubuntu/.pm2/logs/app-error.log # pm2 stderr
142
142
  ```
143
143
 
144
144
  Pass multiple paths comma-separated:
@@ -206,7 +206,7 @@ Location: `~/.thinknagent/config.json` (permissions: 600)
206
206
  ```json
207
207
  {
208
208
  "agentId": "uuid-v4",
209
- "serverUrl": "https://thinkncollab.com",
209
+ "serverUrl": "ur.server.url",
210
210
  "name": "my-server",
211
211
  "roomId": "your-room-id",
212
212
  "agentToken": "sha256-hmac-signed-token",
@@ -241,7 +241,7 @@ pm2 startup
241
241
 
242
242
  **Using systemd:**
243
243
  ```bash
244
- sudo nano /etc/systemd/system/thinknagent.service
244
+ sudo nano /etc/systemd/system/app.service
245
245
  ```
246
246
 
247
247
  ```ini
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinknagent",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "ThinkNCollab server agent — metrics, logs, alerts, shell bridge",
5
5
  "main": "lib/agent.js",
6
6
  "bin": {