andrew@budjik-pi1:~ $ pm2 logs netwatch-primary --lines 20
[TAILING] Tailing last 20 lines for [netwatch-primary] process (change the value with --lines option)
/home/andrew/NetPingMonitor/logs/primary-err-0.log last 20 lines:
0|netwatch | 2025-10-16T15:04:11:     }
0|netwatch | 2025-10-16T15:04:11:   }
0|netwatch | 2025-10-16T15:04:11: }
0|netwatch | 2025-10-16T19:21:51: Failed to start monitoring: PostgresError: password authentication failed for user "netwatch"
0|netwatch | 2025-10-16T19:21:51:     at ErrorResponse (file:///home/andrew/NetPingMonitor/node_modules/postgres/src/connection.js:794:26)
0|netwatch | 2025-10-16T19:21:51:     at handle (file:///home/andrew/NetPingMonitor/node_modules/postgres/src/connection.js:480:6)
0|netwatch | 2025-10-16T19:21:51:     at Socket.data (file:///home/andrew/NetPingMonitor/node_modules/postgres/src/connection.js:315:9)
0|netwatch | 2025-10-16T19:21:51:     at Socket.emit (node:events:524:28)
0|netwatch | 2025-10-16T19:21:51:     at addChunk (node:internal/streams/readable:561:12)
0|netwatch | 2025-10-16T19:21:51:     at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
0|netwatch | 2025-10-16T19:21:51:     at Readable.push (node:internal/streams/readable:392:5)
0|netwatch | 2025-10-16T19:21:51:     at TCP.onStreamRead (node:internal/stream_base_commons:191:23) {
0|netwatch | 2025-10-16T19:21:51:   severity_local: 'FATAL',
0|netwatch | 2025-10-16T19:21:51:   severity: 'FATAL',
0|netwatch | 2025-10-16T19:21:51:   code: '28P01',
0|netwatch | 2025-10-16T19:21:51:   file: 'auth.c',
0|netwatch | 2025-10-16T19:21:51:   line: '329',
0|netwatch | 2025-10-16T19:21:51:   routine: 'auth_failed'
0|netwatch | 2025-10-16T19:21:51: }
0|netwatch | 2025-10-16T21:00:36: Traceroute error: spawn traceroute ENOENT

/home/andrew/NetPingMonitor/logs/primary-out-0.log last 20 lines:
0|netwatch | 2025-10-16T21:10:08: Anomaly detection complete. Found 2 potential anomalies.
0|netwatch | 2025-10-16T21:10:09: Using TCP connectivity test for 192.168.5.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:09: Using TCP connectivity test for 1.1.1.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:10: Using TCP connectivity test for 192.168.5.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:10: WebSocket client connected
0|netwatch | 2025-10-16T21:10:10: Using TCP connectivity test for 1.1.1.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:11: Using TCP connectivity test for 192.168.5.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:11: Using TCP connectivity test for 1.1.1.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:12: Using TCP connectivity test for 192.168.5.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:12: Using TCP connectivity test for 1.1.1.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:13: Using TCP connectivity test for 192.168.5.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:13: Using TCP connectivity test for 1.1.1.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:13: Using TCP connectivity test for 192.168.5.124 (ICMP not available)
0|netwatch | 2025-10-16T21:10:14: Using TCP connectivity test for 192.168.5.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:14: Using TCP connectivity test for 1.1.1.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:15: Using TCP connectivity test for 192.168.5.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:15: Using TCP connectivity test for 1.1.1.1 (ICMP not available)
0|netwatch | 2025-10-16T21:10:16: Using TCP connectivity test for 192.168.5.1 (ICMP not available)