feat: 新增设备巡检模块实现完整的巡检告警功能
新增设备巡检模块核心功能,包括: - 巡检数据存储与调度系统 - 华为/H3C交换机及Linux服务器采集器 - 设备扩展配置与告警规则管理 - 主机详情页巡检配置入口 - 产品名称自定义设置功能 - 网络设备SSH exec通道兼容处理
This commit is contained in:
@@ -345,6 +345,31 @@ function createStartSessionApi(ctx) {
|
||||
: false,
|
||||
cols: options.cols || 80,
|
||||
rows: options.rows || 24,
|
||||
// Reusable auth bag for background companion connections (network
|
||||
// device stats PTY shell, etc.). Only non-sensitive fields that the
|
||||
// moshStatsConnection helper also needs — do NOT store the raw options
|
||||
// object here (it contains callbacks, DOM refs, and other non-serializable
|
||||
// junk). This is deliberately best-effort: any auth field missing here
|
||||
// just means the companion skips and stats stay empty — the interactive
|
||||
// shell keeps working regardless.
|
||||
_statsAuth: {
|
||||
hostname: options.host || options.hostname || '',
|
||||
port: options.port || 22,
|
||||
username: options.username || '',
|
||||
password: typeof options.password === 'string' ? options.password : undefined,
|
||||
privateKey: typeof options.privateKey === 'string' ? options.privateKey : undefined,
|
||||
passphrase: typeof options.passphrase === 'string' ? options.passphrase : undefined,
|
||||
authMethod: options.authMethod || undefined,
|
||||
knownHosts: Array.isArray(options.knownHosts) ? options.knownHosts : undefined,
|
||||
verifyHostKeys: options.verifyHostKeys !== false,
|
||||
legacyAlgorithms: !!options.legacyAlgorithms,
|
||||
skipEcdsaHostKey: !!options.skipEcdsaHostKey,
|
||||
algorithmOverrides: options.algorithmOverrides,
|
||||
useSshAgent: options.useSshAgent,
|
||||
identityAgent: options.identityAgent,
|
||||
certificate: typeof options.certificate === 'string' ? options.certificate : undefined,
|
||||
keyId: typeof options.keyId === 'string' ? options.keyId : undefined,
|
||||
},
|
||||
};
|
||||
const { claimSessionSlot } = require("../sessionBootEpoch.cjs");
|
||||
const claim = claimSessionSlot(sessions, sessionId, session, options.bootEpoch);
|
||||
|
||||
Reference in New Issue
Block a user