Add nilsonlinux/link-ip-monitor v1.0.0 (#320)
* Add nilsonlinux/link-ip-monitor v1.0.0 * Add nilsonlinux/link-ip-monitor v1.0.0 * Update plugin ID in README.md * Rename project to link-ip-monitor and update ID Updated the project name and ID in the README. * Update plugin ID and command syntax in README
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
id = "nilsonlinux/link-ip-monitor"
|
||||
name = "Link/IP Monitor"
|
||||
version = "1.0.0"
|
||||
plugin_api = 14
|
||||
author = "Nilsonlinux"
|
||||
license = "MIT"
|
||||
icon = "activity"
|
||||
description = "It pings a list of IPs, hosts, or links at intervals and notifies you when one goes down (or comes back up)."
|
||||
tags = ["network", "indicator", "bar", "panel", "service"]
|
||||
dependencies = ["ping"]
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin settings: shared by ALL entries (service + widget). Edited in
|
||||
# Settings -> Plugins.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
[[setting]]
|
||||
key = "interval_seconds"
|
||||
type = "int"
|
||||
label_key = "settings.interval_seconds.label"
|
||||
description_key = "settings.interval_seconds.description"
|
||||
default = 30
|
||||
min = 5
|
||||
max = 3600
|
||||
|
||||
[[setting]]
|
||||
key = "timeout_seconds"
|
||||
type = "int"
|
||||
label_key = "settings.timeout_seconds.label"
|
||||
description_key = "settings.timeout_seconds.description"
|
||||
default = 1
|
||||
min = 1
|
||||
max = 10
|
||||
|
||||
[[setting]]
|
||||
key = "notify_on_recovery"
|
||||
type = "bool"
|
||||
label_key = "settings.notify_on_recovery.label"
|
||||
description_key = "settings.notify_on_recovery.description"
|
||||
default = true
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Service: runs in the background, pings hosts, and publishes state
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
[[service]]
|
||||
id = "monitor"
|
||||
entry = "service.luau"
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Bar widget: icon with a badge for the number of hosts that are down
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
[[widget]]
|
||||
id = "status"
|
||||
entry = "widget.luau"
|
||||
|
||||
[[widget.setting]]
|
||||
key = "glyph"
|
||||
type = "glyph"
|
||||
label_key = "settings.glyph.label"
|
||||
description_key = "settings.glyph.description"
|
||||
default = "activity"
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Panel: list of hosts with a status pill, opened by clicking the widget
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
[[panel]]
|
||||
id = "panel"
|
||||
entry = "panel.luau"
|
||||
width = 320
|
||||
height = 400
|
||||
placement = "attached"
|
||||
position = "auto"
|
||||
open_near_click = true
|
||||
Reference in New Issue
Block a user