diff --git a/zabbix_template_hid_dtc4500e.json b/zabbix_template_hid_dtc4500e.json index fa24e26..9f21cb2 100644 --- a/zabbix_template_hid_dtc4500e.json +++ b/zabbix_template_hid_dtc4500e.json @@ -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" + } + ] } ] } diff --git a/zabbix_template_hid_dtc4500e.yaml b/zabbix_template_hid_dtc4500e.yaml index 16c83c7..3d731c2 100644 --- a/zabbix_template_hid_dtc4500e.yaml +++ b/zabbix_template_hid_dtc4500e.yaml @@ -217,6 +217,23 @@ zabbix_export: value: status 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 name: Printer Status Flags @@ -309,6 +326,23 @@ zabbix_export: value: supplies - 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 # === Additional HID MIB values === - uuid: b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8 @@ -344,7 +378,7 @@ zabbix_export: - tag: type value: consumable - # === Derived Items === + # === Derived Items from Status Flags === - uuid: d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0 name: Door/Hopper Status type: DEPENDENT @@ -369,6 +403,15 @@ zabbix_export: return match ? match[1] : '0'; 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 name: Film/Ribbon Loaded @@ -394,6 +437,15 @@ zabbix_export: return match ? match[1] : '0'; 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 name: Input Hopper Status @@ -419,71 +471,15 @@ zabbix_export: return match ? match[1] : '0'; valuemap: name: HID Hopper Status - - # === Triggers === - 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: - - 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 + triggers: + - 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 # === Value Maps === valuemaps: