service_add
Add a service check to a device in LibreNMS, specifying type, IP, description, and parameters.
Instructions
Add a service for a device in LibreNMS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | Device hostname or ID | |
| 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 (defaults to device IP) - 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"} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||