Skip to content

Commit

Permalink
Merge pull request zabbix#35 from PatxiAndueza/main
Browse files Browse the repository at this point in the history
Template for Kyocera printers by SNMPv2
  • Loading branch information
oscar120584 authored Feb 16, 2022
2 parents 5c697e3 + 5568398 commit 1b92cc7
Show file tree
Hide file tree
Showing 2 changed files with 333 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Printers/template_kyocera_printers/5.4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Kyocera printers by SNMPv2

## Overview

Template created for Kyocera ECOSYS m3655idn.
Works in any Kyocera printer.


Contains items for:

* Printer name
* Cartridge name
* Serial Number
* Printer status
* Total pages printed
* Printed with toner
* Toner capacity
* Toner level (%)


Triggers for:

* Toner < 5%

## Macros used

* {$COMM} for Community Name

## Author

Patxi Andueza
Based on [sysadminwork's template] (https://sysadminwork.com/monitoring-printers-hp-kyocera-brother-via-snmp-with-zabbix/)
301 changes: 301 additions & 0 deletions Printers/template_kyocera_printers/5.4/template_kyocera_printers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.4</version>
<date>2022-02-15T07:59:18Z</date>
<groups>
<group>
<uuid>e40dc5c700014dddb839e76ca87f150c</uuid>
<name>Templates/Printer</name>
</group>
</groups>
<templates>
<template>
<uuid>5fa1650e787a4c9ba2b3afea17105dc1</uuid>
<template>Kyocera printers by SNMPv2</template>
<name>Kyocera printers by SNMPv2</name>
<groups>
<group>
<name>Templates/Printer</name>
</group>
</groups>
<items>
<item>
<uuid>e1e94a79fda243e988cb276b81d97138</uuid>
<name>Toner level (%)</name>
<type>CALCULATED</type>
<key>level-toner</key>
<delay>10m</delay>
<units>%</units>
<params>100-100*(last(//mib-2.43.11.1.1.9.1.1)/last(//mib-2.43.11.1.1.8.1.1))</params>
<tags>
<tag>
<tag>Application</tag>
<value>Printer</value>
</tag>
</tags>
<triggers>
<trigger>
<uuid>9ec65f19608a4d709b1164850013f31b</uuid>
<expression>last(/Kyocera printers by SNMPv2/level-toner,#1)&lt;5</expression>
<name>Toner level less than 5% on {HOST.NAME}</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger>
</triggers>
</item>
<item>
<uuid>9eb3d168a7fc49dc9e5a6f6415c76ed6</uuid>
<name>Printer name</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.2.1.43.5.1.1.16.1</snmp_oid>
<key>mib-2.43.5.1.1.16.1</key>
<delay>1d</delay>
<trends>0</trends>
<value_type>TEXT</value_type>
<tags>
<tag>
<tag>Application</tag>
<value>Printer</value>
</tag>
</tags>
</item>
<item>
<uuid>9b088a58da9c4ddb9d10ed1086d7dcf4</uuid>
<name>Serial Number</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.2.1.43.5.1.1.17.1</snmp_oid>
<key>mib-2.43.5.1.1.17.1</key>
<delay>1d</delay>
<history>365d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<tags>
<tag>
<tag>Application</tag>
<value>Printer</value>
</tag>
</tags>
</item>
<item>
<uuid>119639cc64114169b72971d13a9dc1ff</uuid>
<name>Total pages printed</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.2.1.43.10.2.1.4.1.1</snmp_oid>
<key>mib-2.43.10.2.1.4.1.1</key>
<delay>1h</delay>
<history>30d</history>
<tags>
<tag>
<tag>Application</tag>
<value>Printer</value>
</tag>
</tags>
</item>
<item>
<uuid>2a1de2f3997841bb9da80833450d36d9</uuid>
<name>Cartridge name</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.2.1.43.11.1.1.6.1.1</snmp_oid>
<key>mib-2.43.11.1.1.6.1.1</key>
<delay>1d</delay>
<history>365d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<tags>
<tag>
<tag>Application</tag>
<value>Printer</value>
</tag>
</tags>
</item>
<item>
<uuid>28fb2adcaa904a648d8865bfd90d24ce</uuid>
<name>Toner capacity</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.2.1.43.11.1.1.8.1.1</snmp_oid>
<key>mib-2.43.11.1.1.8.1.1</key>
<delay>10m</delay>
<history>30d</history>
<tags>
<tag>
<tag>Application</tag>
<value>Printer</value>
</tag>
</tags>
</item>
<item>
<uuid>3647854885914f4fb6dde00d3f3b88cb</uuid>
<name>Printed with toner</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.2.1.43.11.1.1.9.1.1</snmp_oid>
<key>mib-2.43.11.1.1.9.1.1</key>
<delay>10m</delay>
<history>30d</history>
<tags>
<tag>
<tag>Application</tag>
<value>Printer</value>
</tag>
</tags>
</item>
<item>
<uuid>9104ee6e116f4805b217c4e29aeef34e</uuid>
<name>Printer status</name>
<type>SNMP_AGENT</type>
<snmp_oid>1.3.6.1.2.1.43.16.5.1.2.1.1</snmp_oid>
<key>mib-2.43.16.5.1.2.1.1</key>
<history>30d</history>
<trends>0</trends>
<value_type>TEXT</value_type>
<tags>
<tag>
<tag>Application</tag>
<value>Printer</value>
</tag>
</tags>
</item>
</items>
<macros>
<macro>
<macro>{$COMM}</macro>
<value>public</value>
</macro>
</macros>
<dashboards>
<dashboard>
<uuid>2592654be3bd44e7b71e0af35a9b2a18</uuid>
<name>Printer</name>
<pages>
<page>
<name>Printer info</name>
<widgets>
<widget>
<type>PLAIN_TEXT</type>
<name>Printer info</name>
<width>6</width>
<height>3</height>
<fields>
<field>
<type>INTEGER</type>
<name>show_lines</name>
<value>3</value>
</field>
<field>
<type>ITEM</type>
<name>itemids</name>
<value>
<key>mib-2.43.5.1.1.16.1</key>
<host>Kyocera printers by SNMPv2</host>
</value>
</field>
<field>
<type>ITEM</type>
<name>itemids</name>
<value>
<key>mib-2.43.5.1.1.17.1</key>
<host>Kyocera printers by SNMPv2</host>
</value>
</field>
<field>
<type>ITEM</type>
<name>itemids</name>
<value>
<key>mib-2.43.11.1.1.6.1.1</key>
<host>Kyocera printers by SNMPv2</host>
</value>
</field>
</fields>
</widget>
<widget>
<type>PLAIN_TEXT</type>
<name>Printer status</name>
<y>3</y>
<width>6</width>
<height>6</height>
<fields>
<field>
<type>INTEGER</type>
<name>show_lines</name>
<value>10</value>
</field>
<field>
<type>ITEM</type>
<name>itemids</name>
<value>
<key>mib-2.43.16.5.1.2.1.1</key>
<host>Kyocera printers by SNMPv2</host>
</value>
</field>
</fields>
</widget>
<widget>
<type>GRAPH_CLASSIC</type>
<name>Toner Level</name>
<x>6</x>
<width>18</width>
<height>5</height>
<fields>
<field>
<type>GRAPH</type>
<name>graphid</name>
<value>
<name>Toner Level</name>
<host>Kyocera printers by SNMPv2</host>
</value>
</field>
</fields>
</widget>
<widget>
<type>GRAPH_CLASSIC</type>
<name>Total pages printed</name>
<x>6</x>
<y>5</y>
<width>18</width>
<height>4</height>
<fields>
<field>
<type>GRAPH</type>
<name>graphid</name>
<value>
<name>Total pages printed</name>
<host>Kyocera printers by SNMPv2</host>
</value>
</field>
</fields>
</widget>
</widgets>
</page>
</pages>
</dashboard>
</dashboards>
</template>
</templates>
<graphs>
<graph>
<uuid>ace52f148b4f4a27b9b0712caf7b392e</uuid>
<name>Toner Level</name>
<graph_items>
<graph_item>
<color>F63100</color>
<item>
<host>Kyocera printers by SNMPv2</host>
<key>level-toner</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<uuid>1360765760014d51ad85484ddc12892a</uuid>
<name>Total pages printed</name>
<graph_items>
<graph_item>
<color>1A7C11</color>
<item>
<host>Kyocera printers by SNMPv2</host>
<key>mib-2.43.10.2.1.4.1.1</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
</zabbix_export>

0 comments on commit 1b92cc7

Please sign in to comment.