Nextcloud, NetBox and n8n integrations
Three read-only integrations, each with a monitoring page, alerts, maintenance silencing and held-when-unreadable handling. Nextcloud: database needing upgrade (critical), maintenance mode, and the data disk running low; users, files and app updates with an admin app password. NetBox: no background worker running, counts, and a list of the servers this app manages that have no address in NetBox (a list, not an alert). n8n: an active workflow whose last run failed, clearing when it next succeeds. Disk messages for Immich, Paperless and Nextcloud now use the same units as the pages that show them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a16996d975
commit
4ff0b44943
46 files changed
+10137
-10
No files matched your search
+73
-1
@@ -1228,6 +1228,69 @@ export interface JellyfinInfo {
|
||||
problems: { key: string; message: string; severity: "warning" | "critical" }[];
|
||||
}
|
||||
|
||||
/** One Nextcloud, as its page shows it. */
|
||||
export interface NextcloudInfo {
|
||||
id: number;
|
||||
name: string;
|
||||
enabled: boolean;
|
||||
status: { at: string; ok: boolean; error: string | null } | null;
|
||||
fresh: boolean;
|
||||
state: {
|
||||
version: string | null;
|
||||
maintenance: boolean;
|
||||
needsUpgrade: boolean;
|
||||
/** Whether the monitoring app answered (an administrator's app password is needed). */
|
||||
detail: boolean;
|
||||
freeBytes: number | null;
|
||||
users: number | null;
|
||||
files: number | null;
|
||||
active24h: number | null;
|
||||
appUpdates: number | null;
|
||||
updatedAt: string;
|
||||
} | null;
|
||||
problems: { key: string; message: string; severity: "warning" | "critical" }[];
|
||||
}
|
||||
|
||||
/** One NetBox, as its page shows it. */
|
||||
export interface NetBoxInfo {
|
||||
id: number;
|
||||
name: string;
|
||||
enabled: boolean;
|
||||
status: { at: string; ok: boolean; error: string | null } | null;
|
||||
fresh: boolean;
|
||||
state: {
|
||||
version: string | null;
|
||||
/** Null when NetBox did not say. */
|
||||
workersRunning: number | null;
|
||||
devices: number | null;
|
||||
virtualMachines: number | null;
|
||||
prefixes: number | null;
|
||||
ipAddresses: number | null;
|
||||
/** The servers this app manages that have no address in NetBox; null when NetBox's addresses could not be listed. */
|
||||
missing: { id: number; name: string; ips: string[] }[] | null;
|
||||
/** NetBox has more addresses than were read, so what is missing may be among the rest. */
|
||||
truncated: boolean;
|
||||
updatedAt: string;
|
||||
} | null;
|
||||
problems: { key: string; message: string; severity: "warning" | "critical" }[];
|
||||
}
|
||||
|
||||
/** One n8n, as its page shows it. */
|
||||
export interface N8nInfo {
|
||||
id: number;
|
||||
name: string;
|
||||
enabled: boolean;
|
||||
status: { at: string; ok: boolean; error: string | null } | null;
|
||||
fresh: boolean;
|
||||
state: {
|
||||
workflows: { id: string; name: string; active: boolean; lastStatus: string | null; lastAt: string | null; failed24h: number }[];
|
||||
/** False when the runs could not be asked: the last outcomes are then unknown. */
|
||||
executionsKnown: boolean;
|
||||
updatedAt: string;
|
||||
} | null;
|
||||
problems: { key: string; message: string; severity: "warning" | "critical" }[];
|
||||
}
|
||||
|
||||
/** One Paperless-ngx, as its page shows it. */
|
||||
export interface PaperlessInfo {
|
||||
id: number;
|
||||
@@ -2243,7 +2306,7 @@ export interface ManualTaskInput {
|
||||
enabled?: boolean;
|
||||
}
|
||||
|
||||
export type IntegrationType = "proxmox" | "synology" | "semaphore" | "tailscale" | "gitea" | "dockhand" | "uptimekuma" | "phpipam" | "pbs" | "osticket" | "unifi" | "npm" | "homeassistant" | "ups" | "jellyfin" | "authentik" | "prometheus" | "immich" | "paperless";
|
||||
export type IntegrationType = "proxmox" | "synology" | "semaphore" | "tailscale" | "gitea" | "dockhand" | "uptimekuma" | "phpipam" | "pbs" | "osticket" | "unifi" | "npm" | "homeassistant" | "ups" | "jellyfin" | "authentik" | "prometheus" | "immich" | "paperless" | "nextcloud" | "netbox" | "n8n";
|
||||
|
||||
export interface IntegrationField {
|
||||
key: string;
|
||||
@@ -2790,6 +2853,15 @@ export const api = {
|
||||
update: (id: number, data: ServiceLevelInput) => request<{ ok: boolean }>(`/api/service-levels/${id}`, { method: "PUT", body: JSON.stringify(data) }),
|
||||
remove: (id: number) => request<void>(`/api/service-levels/${id}`, { method: "DELETE" }),
|
||||
},
|
||||
nextcloud: {
|
||||
list: () => request<{ nextclouds: NextcloudInfo[] }>("/api/nextcloud"),
|
||||
},
|
||||
netbox: {
|
||||
list: () => request<{ netboxes: NetBoxInfo[] }>("/api/netbox"),
|
||||
},
|
||||
n8n: {
|
||||
list: () => request<{ n8ns: N8nInfo[] }>("/api/n8n"),
|
||||
},
|
||||
paperless: {
|
||||
list: () => request<{ paperlesses: PaperlessInfo[] }>("/api/paperless"),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user