Files
snmp-scanner/HP_DesignJet_T1700_README.md
cproudlock 389e620261 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>
2025-12-17 13:52:21 -05:00

211 lines
5.7 KiB
Markdown

# HP DesignJet T1700dr PostScript - Zabbix Monitoring Setup
## Printer Information
- **Model**: HP DesignJet T1700dr PostScript (44" wide format)
- **IP Address**: 10.80.92.24
- **Hostname**: NPIDDF2D7
- **Serial Number**: CN91P7H00J
- **Firmware**: JGRw_04_19_18.1
- **Location**: Blisk Inspection
## Ink Cartridge System
This printer uses the **HP 730 series ink cartridges** (6 colors):
| Color | Part Number | Max Capacity | SNMP Index |
|-------|-------------|--------------|------------|
| Matte Black | P2V72A | 3000 | 1 |
| Cyan | P2V73A | 3000 | 2 |
| Magenta | P2V71A | 3000 | 3 |
| Yellow | P2V70A | 3000 | 4 |
| Photo Black | P2V69A | 3000 | 5 |
| Gray | P2V68A | 3000 | 6 |
## Zabbix Template
### Template File
- **Location**: `/home/camp/snmp-scanner/zabbix_template_hp_designjet_t1700_v2.yaml` (CORRECTED VERSION)
- **Old Location**: `/home/camp/snmp-scanner/zabbix_template_hp_designjet_t1700.yaml` (Uses wrong OIDs - do not use)
- **Template Name**: HP DesignJet T1700
- **Template Group**: Printers
### Key SNMP OIDs
#### Printer Information
- **Model**: 1.3.6.1.2.1.25.3.2.1.3.1
- **Hostname**: 1.3.6.1.2.1.1.5.0
- **Serial Number**: 1.3.6.1.4.1.11.2.3.9.4.2.1.1.3.3.0 (HP-specific)
- **Location**: 1.3.6.1.2.1.1.6.0
- **Firmware**: 1.3.6.1.4.1.11.2.3.9.4.2.1.1.3.6.0
#### Ink Levels (Per Color)
**IMPORTANT**: HP DesignJet uses proprietary HP OIDs for ink levels, NOT standard Printer MIB OIDs.
- **Part Number**: 1.3.6.1.2.1.43.11.1.1.6.1.{index} (Standard - works)
- **Max Capacity**: 1.3.6.1.2.1.43.11.1.1.8.1.{index} (Standard - works)
- **Current Level**: 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.5.4.{index}.1.0 (HP proprietary - direct percentage)
### Monitored Items
For each ink cartridge:
1. **Part Number** (Text) - Identifies the specific HP 730 cartridge from standard OID
2. **Ink Level Percentage** (Direct from HP OID) - Current ink level as percentage (0-100)
### Triggers
**Warning Level (20%)**:
- Trigger when ink level drops below 20%
- Priority: WARNING
- Shows current level and replacement part number
**Critical Level (10%)**:
- Trigger when ink level drops below 10%
- Priority: HIGH
- Shows current level and replacement part number
## Import Instructions
### 1. Import Template to Zabbix
```bash
# From Zabbix web interface:
# 1. Navigate to: Configuration → Templates
# 2. Click "Import" button
# 3. Upload: /home/camp/snmp-scanner/zabbix_template_hp_designjet_t1700_v2.yaml
# 4. Click "Import"
# NOTE: Use v2 template - it has the correct HP proprietary OIDs for ink levels
```
### 2. Configure SNMP on Host
```bash
# In Zabbix:
# 1. Go to: Configuration → Hosts
# 2. Find or create host for: 10.80.92.24
# 3. Set hostname to: NPIDDF2D7 (or descriptive name)
# 4. Add to host group: Printers
```
### 3. Link Template to Host
```bash
# In host configuration:
# 1. Go to "Templates" tab
# 2. Click "Select" next to "Link new templates"
# 3. Search for: HP DesignJet T1700
# 4. Click "Add"
# 5. Click "Update"
```
### 4. Configure SNMP Interface
```bash
# In host configuration:
# 1. Go to "Interfaces" tab
# 2. Add SNMP interface:
# - IP: 10.80.92.24
# - Port: 161
# - SNMP version: SNMPv2
# - SNMP community: public (or your community string)
# 3. Click "Update"
```
## Verification
### Test SNMP Connectivity
```bash
# From Zabbix server/proxy, test SNMP:
snmpget -v2c -c public 10.80.92.24 1.3.6.1.2.1.1.5.0
# Should return: NPIDDF2D7
snmpget -v2c -c public 10.80.92.24 1.3.6.1.2.1.25.3.2.1.3.1
# Should return: HP DesignJet T1700dr PostScript (44" sized)
```
### Check Data Collection
```bash
# In Zabbix:
# 1. Go to: Monitoring → Latest data
# 2. Filter by host: NPIDDF2D7
# 3. Verify items are collecting data:
# - Printer Model
# - All 6 ink levels (Matte Black, Cyan, Magenta, Yellow, Photo Black, Gray)
# - Serial Number
# - Firmware Version
```
## Maintenance Notes
### Ink Replacement Procedure
1. **Order Supplies**: HP 730 series cartridges
- Can purchase 130ml or 300ml sizes
- All colors use same cartridge design
2. **Check Current Levels**:
- Monitor Zabbix dashboard
- Check printer web interface: http://10.80.92.24
3. **Replace Cartridge**:
- Power on printer
- Open ink cartridge access door
- Remove empty cartridge
- Install new cartridge
- Close access door
4. **Verify in Zabbix**:
- Levels should update within 1 hour
- Alert should clear automatically
### Compatible Models
This template can also be used for:
- HP DesignJet T1600 (same ink system)
- HP DesignJet T2600 (same ink system)
- Other HP DesignJet models using HP 730 inks
## Troubleshooting
### No Data Collected
1. Check SNMP connectivity:
```bash
snmpwalk -v2c -c public 10.80.92.24 1.3.6.1.2.1.1
```
2. Verify community string is correct
3. Check firewall allows UDP 161
4. Ensure printer SNMP is enabled
### Incorrect Ink Levels
1. Verify you're using the HP proprietary OID (not standard Printer MIB):
```bash
# HP DesignJet proprietary OID (correct for T1700):
snmpwalk -v2c -c WestJeff2025 10.80.92.24 1.3.6.1.4.1.11.2.3.9.4.2.1.4.1.5.4
# Standard Printer MIB (will NOT work on DesignJet):
snmpwalk -v2c -c WestJeff2025 10.80.92.24 1.3.6.1.2.1.43.11.1.1.9.1
```
2. Ensure you're using template v2 (not v1) which has correct OIDs
3. Check if printer firmware needs update
### Alerts Not Triggering
1. Check trigger expressions in template
2. Verify item data is being collected
3. Check trigger dependencies
4. Review Zabbix logs for errors
## Additional Resources
- **HP Support**: [HP DesignJet T1700 Support](https://support.hp.com/us-en/product/hp-designjet-t1700-printer-series/7528524)
- **Ink Specifications**: [HP 730 Cartridge Info](https://www.hp.com/us-en/shop/cat/designjet-730-ink-cartridges)
- **SNMP MIB**: Printer-MIB (RFC 3805)
- **HP Enterprise MIB**: HP-LASERJET-COMMON-MIB