Ad Widget

Collapse

Template for Zebra printers needed. Anybody able to share one?

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Argon0
    Member
    • Mar 2023
    • 51

    #1

    Template for Zebra printers needed. Anybody able to share one?

    Hi, I started to work on a template for Zebra printers as we have hundreds around the organisation. I used the script SNMP2ZABBIX to create a template, which created 66 Discovery rules and hundreds of items/item protoypes, great methinks, but the names in the template don't reflect names from the MIB (attached).

    The template (that I finally got to import, after removing some failing item_prototypes, also attachede), doesn't seem to give me what I was hoping for.....


    Any help would be appreciated.​
    Attached Files
  • Answer selected by Argon0 at 19-01-2024, 17:47.
    geoffke
    Junior Member
    • Dec 2020
    • 7

    Monitoring label printers generally works best if you use a combination of SNMP traps with ICMP ping.

    Prerequisites
    Your Zabbix server and/or proxy has to be able to receive SNMP traps, otherwise this will not work as Zabbix will not know what to do with it. A manual for Debian can be found here: https://majornetwork.net/2021/05/con...bix-on-debian/ however there are differences depending on the Server OS you are using. Please do some investigation as it is not easy to do the setup (unless you are experienced Linux system engineer). Setting up SNMP on your system has a lot of bumps along the road but there are more than enough tutorials you can find on this.


    Zebra printer setup
    Assuming you were able to setup your system to receive SNMP traps, you can continue these next steps. This manual should work on all Zebra label printer models (below instructions were tested on ZTC 140Xi4-203dpi ZPL and ZTC ZT620-203dpi ZPL).
    1. Login to the webinterface. The default user name is "admin", and the default password is "1234".
    2. Go to "Alert setup" ("Waarschuwingsinstelling" in Dutch).
    3. Add an alert ("Waarschuwingsbericht toevoegen" in Dutch)
    4. Now do the following:
      • Set "Condition" to "All messages" (Alle berichten in Dutch).
      • Set "Destination" to "SNMP".
      • Leave "SET" ("INSTELLEN" in Dutch) as "Yes" if you want Alert sent when condition is met.
      • Leave "CLR" ("WISSEN" in Dutch) as "Yes" if you want Alert sent when condition is cleared.
      • Set "Address" to the IP address of your Zabbix server/proxy (invalid IP 123.123.123.123 used in this example).
      • Set the "Port" to "162" which is the default for SNMP traps.
    5. Now enter the password in below field before clicking "Add alert message" ("Waarschuwingsbericht toevoegen" in Dutch), otherwise your setting will be lost!
    6. Do not forget to save the printer settings so it is not lost after reboot!
    7. Open the printhead on the printer or simulate any other error.
    8. Check your Zabbix server/proxy log to see if traps are coming in:
      • Using cat so you can check history as well: sudo cat /var/log/zabbix/zabbix_server.log | grep 'enterprises'
      • Using live view (all new traps): sudo tail -f /var/log/zabbix/zabbix_server.log | grep 'enterprises'
    9. You should see "...unmatched trap received from​..." in your logfile.


    Zabbix host setup
    1. Open your Zabbix interface.
    2. Go to "Configuration > Hosts".
    3. Add a host config for your ​printer in Zabbix with SNMPv2 interface and community set to "public". Make sure the "Host name" field has the same value as the actual hostname configured in your printer.
    4. Connect the " Template Printer Zebra.yaml.zip " to this host config (unzip it first of course).
    5. Do some simultaneous checks:
      • Check "Monitoring > Latest data" for your printer and filter for name "SNMP trap fallback".
      • Also monitor your "Monitoring > Problems".
      • Check the SNMP trap log file on your Zabbix server/proxy
    6. Open the printhead on the printer or simulate any other error, it should end up in Zabbix.
      • On the "Latest data" page (and in your snmptrap logfile) you should see something like: "18:30:23 2023/04/27 SNMPv2-SMI::enterprises.683.6.2.7.0.21 Normal "General event" FQDN - 192.168.123.123 severity:Normal
        enterprises.683.6.2.7:3495247902 enterprises.683.6.2.7:HOSTNAME enterprises.683.6.2.7: enterprises.683.6.2.7:[2023-04-28 01:29:02] enterprises.683.6.2.7:ALERT: HEAD OPEN
        " (The red marked text will contain your printer FQDN, IP and Hostname)
      • And on the "Problems" page should show "HEAD OPEN" as a "High" alert.
    7. Possible alerts you will receive using SNMP trap:
      • ALL MESSAGES
      • PAPER OUT
      • RIBBON OUT
      • HEAD OPEN
      • RIBBON IN
      • CUTTER JAMMED
      • PRINTER PAUSED
      • MEDIA LOW
      • RIBBON LOW
      • BATTERY LOW
      • INVALID HEAD
      • COUNTRY CODE ERROR
      • BATTERY MISSING
      • MEDIA CARTRIDGE
      • MEDIA CARTRIDGE LOAD FAILURE
      • MEDIA CARTRIDGE EJECT FAILURE
      • MEDIA CARTRIDGE FORCED EJECT

    I know above instructions show quite some steps to follow and can be challenging for users still discovering Zabbix and learning Linux. Please extract enough time to read the available system documentation for your Zabbix server/proxy Operating System on how to install and setup "snmp, snmpd, snmptt and snmptrapd". Also read the Zabbix documentation on how to enable SNMP traps and how to create snmptrap items in Zabbix.​
    Attached Files
    Last edited by geoffke; 27-04-2023, 21:05.

    Comment


    • TheKyoshi
      TheKyoshi commented
      Editing a comment
      Hello
      I was wondering if you can reupload the zebra template
      Thank you

    • TheKyoshi
      TheKyoshi commented
      Editing a comment
      thank you very much

    • geoffke
      geoffke commented
      Editing a comment
      TheKyoshi you can download it from the "Attached Files" section at the bottom of the original post, it is still available.
  • geoffke
    Junior Member
    • Dec 2020
    • 7

    #2
    Monitoring label printers generally works best if you use a combination of SNMP traps with ICMP ping.

    Prerequisites
    Your Zabbix server and/or proxy has to be able to receive SNMP traps, otherwise this will not work as Zabbix will not know what to do with it. A manual for Debian can be found here: https://majornetwork.net/2021/05/con...bix-on-debian/ however there are differences depending on the Server OS you are using. Please do some investigation as it is not easy to do the setup (unless you are experienced Linux system engineer). Setting up SNMP on your system has a lot of bumps along the road but there are more than enough tutorials you can find on this.


    Zebra printer setup
    Assuming you were able to setup your system to receive SNMP traps, you can continue these next steps. This manual should work on all Zebra label printer models (below instructions were tested on ZTC 140Xi4-203dpi ZPL and ZTC ZT620-203dpi ZPL).
    1. Login to the webinterface. The default user name is "admin", and the default password is "1234".
    2. Go to "Alert setup" ("Waarschuwingsinstelling" in Dutch).
    3. Add an alert ("Waarschuwingsbericht toevoegen" in Dutch)
    4. Now do the following:
      • Set "Condition" to "All messages" (Alle berichten in Dutch).
      • Set "Destination" to "SNMP".
      • Leave "SET" ("INSTELLEN" in Dutch) as "Yes" if you want Alert sent when condition is met.
      • Leave "CLR" ("WISSEN" in Dutch) as "Yes" if you want Alert sent when condition is cleared.
      • Set "Address" to the IP address of your Zabbix server/proxy (invalid IP 123.123.123.123 used in this example).
      • Set the "Port" to "162" which is the default for SNMP traps.
    5. Now enter the password in below field before clicking "Add alert message" ("Waarschuwingsbericht toevoegen" in Dutch), otherwise your setting will be lost!
    6. Do not forget to save the printer settings so it is not lost after reboot!
    7. Open the printhead on the printer or simulate any other error.
    8. Check your Zabbix server/proxy log to see if traps are coming in:
      • Using cat so you can check history as well: sudo cat /var/log/zabbix/zabbix_server.log | grep 'enterprises'
      • Using live view (all new traps): sudo tail -f /var/log/zabbix/zabbix_server.log | grep 'enterprises'
    9. You should see "...unmatched trap received from​..." in your logfile.


    Zabbix host setup
    1. Open your Zabbix interface.
    2. Go to "Configuration > Hosts".
    3. Add a host config for your ​printer in Zabbix with SNMPv2 interface and community set to "public". Make sure the "Host name" field has the same value as the actual hostname configured in your printer.
    4. Connect the " Template Printer Zebra.yaml.zip " to this host config (unzip it first of course).
    5. Do some simultaneous checks:
      • Check "Monitoring > Latest data" for your printer and filter for name "SNMP trap fallback".
      • Also monitor your "Monitoring > Problems".
      • Check the SNMP trap log file on your Zabbix server/proxy
    6. Open the printhead on the printer or simulate any other error, it should end up in Zabbix.
      • On the "Latest data" page (and in your snmptrap logfile) you should see something like: "18:30:23 2023/04/27 SNMPv2-SMI::enterprises.683.6.2.7.0.21 Normal "General event" FQDN - 192.168.123.123 severity:Normal
        enterprises.683.6.2.7:3495247902 enterprises.683.6.2.7:HOSTNAME enterprises.683.6.2.7: enterprises.683.6.2.7:[2023-04-28 01:29:02] enterprises.683.6.2.7:ALERT: HEAD OPEN
        " (The red marked text will contain your printer FQDN, IP and Hostname)
      • And on the "Problems" page should show "HEAD OPEN" as a "High" alert.
    7. Possible alerts you will receive using SNMP trap:
      • ALL MESSAGES
      • PAPER OUT
      • RIBBON OUT
      • HEAD OPEN
      • RIBBON IN
      • CUTTER JAMMED
      • PRINTER PAUSED
      • MEDIA LOW
      • RIBBON LOW
      • BATTERY LOW
      • INVALID HEAD
      • COUNTRY CODE ERROR
      • BATTERY MISSING
      • MEDIA CARTRIDGE
      • MEDIA CARTRIDGE LOAD FAILURE
      • MEDIA CARTRIDGE EJECT FAILURE
      • MEDIA CARTRIDGE FORCED EJECT

    I know above instructions show quite some steps to follow and can be challenging for users still discovering Zabbix and learning Linux. Please extract enough time to read the available system documentation for your Zabbix server/proxy Operating System on how to install and setup "snmp, snmpd, snmptt and snmptrapd". Also read the Zabbix documentation on how to enable SNMP traps and how to create snmptrap items in Zabbix.​
    Attached Files
    Last edited by geoffke; 27-04-2023, 21:05.

    Comment


    • TheKyoshi
      TheKyoshi commented
      Editing a comment
      Hello
      I was wondering if you can reupload the zebra template
      Thank you

    • TheKyoshi
      TheKyoshi commented
      Editing a comment
      thank you very much

    • geoffke
      geoffke commented
      Editing a comment
      TheKyoshi you can download it from the "Attached Files" section at the bottom of the original post, it is still available.
  • bicker
    Junior Member
    • Apr 2023
    • 1

    #3
    When importing a template, I have a message.

    Click image for larger version

Name:	image.png
Views:	2872
Size:	9.9 KB
ID:	464170

    can anyone help ?

    Comment

  • cpd@alliance.ind.br
    Junior Member
    • Sep 2024
    • 2

    #4
    Hello, the template link is unavailable.
    Does anyone have this file to send?
    If you have it, please send it to: [email protected]

    Comment


    • mbghost
      mbghost commented
      Editing a comment
      Hello,

      Did anyone send you template?

    • geoffke
      geoffke commented
      Editing a comment
      Template is still available after login, I've just checked :-)
Working...