Service Add
service_addAdd service monitoring to a LibreNMS device by supplying its hostname and a payload with the check type, such as HTTP, DNS, ping, or TCP, and any parameters.
Instructions
Add a service for a device in LibreNMS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Service 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 (defaults to the device's poller target: its overwrite IP if set, else its hostname) - desc (optional): Service description - param (optional): Check parameters/arguments (service-specific) - ignore (optional): Exclude from alerts (0/1) Example: {"type": "http", "desc": "Web Server", "param": "-p 8080 -u /health"} | |
| hostname | Yes | Device hostname or ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||