mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-14 12:01:52 +00:00
Added agent TCP close tracking.
This commit is contained in:
parent
41834020a0
commit
dfbaab7c24
2 changed files with 5 additions and 1 deletions
|
@ -477,7 +477,10 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
||||||
}
|
}
|
||||||
obj.close(0);
|
obj.close(0);
|
||||||
});
|
});
|
||||||
// ws._socket._parent.on('close', function (req) { if (obj.nodeid != null) { parent.parent.debug(1, 'Agent TCP disconnect ' + obj.nodeid + ' (' + obj.remoteaddrport + ')'); } });
|
ws._socket._parent.on('close', function (req) {
|
||||||
|
parent.agentStats.agentTcpClose++;
|
||||||
|
//if (obj.nodeid != null) { parent.parent.debug(1, 'Agent TCP disconnect ' + obj.nodeid + ' (' + obj.remoteaddrport + ')'); }
|
||||||
|
});
|
||||||
|
|
||||||
// Start authenticate the mesh agent by sending a auth nonce & server TLS cert hash.
|
// Start authenticate the mesh agent by sending a auth nonce & server TLS cert hash.
|
||||||
// Send 384 bits SHA384 hash of TLS cert public key + 384 bits nonce
|
// Send 384 bits SHA384 hash of TLS cert public key + 384 bits nonce
|
||||||
|
|
|
@ -242,6 +242,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
||||||
obj.agentStats = {
|
obj.agentStats = {
|
||||||
createMeshAgentCount: 0,
|
createMeshAgentCount: 0,
|
||||||
agentClose: 0,
|
agentClose: 0,
|
||||||
|
agentTcpClose: 0,
|
||||||
agentBinaryUpdate: 0,
|
agentBinaryUpdate: 0,
|
||||||
coreIsStableCount: 0,
|
coreIsStableCount: 0,
|
||||||
verifiedAgentConnectionCount: 0,
|
verifiedAgentConnectionCount: 0,
|
||||||
|
|
Loading…
Reference in a new issue