5.02021-11-21T21:46:24ZTemplates/PrintersBrother PrintersBrother Printers## Overview
На базе шаблона на испанском сделал этот шаблон.
Под указанный принтер - работает. Уровни тонера и Кита. Графики.
Вопросы на 2135850@211.ru
## Author
Sergey Sidenko
Templates/PrintersPrinterServicesSystem- Распечатано страницSNMP_AGENT.1.3.6.1.2.1.43.10.2.1.4.1.1.1.3.6.1.2.1.43.10.2.1.4.1.11hFLOATPrinter
- Остаток ресурса DRUM UNIT (страниц)SNMP_AGENT.1.3.6.1.2.1.43.11.1.1.9.1.2.1.3.6.1.2.1.43.11.1.1.9.1.23hPrinter
- HTTP CheckSIMPLEnet.tcp.service[http]30Services{last(0)}<>1HTTP Service is Unreachable at {HOST.NAME}HIGH
- Print Spooler CheckSIMPLEnet.tcp.service[tcp,,515]30Services{last(0)}=0Printer Spooler Service is Unreachable at {HOST.NAME}HIGH
- JetDirect CheckSIMPLEnet.tcp.service[tcp,,9100]30Services{last(0)}=0JetDirect Service is Unreachable at {HOST.NAME}HIGH
- prtMarkerSuppliesLevelSNMP_AGENT.1.3.6.1.2.1.43.11.1.1.9.1.2prtMarkerSuppliesLevel1hPrinter
- prtMarkerSuppliesLevel %CALCULATEDprtMarkerSuppliesLevel-percent1h180d%100*last(prtMarkerSuppliesLevel)/last(prtMarkerSuppliesLevelMax)Printer{last()}<10Уровень тонера {HOSTNAME} < 10 %WARNING{last()}<20Уровень тонера {HOSTNAME} < 20 %INFO
- prtMarkerSuppliesLevelMaxSNMP_AGENT.1.3.6.1.2.1.43.11.1.1.8.1.2prtMarkerSuppliesLevelMax3hPrinter
- Device contact detailsSNMP_AGENT1.3.6.1.2.1.1.4.0system.contact3h2w0CHARMIB: SNMPv2-MIB
The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string.CONTACTSystem
- Device descriptionSNMP_AGENT1.3.6.1.2.1.1.1.0system.descr3h2w0CHARMIB: SNMPv2-MIB
A textual description of the entity. This value should
include the full name and version identification of the system's hardware type, software operating-system, and
networking software.HARDWARESystem
- Device IP adressSNMP_AGENT.1.3.6.1.4.1.11.2.4.3.5.2.0system.ip3h7d0TEXTSystem
- Device locationSNMP_AGENT1.3.6.1.2.1.1.6.0system.location3h2w0TEXTMIB: SNMPv2-MIB
The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string.LOCATIONSystem
- Device modelSNMP_AGENT.1.3.6.1.2.1.25.3.2.1.3.1system.model3h0TEXTSystem
- Device nameSNMP_AGENT1.3.6.1.2.1.1.5.0system.name3h2w0CHARMIB: SNMPv2-MIB
An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.NAMESystem
- System object IDSNMP_AGENT1.3.6.1.2.1.1.2.0system.objectid3h2w0CHARMIB: SNMPv2-MIB
The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed. For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.System
- Device SNSNMP_AGENT.1.3.6.1.2.1.43.5.1.1.17.1system.sn3h0TEXTSystem
- Device uptimeSNMP_AGENT1.3.6.1.2.1.1.3.0system.uptime[sysUpTime]2w0duptimeMIB: SNMPv2-MIB
The time (in hundredths of a second) since the network management portion of the system was last re-initialized.SystemMULTIPLIER0.01
- SNMP availabilityINTERNALzabbix[host,snmp,available]2w0dSystemzabbix.host.available
ConsumablesSNMP_AGENT.1.3.6.1.2.1.43.11.1.1.6.1consumablesID60$1 Current CapacitySNMP_AGENT.1.3.6.1.2.1.43.11.1.1.9.1.{#SNMPINDEX}ConsumableCurrentCapacity[{#SNMPVALUE}]30FLOAT$1 Max CapacitySNMP_AGENT.1.3.6.1.2.1.43.11.1.1.8.1.{#SNMPINDEX}ConsumableMaxCapacity[{#SNMPVALUE}]30FLOAT$1 Calculated Capacity (current/max)CALCULATEDCosumableCalculated[{#SNMPVALUE}]30FLOAT%last("ConsumableCurrentCapacity[{#SNMPVALUE}]")/last("ConsumableMaxCapacity[{#SNMPVALUE}]")Depending on the consumable (toner vs drum/belt) this calculation will return a particular percentage.
Drum Units & Belt Units return integer values that can be used in calculations to determine a percentage of how much of the unit is remaining. Max "status" is stored in the MIB and is used in the calculation.
Toner consumables return the follow codes:
-3 = Level Okay
-2 = Low Warning (equivalent to “max status”)
0 = Critical/empty
Toner possibilities for calculations of current / max * 100
-3 / -2 * 100 = 150%
-2 / -2 * 100 = 100%
0 / -2 * 100 = 0%
The calculations above are used in the triggers to make it very straight forward on determining if a toner is low or not.MULTIPLIER100{Brother Printers:CosumableCalculated[{#SNMPVALUE}].last(0)}<10 or {Brother Printers:ConsumableCurrentCapacity[{#SNMPVALUE}].last(0)}=0{HOSTNAME} {#SNMPVALUE} - Critical: {ITEM.LASTVALUE}HIGHChecks if at "critical" level for Toners (code = 0) or drum/belt (<10%){Brother Printers:CosumableCalculated[{#SNMPVALUE}].last(0)}>10 and {Brother Printers:CosumableCalculated[{#SNMPVALUE}].last(0)}<30 or {Brother Printers:ConsumableCurrentCapacity[{#SNMPVALUE}].last(0)} = -2{HOSTNAME} {#SNMPVALUE} - Low Warning: {ITEM.LASTVALUE}WARNINGChecks if at "warning" level for Toners (code = -2) or drum/belt (>10% & <30%){#SNMPVALUE}NONOSTACKED0000C8- Brother PrintersConsumableCurrentCapacity[{#SNMPVALUE}]
Всего распечатано страниц1A7C11- Brother Printers.1.3.6.1.2.1.43.10.2.1.4.1.1
Ресурс DRUM UNIT, страниц1A7C11- Brother Printers.1.3.6.1.2.1.43.11.1.1.9.1.2
Уровень черного тонера в картридже, %FIXEDFIXEDFILLED_REGION3C3C3C- Brother PrintersprtMarkerSuppliesLevel-percent
zabbix.host.available0not available1available2unknown