AKiPS Events
Tasks and triggers for AKiPS events.
Enterprise AKiPS tasks and trigger to read devices, interfaces, states, events and time series from the AKiPS network monitoring platform.
Automate read-only data collection from AKiPS: list monitored devices and interfaces, read their up/down state and time series, list events or start a flow on every new event, and run read-only database commands. Authenticates with an application token or the legacy api-ro account, verifies TLS with an optional custom CA, and can store large results in internal storage.
Read devices, interfaces, up/down states, events and time series from AKiPS network monitoring in Kestra flows. Every reply is parsed into structured rows, and large estates can be stored in internal storage. All tasks are read-only.
API_DISABLED.api-ro user and its password. Never use api-rw.All tasks and the trigger share these connection properties:
url (required): AKiPS server URL, for example https://akips.example.com. It may carry a path prefix but no user info, query string or fragment (rejected before any request); requests always go to its api-db endpoint. Use https: with an http URL the token or password is sent unencrypted and a warning is logged.token: application token, sent as Authorization: Bearer <token>.username and password: legacy account. username defaults to api-ro. The password is sent in the body of a POST request, never in the URL.token or password. Both, or neither, is rejected before any request.caPem: PEM of the CA that signed the AKiPS certificate. TLS verification is always on for https URLs; with caPem only that CA is trusted and the host name must match the certificate. Without it the worker trust store is used. The custom-CA transport does not go through Kestra's HTTP client, so it is not subject to the instance HTTP allow and deny lists, and only the timeouts of options apply. options.ssl.insecureTrustAllCertificates exists for tests only.options: HTTP client overrides (timeouts, proxy). Redirects are never followed.Store token and password in secrets and set connection properties once for all tasks with plugin defaults.
Failures are raised as AkipsException with a kind, and the message names the AKiPS host but never a credential:
UNREACHABLE: connection, timeout, TLS or unexpected HTTP failure.AUTHENTICATION_REFUSED: invalid, expired or missing token or password (including HTTP 401).PERMISSION_DENIED: the token has no read access to the database API (including HTTP 403).API_DISABLED: the web API is turned off on the server.INVALID_COMMAND: AKiPS rejected the command, or db.Query refused it before sending.List tasks share fetchType: FETCH (default, rows in the outputs), FETCH_ONE, STORE (rows streamed to an ION file in internal storage, output uri) or NONE (only size). AKiPS has no pagination, so use STORE for large estates. Outputs are size and rows, row or uri depending on fetchType.
Regex properties accept a name, * or an AKiPS regex such as /^nyc-.*-rtr/, and must not contain whitespace, ; or quotes. groups and groupMatch (ANY, ALL, NOT) filter on AKiPS groups.
device.List: one row per device with ip4addr, ip6addr, sysName, sysDescr, sysObjectID, sysLocation, sysContact and groups. Properties: deviceRegex, groups, groupMatch.interfaces.List: one row per interface with index, description and the requested attributes (default ifName, ifDescr, ifAlias, ifHighSpeed, ifSpeed, ifAdminStatus, ifOperStatus); enumerated attributes also give <attribute>LastChange. Plain integer values (index, ifHighSpeed, ifSpeed, ...) are numbers, while ifName, ifDescr, ifAlias and description are always text. Properties: deviceRegex, interfaceRegex, attributes, groups, groupMatch.state.List: one row per device, child and enumerated attribute with state, stateCode (integer), createdAt and lastChange. Properties: attributes (default PING.icmpState, SNMP.snmpState, IF-MIB.ifOperStatus), downOnly, deviceRegex, childRegex, groups, groupMatch.series.Get: time series through cseries, one row per device, child and interval with time, epoch and value. Properties: attribute (required), device, child, timeFilter, intervalSeconds, aggregation (AVG or TOTAL), groups, groupMatch.event.List: events in chronological order with time, epoch, device, child, attribute, kind, flags, value and childDescription. Properties: timeFilter, eventType (ALL, CRITICAL, ENUM, THRESHOLD, UPTIME), deviceRegex, childRegex, attributeRegex, groups, groupMatch.db.Query: runs commands (a list, one command per item). Only the commands the api-ro user may run are accepted: aggregate, calc, check, count, cseries, get, list, mcalc, mget, mgroup, mlist, mtime, mtype, netmask, rget, series, tf, tget, top, tz. Anything else fails with INVALID_COMMAND before a request is sent. Known reply shapes become rows, other replies one line row per line.device.List and interfaces.List read devices in batches of at most 100 (an anchored regex of the batch names per command) and write the rows of each batch before reading the next, so STORE stays bounded on large estates. Only the device names are held for the whole run. The other list tasks stream the single reply they send.
timeFilter takes an AKiPS time filter: relative (last1h, today, lastweek) or absolute (from 1732400000 to now, in epoch seconds). Filters with spaces are quoted automatically. lastNd is calendar-relative, so last1d means today.
event.Trigger polls for new events every interval (default PT5M) and starts one execution with the events not delivered yet, oldest first. Outputs: size and rows, available as {{ trigger.size }} and {{ trigger.rows }}. Key properties: eventType, deviceRegex, childRegex, attributeRegex, groups, groupMatch, since, maxEvents (default 500, between 1 and 10000; the trigger stops reading the reply once it has enough events, keeping all events of the last second).
since (for example last1h) to also deliver earlier events.