Fix HID template structure: move triggers inside items

Triggers must be nested under their related items, not at template level.
Also updated ribbon thresholds for YMCKO color ribbons (75/25).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-17 14:03:23 -05:00
parent b95fafe230
commit 451d8ec73d
2 changed files with 164 additions and 160 deletions

View File

@@ -229,7 +229,35 @@
],
"valuemap": {
"name": "HID Printer Status"
}
},
"triggers": [
{
"uuid": "a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.status.code)=5",
"name": "HID DTC4500e: Printer in error state on {HOST.NAME}",
"priority": "HIGH",
"description": "Printer is reporting an error condition",
"tags": [
{
"tag": "scope",
"value": "availability"
}
]
},
{
"uuid": "a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9",
"expression": "nodata(/HID Fargo DTC4500e Card Printer/hid.status.code,15m)=1",
"name": "HID DTC4500e: No SNMP data received on {HOST.NAME}",
"priority": "AVERAGE",
"description": "No SNMP data received for 15 minutes - printer may be offline",
"tags": [
{
"tag": "scope",
"value": "availability"
}
]
}
]
},
{
"uuid": "d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4",
@@ -328,6 +356,34 @@
"tag": "type",
"value": "consumable"
}
],
"triggers": [
{
"uuid": "e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.ribbon.remaining)<75",
"name": "HID DTC4500e: Ribbon low on {HOST.NAME} (less than 75 prints remaining)",
"priority": "WARNING",
"description": "Ribbon is running low, less than 75 prints remaining",
"tags": [
{
"tag": "scope",
"value": "capacity"
}
]
},
{
"uuid": "f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.ribbon.remaining)<25",
"name": "HID DTC4500e: Ribbon critically low on {HOST.NAME} (less than 25 prints remaining)",
"priority": "HIGH",
"description": "Ribbon is critically low, less than 25 prints remaining",
"tags": [
{
"tag": "scope",
"value": "capacity"
}
]
}
]
},
{
@@ -408,7 +464,22 @@
],
"valuemap": {
"name": "HID Door Status"
}
},
"triggers": [
{
"uuid": "b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.status.door)=1",
"name": "HID DTC4500e: Door/Hopper open on {HOST.NAME}",
"priority": "WARNING",
"description": "Printer door or hopper is open",
"tags": [
{
"tag": "scope",
"value": "notice"
}
]
}
]
},
{
"uuid": "e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1",
@@ -443,7 +514,22 @@
],
"valuemap": {
"name": "HID Film Status"
}
},
"triggers": [
{
"uuid": "c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.status.film)=0",
"name": "HID DTC4500e: Film/Ribbon not loaded on {HOST.NAME}",
"priority": "WARNING",
"description": "Printer film or ribbon is not loaded",
"tags": [
{
"tag": "scope",
"value": "availability"
}
]
}
]
},
{
"uuid": "f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2",
@@ -478,98 +564,20 @@
],
"valuemap": {
"name": "HID Hopper Status"
}
}
],
"triggers": [
{
"uuid": "a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.status.code)=5",
"name": "HID DTC4500e: Printer in error state",
"priority": "HIGH",
"description": "Printer is reporting an error condition",
"tags": [
},
"triggers": [
{
"tag": "scope",
"value": "availability"
}
]
},
{
"uuid": "b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.status.door)=1",
"name": "HID DTC4500e: Door/Hopper open",
"priority": "WARNING",
"description": "Printer door or hopper is open",
"tags": [
{
"tag": "scope",
"value": "notice"
}
]
},
{
"uuid": "c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.status.film)=0",
"name": "HID DTC4500e: Film/Ribbon not loaded",
"priority": "WARNING",
"description": "Printer film or ribbon is not loaded",
"tags": [
{
"tag": "scope",
"value": "availability"
}
]
},
{
"uuid": "d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.status.inputhopper)=1",
"name": "HID DTC4500e: Input hopper empty or warning",
"priority": "WARNING",
"description": "Input hopper is empty or has a warning",
"tags": [
{
"tag": "scope",
"value": "availability"
}
]
},
{
"uuid": "e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.ribbon.remaining)<50",
"name": "HID DTC4500e: Ribbon low (less than 50 prints remaining)",
"priority": "WARNING",
"description": "Ribbon is running low, less than 50 prints remaining",
"tags": [
{
"tag": "scope",
"value": "capacity"
}
]
},
{
"uuid": "f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.ribbon.remaining)<10",
"name": "HID DTC4500e: Ribbon critically low (less than 10 prints remaining)",
"priority": "HIGH",
"description": "Ribbon is critically low, less than 10 prints remaining",
"tags": [
{
"tag": "scope",
"value": "capacity"
}
]
},
{
"uuid": "a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9",
"expression": "nodata(/HID Fargo DTC4500e Card Printer/hid.status.code,15m)=1",
"name": "HID DTC4500e: No SNMP data received",
"priority": "AVERAGE",
"description": "No SNMP data received for 15 minutes - printer may be offline",
"tags": [
{
"tag": "scope",
"value": "availability"
"uuid": "d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6",
"expression": "last(/HID Fargo DTC4500e Card Printer/hid.status.inputhopper)=1",
"name": "HID DTC4500e: Input hopper empty on {HOST.NAME}",
"priority": "WARNING",
"description": "Input hopper is empty or has a warning",
"tags": [
{
"tag": "scope",
"value": "availability"
}
]
}
]
}