LibreNMS MCP

v1.14.0
io.github.mhajder/librenms-mcp Checked 1 hour ago Published 2 days ago

MCP server for LibreNMS network monitoring - query devices, ports, alerts, and manage infrastructure

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

alerts_get Alerts Get

Get alerts from LibreNMS with optional filters.

ParameterTypeDescription
alert_ruleFilter alerts by alert rule ID. Optional.
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination
orderHow to order the output, default is by timestamp (descending). Can be appended by DESC or ASC to change the order. Optional.
severityFilter the alerts by severity. Valid values: ok, warning, critical. Optional.
stateFilter the alerts by state: 0 = ok, 1 = alert, 2 = ack. Optional.

alert_get_by_id Alert Get By Id

Get a specific alert from LibreNMS by ID.

ParameterTypeDescription
alert_id *integerThe ID of the alert to retrieve.

alert_acknowledge Alert Acknowledge

Acknowledge an alert in LibreNMS by ID.

ParameterTypeDescription
alert_id *integerAlert ID to acknowledge
noteOptional note to attach to the acknowledgement
until_clearIf true, acknowledge until the alert clears. If false, acknowledge only this instance.

alert_unmute Alert Unmute

Unmute an alert in LibreNMS by ID.

ParameterTypeDescription
alert_id *integerAlert ID to unmute

alert_rules_list Alert Rules List

List all alert rules from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

alert_rule_get Alert Rule Get

Get details for a specific alert rule by ID.

ParameterTypeDescription
rule_id *integerAlert rule ID

alert_rule_add Alert Rule Add

Add a new alert rule to LibreNMS.

ParameterTypeDescription
payload *objectAlert rule payload fields: - name (required): Rule name - builder (required): Rule builder JSON with conditions - devices (required): Array of device IDs or [-1] for all devices - severity (required):…

alert_rule_edit Alert Rule Edit

Edit an existing alert rule in LibreNMS.

ParameterTypeDescription
payload *objectAlert rule edit payload (must include rule_id field): - rule_id (required): Integer rule ID to edit. Without it LibreNMS would create a new rule, so the tool refuses the call. - name: Rule name - bu…

alert_rule_delete Alert Rule Delete

Delete an alert rule from LibreNMS by ID.

ParameterTypeDescription
rule_id *integerAlert rule ID to delete

alert_templates_list Alert Templates List

List all alert templates from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

alert_template_get Alert Template Get

Get a specific alert template from LibreNMS by ID.

ParameterTypeDescription
template_id *integerAlert template ID

alert_template_create Alert Template Create

Create a new alert template in LibreNMS.

ParameterTypeDescription
payload *objectAlert template payload fields: - name (required): Template name - template (required): Template body (Laravel Blade syntax) - title (required): Alert title template - title_rec (required): Recovery ti…

alert_template_edit Alert Template Edit

Edit an existing alert template in LibreNMS.

