feat: 新增设备巡检模块实现完整的巡检告警功能

新增设备巡检模块核心功能,包括:
- 巡检数据存储与调度系统
- 华为/H3C交换机及Linux服务器采集器
- 设备扩展配置与告警规则管理
- 主机详情页巡检配置入口
- 产品名称自定义设置功能
- 网络设备SSH exec通道兼容处理
This commit is contained in:
2026-10-09 10:37:48 +08:00
parent 9202506c46
commit c64e00d835
75 changed files with 12087 additions and 446 deletions

View File

@@ -41,6 +41,8 @@ import {
type AsidePanelResizeProps,
} from "./ui/aside-panel";
import { HostDetailsAdvancedSections } from "./HostDetailsAdvancedSections";
import { HostInspectionSection } from "./inspection/HostInspectionSection";
import { InspectionErrorBoundary } from "./inspection/InspectionErrorBoundary";
import { detachEffectiveHostIdentity, HostDetailsConnectionSections } from "./HostDetailsConnectionSections";
import {
LINUX_DISTRO_OPTION_IDS,
@@ -1157,6 +1159,18 @@ const HostDetailsPanel: React.FC<HostDetailsPanelPropsWithResize> = ({
clearProxyConfig={clearProxyConfig}
/>
{/* 巡检配置区 - 仅编辑已有主机时显示 */}
{initialData?.id && (
<InspectionErrorBoundary>
<HostInspectionSection
hostId={initialData.id}
hostLabel={form.label || initialData.label || "未命名"}
host={form}
keys={availableKeys}
/>
</InspectionErrorBoundary>
)}
<div className="flex items-center gap-3 py-2">
<div className="flex-1 h-px bg-border/60" />
<span className="text-xs text-muted-foreground">{t("hostDetails.otherProtocols")}</span>