Ad Widget

Collapse

How to create a template for an HP printer?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maximus21gg
    Junior Member
    • Sep 2022
    • 8

    #1

    How to create a template for an HP printer?

    I need to figure out how to write an hp laserjet pro m203dn xml template from scratch to keep track of all the basic data like how much toner is left, cover open etc if possible. I have the output of the command "snmpwalk -v 1 -c public 10.113.1.30" but I don't know what to do next. I'm a complete noob at this.
  • marianogedisman
    Member
    • Oct 2021
    • 78

    #2
    Originally posted by maximus21gg
    I need to figure out how to write an hp laserjet pro m203dn xml template from scratch to keep track of all the basic data like how much toner is left, cover open etc if possible. I have the output of the command "snmpwalk -v 1 -c public 10.113.1.30" but I don't know what to do next. I'm a complete noob at this.
    Try this: https://github.com/Sean-Bradley/SNMP2ZABBIX

    Comment

    • maximus21gg
      Junior Member
      • Sep 2022
      • 8

      #3
      Originally posted by marianogedisman
      I tried, it doesn't work, or I don't understand anything about it. Is there any easy to understand instructions?

      Comment

    • marianogedisman
      Member
      • Oct 2021
      • 78

      #4
      I was able to pull a template with SNMP2ZABBIX​ very easily.

      Click image for larger version

Name:	image.png
Views:	5094
Size:	1.52 MB
ID:	451766

      Comment

      • maximus21gg
        Junior Member
        • Sep 2022
        • 8

        #5
        Originally posted by marianogedisman
        I was able to pull a template with SNMP2ZABBIX​ very easily.

        Click image for larger version

Name:	image.png
Views:	5094
Size:	1.52 MB
ID:	451766

        well, I'll try again. thanks, I assumed that this script is the most correct option

        Comment


        • marianogedisman
          marianogedisman commented
          Editing a comment
          It's not a very easy thing to do. I'm still fighting with this script because it's not pulling all of the OIDs from the printer.
          It depends on what you need to do. In my case: I try to pull as many OIDs as possible with this script, and if I'm missing something I just user snmpwalk and snmpget if necessary.

          Let me know if you got it to work. I'm also stuck with the preprocessing part, as SystemUpTimes are not working for me at the moment.

          Best of luck!
      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #6
        Scripts like that are a way to automate creating items and sometimes triggers, when you need to collect a huge amount of data.

        If you only need a few items, it's often very easy to just look through the MIB and decide what OIDs you want to gather. Creating a template isn't magic, it's just a collection of things like items, triggers, etc. that you can easily apply to a host. Writing the items "by hand" sometimes gives you a better understanding of what's going on than just using an automated tool. Of course, if the tool is working, its output can be used as another source of information and ideas for how to write your own items.

        Comment

        • maximus21gg
          Junior Member
          • Sep 2022
          • 8

          #7
          Originally posted by tim.mooney
          Scripts like that are a way to automate creating items and sometimes triggers, when you need to collect a huge amount of data.

          If you only need a few items, it's often very easy to just look through the MIB and decide what OIDs you want to gather. Creating a template isn't magic, it's just a collection of things like items, triggers, etc. that you can easily apply to a host. Writing the items "by hand" sometimes gives you a better understanding of what's going on than just using an automated tool. Of course, if the tool is working, its output can be used as another source of information and ideas for how to write your own items.
          I need to figure out at least a little bit which oids are responsible for what. I don’t really rummage about this, I was given such a task to monitor the printer in zabbix

          Comment

          • tim.mooney
            Senior Member
            • Dec 2012
            • 1427

            #8
            Originally posted by maximus21gg
            I need to figure out at least a little bit which oids are responsible for what. I don’t really rummage about this, I was given such a task to monitor the printer in zabbix
            In that case, you can often look at templates for other printers from the same manufacturer. There will be model-specific differences, but a lot of the most common OIDs will often be the same between different models.

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4807

              #9
              There is a bit of info to digest.. http://www.circitor.fr/Mibs/Html/H/H...COMMON-MIB.php

              Comment

              Working...