ParameterTypeDescription
payload *objectAlert template edit payload (must include template_id): - template_id (required): Integer template ID to edit. Without it LibreNMS would create a new template, so the tool refuses the call. - name (…

bills_list Bills List

List bills from LibreNMS with optional filters.

ParameterTypeDescription
custidCustomer ID filter
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination
periodOptional: previous to list previous period bills
refBill reference filter

bill_get Bill Get

Get a specific bill from LibreNMS by ID.

ParameterTypeDescription
bill_id *integerBill ID
periodOptional period=previous

bill_graph Bill Graph

Render a bill graph as an image. For the underlying numbers rather than a picture, use bill_graph_data.

ParameterTypeDescription
bill_id *integerBill ID
graph_type *stringGraph type for the current billing period: 'bits' (traffic) or 'monthly' (transfer per month)

bill_graph_data Bill Graph Data

Get bill graph data from LibreNMS.

ParameterTypeDescription
bill_id *integerBill ID
graph_type *stringGraph type for the current billing period: 'bits' (traffic) or 'monthly' (transfer per month)

bill_history Bill History

Get bill history from LibreNMS.

ParameterTypeDescription
bill_id *integerBill ID.
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

bill_history_graph Bill History Graph

Render a graph for a past billing period as an image. For the underlying numbers rather than a picture, use bill_history_graph_data.

ParameterTypeDescription
bill_id *integerBill ID
graph_type *stringGraph type for a past billing period: 'bits' (traffic), 'day' or 'hour' (transfer per day or hour)
history_id *integerBill history ID

bill_history_graph_data Bill History Graph Data

Get bill history graph data from LibreNMS.

ParameterTypeDescription
bill_id *integerBill ID
graph_type *stringGraph type for a past billing period: 'bits' (traffic), 'day' or 'hour' (transfer per day or hour)
history_id *integerBill history ID

bill_create_or_update Bill Create Or Update

Create or update a bill in LibreNMS.

ParameterTypeDescription
payload *objectBill payload fields: - bill_id (for updates only): Existing bill ID - bill_name (required for create): Bill name - ports (required for create): Array of port IDs to include - bill_type (required): "qu…

bill_delete Bill Delete

Delete a bill from LibreNMS by ID.

ParameterTypeDescription
bill_id *integerBill ID to delete

devices_list Devices List

List devices from LibreNMS with optional filters.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination
queryQuery parameters for filtering devices. Examples: - {"type": "hostname", "query": "router"} - search by hostname substring - {"type": "os", "query": "linux"} - filter by operating system - {"type": "l…

device_add Device Add

Add a new device to LibreNMS.

ParameterTypeDescription
payload *objectDevice add payload. Required and optional fields: - hostname (required): Device hostname or IP - version (optional): SNMP version (v1, v2c, v3). Default: v2c - community (required for v1/v2c): SNMP co…

device_get Device Get

Get device details from LibreNMS by hostname.

ParameterTypeDescription
hostname *stringDevice hostname

device_delete Device Delete

Delete a device from LibreNMS by hostname.

ParameterTypeDescription
hostname *stringDevice hostname to delete

device_update Device Update

Update device fields in LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname or ID
payload *objectPatchable device fields: - notes: Device notes/comments - purpose: Device purpose description - override_sysLocation: true/false to override SNMP location - location_id: Location ID to assign - poller…

device_ports Device Ports

List ports for a device from LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname or ID
columnsComma-separated list of columns to return (e.g., 'port_id,ifName,ifAlias,ifOperStatus')
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination
with_vlansbooleanAdd each port's VLAN memberships under 'vlans'

device_port_stack Device Port Stack

List a device's port stack (ifStackTable) from LibreNMS, such as which physical ports belong to a port-channel. Each mapping pairs a high_port_id with a low_port_id. Which side is the aggregate depends on the vendor, so look up both ports before naming one.

ParameterTypeDescription
hostname *stringDevice hostname or ID
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

device_ports_get Device Ports Get

Get port info for a device by interface name. Names like 'Te2/7' can fail by name behind proxies that reject or decode the encoded slash. The port is then looked up by ID instead; that response has the same shape but lacks the computed rate fields (in_rate, out_rate, ...).

ParameterTypeDescription
hostname *stringDevice hostname.
ifname *stringInterface name

device_availability Device Availability

Get device availability from LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname.

device_outages Device Outages

Get device outages from LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname.
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

device_set_maintenance Device Set Maintenance

Set device maintenance in LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname or ID
payload *objectMaintenance mode payload: - duration (required): Duration in "H:i" format (e.g., "02:00" for 2 hours) - title (optional): Maintenance window title - notes (optional): Maintenance notes - start (option…

devicegroups_list Devicegroups List

List all device groups from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

devicegroup_add Devicegroup Add

Add a new device group to LibreNMS.

ParameterTypeDescription
payload *objectDevice group payload fields: - name (required): Group name - type (required): "static" or "dynamic" - desc (optional): Group description - rules (required if dynamic): Dynamic group rule builder JSON…

devicegroup_update Devicegroup Update

Update a device group in LibreNMS.

ParameterTypeDescription
name *stringDevice group name or ID
payload *objectPatchable fields: - name: New group name - type: "static" or "dynamic" - desc: Group description - rules: Dynamic group rules (for dynamic groups) - devices: Array of device IDs (for static groups)

devicegroup_delete Devicegroup Delete

Delete a device group from LibreNMS by name.

ParameterTypeDescription
name *stringDevice group name or ID to delete

devicegroup_devices Devicegroup Devices

List devices in a device group from LibreNMS.

ParameterTypeDescription
name *stringDevice group name or ID
fullSet to true to get complete device data instead of just IDs
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

devicegroup_set_maintenance Devicegroup Set Maintenance

Set maintenance for a device group in LibreNMS.

ParameterTypeDescription
name *stringDevice group name or ID
payload *objectMaintenance mode payload: - duration (required): Duration in "H:i" format (e.g., "02:00" for 2 hours) - title (optional): Maintenance window title - notes (optional): Maintenance notes - start (option…

devicegroup_add_devices Devicegroup Add Devices

Add devices to a device group in LibreNMS.

ParameterTypeDescription
name *stringDevice group name or ID
payload *objectArray of device IDs to add. Format: {"devices": [1, 2, 3]}

devicegroup_remove_devices Devicegroup Remove Devices

Remove devices from a device group in LibreNMS.

ParameterTypeDescription
name *stringDevice group name or ID
payload *objectArray of device IDs to remove. Format: {"devices": [1, 2, 3]}

device_discover Device Discover

Trigger device rediscovery in LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname or ID

device_rename Device Rename

Rename a device in LibreNMS.

ParameterTypeDescription
hostname *stringCurrent device hostname or ID
new_hostname *stringNew hostname for the device

device_maintenance_status Device Maintenance Status

Check if a device is currently in maintenance mode.

ParameterTypeDescription
hostname *stringDevice hostname or ID

device_vlans Device Vlans

Get VLANs configured on a specific device.

ParameterTypeDescription
hostname *stringDevice hostname or ID
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

device_eventlog_add Device Eventlog Add

Add a custom event log entry for a device.

ParameterTypeDescription
hostname *stringDevice hostname or ID
payload *objectEvent log entry payload: - text (required): Event message text - type (optional): Event type/category - severity (optional): Severity level (1-5)

device_fdb Device Fdb

List the forwarding database (learned MAC addresses) for a device. Each entry carries the port_id it was learned on, so this is the device-wide view of what is plugged into a switch.

ParameterTypeDescription
hostname *stringDevice hostname or device ID
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

device_nac Device Nac

List network access control (802.1X / MAB) sessions on a device. Shows authenticated endpoints per port, including the authentication method and the assigned VLAN where the device reports it.

ParameterTypeDescription
hostname *stringDevice hostname or device ID
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

device_wireless_sensors Device Wireless Sensors

List the wireless sensors of a device with their current values. Wireless readings (frequency, clients, distance, rssi, ccq, rate, noise-floor, power, quality, capacity, utilization) are kept apart from the health sensors in LibreNMS, so they do not appear in health_* or sensors_list; this is the only route that returns them.

ParameterTypeDescription
hostname *stringDevice hostname or device ID
sensor_classOnly this wireless sensor class, e.g. clients, rssi, frequency

device_parents_set Device Parents Set

Set the dependency parents of a device. Parents drive alert suppression: a device whose parent is down is not alerted on its own. LibreNMS replaces the device's parents with the given ones (it syncs the set), so pass every parent the device should keep. A device cannot be its own parent.

ParameterTypeDescription
hostname *stringDevice hostname or device ID
parent_ids *stringComma-separated parent device IDs or hostnames; replaces the current parents

device_parents_clear Device Parents Clear

Remove dependency parents from a device.

ParameterTypeDescription
hostname *stringDevice hostname or device ID
parent_idsComma-separated parent device IDs or hostnames to remove; omit to remove every parent

device_graphs_list Device Graphs List

List the graph types available for a device. Use this to discover the values accepted by the `graph_type` argument of device_graph, for example 'device_icmp_perf' or 'device_poller_perf'.

ParameterTypeDescription
hostname *stringDevice hostname or device ID

device_graph Device Graph

Render a device-level graph as an image.

ParameterTypeDescription
graph_type *stringGraph type, as returned by device_graphs_list (e.g. 'device_icmp_perf', 'device_poller_perf', 'device_availability')
hostname *stringDevice hostname or device ID
from_timeStart of the time range, either a relative offset such as '-1d', '-6h' or '-1w', or a Unix timestamp. Defaults to the LibreNMS default (-1d).
heightGraph height in pixels.
legendWhether to render the graph legend.
to_timeEnd of the time range, either a relative offset or a Unix timestamp. Defaults to now.
widthGraph width in pixels.

port_graph Port Graph

Render a per-port graph as an image, for example interface traffic. Names like 'Te2/7' can fail by name behind proxies that reject or decode the encoded slash. For 'bits' this tool then falls back to the port-group endpoint, which renders the same traffic data by port ID, so callers still get a graph.

ParameterTypeDescription
hostname *stringDevice hostname or device ID
ifname *stringInterface name as reported by LibreNMS, e.g. 'Po1' or 'Te2/7'
from_timeStart of the time range, either a relative offset such as '-1d', '-6h' or '-1w', or a Unix timestamp. Defaults to the LibreNMS default (-1d).
graph_typestringGraph type: 'bits' (traffic), 'upkts' (unicast packets), 'nupkts' (non-unicast packets), 'errors', or 'etherlike'. The LibreNMS names ('port_bits', ...) are accepted too.
heightGraph height in pixels.
legendWhether to render the graph legend.
to_timeEnd of the time range, either a relative offset or a Unix timestamp. Defaults to now.
widthGraph width in pixels.

port_group_graph Port Group Graph

Render a traffic graph for one or more ports, by port ID. Plots every supplied port on the same axes, which makes it useful for comparing members of a LAG. Unlike port_graph this takes numeric port IDs rather than interface names.

ParameterTypeDescription
port_ids *arrayOne or more port IDs to plot on a single graph. Resolve names to IDs with ports_search_field or device_ports.
from_timeStart of the time range, either a relative offset such as '-1d', '-6h' or '-1w', or a Unix timestamp. Defaults to the LibreNMS default (-1d).
heightGraph height in pixels.
legendWhether to render the graph legend.
to_timeEnd of the time range, either a relative offset or a Unix timestamp. Defaults to now.
widthGraph width in pixels.

health_list Health List

List available health graphs for a device.

ParameterTypeDescription
hostname *stringDevice hostname or ID
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

health_by_type Health By Type

Get health data by sensor type for a device.

ParameterTypeDescription
hostname *stringDevice hostname or ID
type *stringSensor type (e.g. temperature, voltage, fanspeed)
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

health_sensor_get Health Sensor Get

Get a specific sensor by ID for a device.

ParameterTypeDescription
hostname *stringDevice hostname or ID
sensor_id *integerSensor ID
type *stringSensor type (e.g. temperature, voltage, fanspeed)

sensors_list Sensors List

List all sensors across all devices.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

inventory_device Inventory Device

Get inventory for a device from LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname or ID
ent_physical_classFilter by entity physical class (e.g., chassis, module, port, powerSupply, fan, sensor)
ent_physical_contained_inFilter by parent entity index
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

inventory_device_flat Inventory Device Flat

Get flattened inventory for a device from LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname.
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

locations_list Locations List

List locations from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

location_add Location Add

Add a new location to LibreNMS.

ParameterTypeDescription
payload *objectLocation payload fields: - location (required): Location name - lat (required): Latitude coordinate (decimal degrees) - lng (required): Longitude coordinate (decimal degrees) - fixed_coordinates (opti…

location_delete Location Delete

Delete a location from LibreNMS by ID or name.

ParameterTypeDescription
location *stringLocation ID or name

location_edit Location Edit

Edit a location in LibreNMS.

ParameterTypeDescription
location *stringLocation ID or name
payload *objectLocation patchable fields: - lat: Latitude coordinate (decimal degrees) - lng: Longitude coordinate (decimal degrees)

location_get Location Get

Get a specific location from LibreNMS by identifier.

ParameterTypeDescription
location *stringLocation ID or name

location_set_maintenance Location Set Maintenance

Set maintenance mode for all devices in a location.

ParameterTypeDescription
location *stringLocation ID or name
payload *objectMaintenance mode payload: - duration (required): Duration in "H:i" format (e.g., "02:00" for 2 hours) - title (optional): Maintenance window title - notes (optional): Maintenance notes - start (option…

logs_eventlog Logs Eventlog

Get event logs for a device from LibreNMS.

ParameterTypeDescription
from_tsStart timestamp filter (Unix timestamp or datetime string)
hostnameDevice hostname or ID. Omit for entries from all devices.
limitintegerMaximum number of results to return
sortorderSort order: ASC or DESC
startintegerNumber of results to skip (offset) for pagination
to_tsEnd timestamp filter (Unix timestamp or datetime string)

logs_syslog Logs Syslog

Get syslogs for a device from LibreNMS.

ParameterTypeDescription
from_tsStart timestamp filter (Unix timestamp or datetime string)
hostnameDevice hostname or ID. Omit for entries from all devices.
limitintegerMaximum number of results to return
sortorderSort order: ASC or DESC
startintegerNumber of results to skip (offset) for pagination
to_tsEnd timestamp filter (Unix timestamp or datetime string)

logs_alertlog Logs Alertlog

Get alert logs for a device from LibreNMS.

ParameterTypeDescription
from_tsStart timestamp filter (Unix timestamp or datetime string)
hostnameDevice hostname or ID. Omit for entries from all devices.
limitintegerMaximum number of results to return
sortorderSort order: ASC or DESC
startintegerNumber of results to skip (offset) for pagination
to_tsEnd timestamp filter (Unix timestamp or datetime string)

logs_authlog Logs Authlog

Get authentication logs from LibreNMS. Auth logs are server-wide rather than per-device, so this takes no hostname.

ParameterTypeDescription
from_tsStart timestamp filter (Unix timestamp or datetime string)
limitintegerMaximum number of results to return
sortorderSort order: ASC or DESC
startintegerNumber of results to skip (offset) for pagination
to_tsEnd timestamp filter (Unix timestamp or datetime string)

logs_syslogsink Logs Syslogsink

Add a syslog entry to LibreNMS via API sink.

ParameterTypeDescription
payload *JSON syslog message(s) to ingest into LibreNMS syslog storage. Accepts a single object or an array of objects.

bgp_sessions Bgp Sessions

List BGP sessions from LibreNMS with optional filters.

ParameterTypeDescription
asnFilter by local ASN
bgp_adminstateFilter by admin state (start, stop, running)
bgp_descrFilter by BGP description (SQL LIKE)
bgp_familyFilter by address family: 4 (IPv4) or 6 (IPv6)
bgp_stateFilter by BGP state (e.g., established)
hostnameFilter by device hostname or ID. An unknown device returns an error.
limitintegerMaximum number of results to return
local_addressFilter by local IP address
offsetintegerNumber of results to skip (offset) for pagination
remote_addressFilter by remote IP address
remote_asnFilter by remote ASN

bgp_session_get Bgp Session Get

Get BGP session from LibreNMS by ID.

ParameterTypeDescription
bgp_id *integerBGP session ID.

bgp_session_edit Bgp Session Edit

Edit BGP session in LibreNMS by ID.

ParameterTypeDescription
bgp_id *integerBGP session ID
payload *objectBGP session payload. Format: {"bgp_descr": "description"}

routing_ip_addresses Routing Ip Addresses

List all IP addresses from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

switching_vlans Switching Vlans

List all VLANs from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

fdb_lookup Fdb Lookup

Look up a MAC address in the forwarding database.

ParameterTypeDescription
mac *stringMAC address to look up. Accepts multiple formats: aa:bb:cc:dd:ee:ff, aabb.ccdd.eeff, or aabbccddeeff

ospf_list Ospf List

List all OSPF instances from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

ospf_ports Ospf Ports

List all OSPF ports/interfaces from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

vrf_list Vrf List

List all VRF (Virtual Routing and Forwarding) instances from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

nac_list Nac List

List network access control (802.1X / MAB) sessions across all devices. Note that LibreNMS answers with a 404 and "Nac entry does not exist" rather than an empty list when nothing matches.

ParameterTypeDescription
limitintegerMaximum number of results to return
macFilter to a single MAC address. Optional.
offsetintegerNumber of results to skip (offset) for pagination

oxidized_list Oxidized List

List devices tracked by Oxidized for config backup.

ParameterTypeDescription
hostnameFilter by device hostname or ID. Optional. An unknown device returns an error.
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

oxidized_config_get Oxidized Config Get

Get the stored device configuration from Oxidized for a specific device.

ParameterTypeDescription
hostname *stringDevice hostname

poller_group_get Poller Group Get

Get poller group(s) from LibreNMS.

ParameterTypeDescription
poller_groupPoller group ID or name. Omit (or pass 'all') to list every poller group; a group literally named 'all' must be fetched by its ID.

port_security_list Port Security List

List port security configuration across all devices. Covers switchport port-security state such as the maximum number of learned MAC addresses, violation mode and current status.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

port_security_device Port Security Device

Get port security configuration for every port on a device.

ParameterTypeDescription
hostname *stringDevice hostname or device ID
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

port_security_port Port Security Port

Get port security configuration for a single port.

ParameterTypeDescription
port_id *integerPort ID

ports_list Ports List

Get all ports from LibreNMS with optional filters.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination
queryQuery parameters for filtering ports: - columns: Comma-separated list of fields to return (e.g., "port_id,ifName,ifAlias") - device_id: Only return ports of this device (device ID or hostname) Availa…

ports_search_field Ports Search Field

Search ports in LibreNMS by specific field.

ParameterTypeDescription
field *stringField to search: ifAlias, ifDescr, ifName, ifType, etc.
search *stringSearch term. "0" is not supported: LibreNMS treats it as empty.
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

ports_search_mac Ports Search Mac

Find the switch ports where a MAC address was learned (forwarding table). This searches LibreNMS's FDB data, i.e. where a host's MAC appears on the network, not the ports' own hardware addresses: a port's own MAC is not found unless another device learned it. Results are ordered by how many MACs each port has learned, so the access port the host is plugged into usually comes first.

ParameterTypeDescription
mac *stringMAC address of a host to locate (looked up in the forwarding tables, not ports' own MACs). Accepts aa:bb:cc:dd:ee:ff, aa-bb-cc-dd-ee-ff, aabb.ccdd.eeff, or aabbccddeeff
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

port_get Port Get

Get port info from LibreNMS by port ID.

ParameterTypeDescription
port_id *integerPort ID.
with_vlansbooleanAdd the port's VLAN memberships under 'vlans'

port_ip_info Port Ip Info

Get port IP info from LibreNMS by port ID.

ParameterTypeDescription
port_id *integerPort ID.

port_transceiver Port Transceiver

Get port transceiver info from LibreNMS by port ID.

ParameterTypeDescription
port_id *integerPort ID.

port_description_get Port Description Get

Get port description from LibreNMS by port ID.

ParameterTypeDescription
port_id *integerPort ID.

port_description_update Port Description Update

Update port description in LibreNMS by port ID.

ParameterTypeDescription
payload *objectPort description payload. Format: {"description": "new description"}
port_id *integerPort ID

port_groups_list Port Groups List

List port groups from LibreNMS.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

port_group_add Port Group Add

Add a port group to LibreNMS.

ParameterTypeDescription
payload *objectPort group payload: - name (required): Port group name - desc (optional): Port group description

port_group_list_ports Port Group List Ports

List ports in a port group from LibreNMS.

ParameterTypeDescription
name *stringPort group name or ID
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

port_group_assign Port Group Assign

Assign ports to a port group in LibreNMS.

ParameterTypeDescription
payload *objectPort IDs to assign. Format: {"port_ids": [1, 2, 3]}
port_group_id *integerPort group ID

port_group_remove Port Group Remove

Remove ports from a port group in LibreNMS.

ParameterTypeDescription
payload *objectPort IDs to remove. Format: {"port_ids": [1, 2, 3]}
port_group_id *integerPort group ID

port_fdb Port Fdb

List the MAC addresses learned on a port, from the forwarding database. This answers "what is connected to this port". To go the other way and find which port a known MAC sits on, use fdb_lookup instead.

ParameterTypeDescription
port_id *integerPort ID
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination

services_list Services List

List all services from LibreNMS with optional filters.

ParameterTypeDescription
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination
service_typeFilter by service type (SQL LIKE pattern)
stateFilter by state: 0=Ok, 1=Warning, 2=Critical

services_for_device Services For Device

Get services for a device from LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname or ID
limitintegerMaximum number of results to return
offsetintegerNumber of results to skip (offset) for pagination
service_typeFilter by service type (SQL LIKE pattern)
stateFilter by state: 0=Ok, 1=Warning, 2=Critical

service_add Service Add

Add a service for a device in LibreNMS.

ParameterTypeDescription
hostname *stringDevice hostname or ID
payload *objectService monitoring payload: - type (required): Service check type (e.g., "http", "https", "dns", "ping", "smtp", "ssh", "tcp", "icmp") - ip (optional): Service IP address or hostname to check (default…

service_edit Service Edit

Edit a service in LibreNMS by service ID.

ParameterTypeDescription
payload *objectService patchable fields: - service_ip: Service IP address - service_desc: Service description - service_param: Service check parameters - service_disabled: 0/1 to enable/disable - service_ignore: 0/1…
service_id *integerService ID

service_delete Service Delete

Delete a service from LibreNMS by service ID.

ParameterTypeDescription
service_id *integerService ID.

system_info System Info

Get system info from LibreNMS.

ping Ping

Simple API health check - ping LibreNMS API.