Initial commit: SNMP scanner and Zabbix template generator

Tools for printer discovery and monitoring:
- snmp_scanner.py: SNMP-based printer discovery
- generate_printer_templates.py: Generate Zabbix templates
- analyze_supplies.py: Analyze printer supply levels
- extract_summary.py: Extract printer data summaries

Includes Zabbix templates for:
- HP Color/Mono printers
- HP DesignJet T1700
- Xerox Color/Mono/Enterprise printers

🤖 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 13:52:21 -05:00
commit 389e620261
30 changed files with 18489 additions and 0 deletions

View File

@@ -0,0 +1,378 @@
zabbix_export:
version: '7.4'
template_groups:
- uuid: 3cd4e8d0b828464e8f4b3becf13a9dbd
name: Printers
templates:
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d
template: HP DesignJet T1700
name: HP DesignJet T1700
description: |
HP DesignJet T1700/T1700dr PostScript Large Format Printer (44" wide) with 6-color ink system.
Uses HP-specific OIDs for ink levels (1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.5.4.X.1.0)
groups:
- name: Printers
items:
- uuid: fafe30cd886a4101ad26dcb05a350c00
name: Printer Model
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.25.3.2.1.3.1
key: printer.model
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Printer Model
tags:
- tag: component
value: printer
- tag: type
value: info
- uuid: ffacedf934484723bc7a4172b88885ec
name: Printer Hostname
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.5.0
key: printer.hostname
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Printer Hostname
tags:
- tag: component
value: printer
- tag: type
value: info
- uuid: feedac9ef35b4d47a8811460c68d571d
name: Printer Serial Number
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.11.2.3.9.4.2.1.1.3.3.0
key: printer.serial
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Printer Serial Number (HP-specific OID)
tags:
- tag: component
value: printer
- tag: type
value: info
- uuid: 8be8122000a344f4b047ecae6d8fcd9b
name: System Location
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.1.6.0
key: printer.location
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: System Location
tags:
- tag: component
value: printer
- tag: type
value: info
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c01
name: Matte Black Cartridge Part Number
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.1
key: printer.cartridge.matte_black
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Matte Black Ink Cartridge Part Number (HP 730 P2V72A)
tags:
- tag: component
value: supplies
- tag: type
value: info
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c04
name: Matte Black Ink Level
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.5.4.1.1.0
key: printer.ink.matte_black
delay: 1h
history: 90d
trends: 365d
value_type: FLOAT
units: '%'
description: Matte Black Ink Level Percentage (HP proprietary OID)
tags:
- tag: component
value: supplies
- tag: type
value: level
- tag: color
value: matte_black
triggers:
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c05
expression: last(/HP DesignJet T1700/printer.ink.matte_black)<20 and length(last(/HP DesignJet T1700/printer.cartridge.matte_black))>0
name: 'Matte Black Ink Level is low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: WARNING
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c06
expression: last(/HP DesignJet T1700/printer.ink.matte_black)<10 and length(last(/HP DesignJet T1700/printer.cartridge.matte_black))>0
name: 'Matte Black Ink Level is critically low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: HIGH
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c07
name: Cyan Cartridge Part Number
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.2
key: printer.cartridge.cyan
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Cyan Ink Cartridge Part Number (HP 730 P2V73A)
tags:
- tag: component
value: supplies
- tag: type
value: info
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c0a
name: Cyan Ink Level
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.5.4.2.1.0
key: printer.ink.cyan
delay: 1h
history: 90d
trends: 365d
value_type: FLOAT
units: '%'
description: Cyan Ink Level Percentage (HP proprietary OID)
tags:
- tag: component
value: supplies
- tag: type
value: level
- tag: color
value: cyan
triggers:
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c0b
expression: last(/HP DesignJet T1700/printer.ink.cyan)<20 and length(last(/HP DesignJet T1700/printer.cartridge.cyan))>0
name: 'Cyan Ink Level is low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: WARNING
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c0c
expression: last(/HP DesignJet T1700/printer.ink.cyan)<10 and length(last(/HP DesignJet T1700/printer.cartridge.cyan))>0
name: 'Cyan Ink Level is critically low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: HIGH
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c0d
name: Magenta Cartridge Part Number
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.3
key: printer.cartridge.magenta
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Magenta Ink Cartridge Part Number (HP 730 P2V71A)
tags:
- tag: component
value: supplies
- tag: type
value: info
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c10
name: Magenta Ink Level
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.5.4.3.1.0
key: printer.ink.magenta
delay: 1h
history: 90d
trends: 365d
value_type: FLOAT
units: '%'
description: Magenta Ink Level Percentage (HP proprietary OID)
tags:
- tag: component
value: supplies
- tag: type
value: level
- tag: color
value: magenta
triggers:
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c11
expression: last(/HP DesignJet T1700/printer.ink.magenta)<20 and length(last(/HP DesignJet T1700/printer.cartridge.magenta))>0
name: 'Magenta Ink Level is low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: WARNING
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c12
expression: last(/HP DesignJet T1700/printer.ink.magenta)<10 and length(last(/HP DesignJet T1700/printer.cartridge.magenta))>0
name: 'Magenta Ink Level is critically low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: HIGH
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c13
name: Yellow Cartridge Part Number
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.4
key: printer.cartridge.yellow
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Yellow Ink Cartridge Part Number (HP 730 P2V70A)
tags:
- tag: component
value: supplies
- tag: type
value: info
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c16
name: Yellow Ink Level
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.5.4.4.1.0
key: printer.ink.yellow
delay: 1h
history: 90d
trends: 365d
value_type: FLOAT
units: '%'
description: Yellow Ink Level Percentage (HP proprietary OID)
tags:
- tag: component
value: supplies
- tag: type
value: level
- tag: color
value: yellow
triggers:
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c17
expression: last(/HP DesignJet T1700/printer.ink.yellow)<20 and length(last(/HP DesignJet T1700/printer.cartridge.yellow))>0
name: 'Yellow Ink Level is low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: WARNING
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c18
expression: last(/HP DesignJet T1700/printer.ink.yellow)<10 and length(last(/HP DesignJet T1700/printer.cartridge.yellow))>0
name: 'Yellow Ink Level is critically low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: HIGH
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c19
name: Photo Black Cartridge Part Number
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.5
key: printer.cartridge.photo_black
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Photo Black Ink Cartridge Part Number (HP 730 P2V69A)
tags:
- tag: component
value: supplies
- tag: type
value: info
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c1c
name: Photo Black Ink Level
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.5.4.5.1.0
key: printer.ink.photo_black
delay: 1h
history: 90d
trends: 365d
value_type: FLOAT
units: '%'
description: Photo Black Ink Level Percentage (HP proprietary OID)
tags:
- tag: component
value: supplies
- tag: type
value: level
- tag: color
value: photo_black
triggers:
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c1d
expression: last(/HP DesignJet T1700/printer.ink.photo_black)<20 and length(last(/HP DesignJet T1700/printer.cartridge.photo_black))>0
name: 'Photo Black Ink Level is low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: WARNING
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c1e
expression: last(/HP DesignJet T1700/printer.ink.photo_black)<10 and length(last(/HP DesignJet T1700/printer.cartridge.photo_black))>0
name: 'Photo Black Ink Level is critically low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: HIGH
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c1f
name: Gray Cartridge Part Number
type: SNMP_AGENT
snmp_oid: 1.3.6.1.2.1.43.11.1.1.6.1.6
key: printer.cartridge.gray
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Gray Ink Cartridge Part Number (HP 730 P2V68A)
tags:
- tag: component
value: supplies
- tag: type
value: info
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c22
name: Gray Ink Level
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.5.4.6.1.0
key: printer.ink.gray
delay: 1h
history: 90d
trends: 365d
value_type: FLOAT
units: '%'
description: Gray Ink Level Percentage (HP proprietary OID)
tags:
- tag: component
value: supplies
- tag: type
value: level
- tag: color
value: gray
triggers:
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c23
expression: last(/HP DesignJet T1700/printer.ink.gray)<20 and length(last(/HP DesignJet T1700/printer.cartridge.gray))>0
name: 'Gray Ink Level is low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: WARNING
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c24
expression: last(/HP DesignJet T1700/printer.ink.gray)<10 and length(last(/HP DesignJet T1700/printer.cartridge.gray))>0
name: 'Gray Ink Level is critically low on {{HOST.NAME}}. Current level: {{ITEM.LASTVALUE}}%. Replacement part: {{ITEM.LASTVALUE2}}'
priority: HIGH
tags:
- tag: scope
value: availability
- uuid: 1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c25
name: Firmware Version
type: SNMP_AGENT
snmp_oid: 1.3.6.1.4.1.11.2.3.9.4.2.1.1.3.6.0
key: printer.firmware
delay: 1h
history: 90d
trends: 0d
value_type: TEXT
description: Printer Firmware Version
tags:
- tag: component
value: printer
- tag: type
value: info