Detailed dashboard for monitoring of HP LaserJet printers via SNMP.
The Telegraf collector configuration is MIB-based so all of the required MIBs will need to be available for the collector to perform the needed translations. Most SNMP distributions available on most platforms already provide these, except for one (see below). This configuration uses the "new" SNMP plugin for Telegraf, so SNMP monitoring must be enabled in the printer configuration. The 'agents' list in the configuration is of the actual printers themselves.
The included collector configuration uses a few HP-printer-specific OIDs defined in various HP MIBs. These may be difficult to find currently as the HP developer portal seems to have been taken offline. One example is included in the mibs
directory that should be suitable for use here. Add this to one of the search directories for the native SNMP implementation where Telegraf is installed, if needed.
The included Telegraf:SNMP plugin configuration depends upon a feature that is not yet part of the released Telegraf 1.2.
Object IP-MIB::ipSystemStatsTable
leverages a non-accessible index to identify the IP Version for the statistics in each row. The actual index is the sub-id for each table element, of which the Telegraf:SNMP plugin does not currently make
available as a field or tag. However there is a pull-request to add this capability using a new flag 'index_as_tag'
- 'index_as_tag' on tables requires PR #2366 for support
- See influxdata/telegraf#1948
There are two options:
- Wait for a formal release of Telegraf with the needed support. The noted PR is tagged for the Telegraf v1.3 milestone.
- Build custom version of Telegraf with the required PR applied. The changes needed are entirely contained within the single
plugins/inputs/snmp/snmp.go
source file so this is a relatively simple change.
- InfluxDB as the time-series database
- Telegraf as the collector. See above note about specific details.
- Enable SNMP monitoring on your HP LaserJet printers via BUI or printer panel.
- Merge the included
telegraf-inputs.conf
with your local Telegraf instance configuration (or create a new instance) - Edit the SNMP 'community' string as appropriate
- Edit the 'agents' list to include all of your monitored printers
- If you do not already have an InfluxDB output configured in your Telegraf instance:
1. Merge the included
telegraf-outputs.conf
with your local Telegraf instance configuration: 2. Edit the URL to your new InfluxDB instance 3. Edit the username and password for this InfluxDB instance as appropriate - Restart Telegraf
- Import the included
hp-laserjet-dashboard.json
as a new dashboard into your local Grafana instance
hp-laserjet-dashboard.json
:- Actual Grafana dashboard (no edits required)
telegraf-inputs.conf
:- Telegraf input configuration for use with this dashboard (edits required)
telegraf-outputs.conf
:- Optional Telegraf output configuration for use with this dashboard (edits required)
mibs/HP-LASERJET-COMMON-MIB
- MIB file for HP printer-specific objects (no edits required)
This dashboard is not yet available at https://grafana.net/dashboards/, pending a formal release version of Telegraf with the noted 'index_as_tag' support (or similar)