Ad Widget

Collapse

Looking for a template for SNMP/QNAP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frlan
    Junior Member
    • May 2012
    • 18

    #1

    Looking for a template for SNMP/QNAP

    Hi folks,

    Is anybody able to provide a template to monitor a QNAP (879U-RP) via SNMP?

    Cheers,
    Frank
  • elvar
    Senior Member
    • Feb 2008
    • 226

    #2
    Any luck finding one? I am looking for one myself.


    Regards,

    Comment

    • Adune
      Junior Member
      • Jun 2008
      • 12

      #3
      I'm building a template for QNAPs. Posting here to find it later.

      Comment

      • elvar
        Senior Member
        • Feb 2008
        • 226

        #4
        Originally posted by Adune
        I'm building a template for QNAPs. Posting here to find it later.

        Cheers to you!

        Comment

        • Adune
          Junior Member
          • Jun 2008
          • 12

          #5
          XML attached. It's a little bit disappointing, many of the values that you'd like to evaluate & create triggers from are returned as a string rather than values.

          XML Contains:
          CPU, Fan, Network IO, Temperature
          Discovery for Disks:
          -HD Model, SMART Status, Disk Status, Temp
          Discovery for Volumes:
          -Filesystem, FreeSize, Status, Total Size

          This template only contains items enumerated in the QNAP MIB. There's additional info you can pull from standard snmp if you so desire.

          Free memory in bytes is broken--it returns a very low value. You can switch to .1.3.6.1.4.1.24681.1.2.3.0 as a char value, but it returns a text value of XXXMB.
          Attached Files

          Comment

          • elvar
            Senior Member
            • Feb 2008
            • 226

            #6
            Originally posted by Adune
            Free memory in bytes is broken--it returns a very low value. You can switch to .1.3.6.1.4.1.24681.1.2.3.0 as a char value, but it returns a text value of XXXMB.

            I remember reading some posts on the Qnap forums where other people complained about this as well. That's unfortunate. Thanks for the template!


            Regards,

            Comment

            • zerocool
              Member
              Zabbix Certified Specialist
              • Jul 2007
              • 33

              #7
              Hello,

              I tried to import your template, but I got this error and I can not figure out where I'm wrong.
              Can you help me?
              This is a message during import :

              Created: Application "Disk" on "QNAP".
              Created: Application "Network" on "QNAP".
              Created: Application "System" on "QNAP".
              Created: Item "CPU Usage" on "QNAP".
              Created: Item "Free Memory" on "QNAP".
              Created: Item "LAN1-In" on "QNAP".
              Created: Item "LAN1-Out" on "QNAP".
              Created: Item "LAN2-In" on "QNAP".
              Created: Item "LAN2-Out" on "QNAP".
              Created: Item "Model" on "QNAP".
              Created: Item "System Fan Speed" on "QNAP".
              Created: Item "System Temperature" on "QNAP".
              Created: Item "System Uptime" on "QNAP".
              Created: Item "Total Memory" on "QNAP".
              Created: Discovery rule "Discovered Disks" on "QNAP".
              Created: Discovery rule "Discovered Volumes" on "QNAP".
              Cannot find value map "QNAP Drive Status" used for item prototype "{#SNMPVALUE} Status" of discovery rule "Discovered Disks" on "QNAP".

              Thanks in advance for the help you want/can give me.

              Regards.

              Comment

              • Adune
                Junior Member
                • Jun 2008
                • 12

                #8
                Good catch. You'll need the value mapping for disk status. I'm not sure how to export that.

                Create a new Value mapping named QNAP Drive Status
                -4=Unknown
                -5=No Disk
                -6=Invalid
                -9=Read/Write Error
                0=Ready

                Comment

                • zerocool
                  Member
                  Zabbix Certified Specialist
                  • Jul 2007
                  • 33

                  #9
                  Thanks..

                  Great Job.
                  Now the import template work :-)
                  But the value (-4 to name one) indicate "less 4" or only "4" ?

                  Thanks again.

                  Regards


                  Originally posted by Adune
                  Good catch. You'll need the value mapping for disk status. I'm not sure how to export that.

                  Create a new Value mapping named QNAP Drive Status
                  -4=Unknown
                  -5=No Disk
                  -6=Invalid
                  -9=Read/Write Error
                  0=Ready

                  Comment

                  • Adune
                    Junior Member
                    • Jun 2008
                    • 12

                    #10
                    You'll need to use negative numbers. For whatever reason the SNMP returns 0 & negative values. Because zabbix uses unsigned integers, if you don't have the value mapping done this way, it will record very large numbers instead. (64 bit unsigned max value - X)

                    Comment

                    • McUles
                      Junior Member
                      • Oct 2013
                      • 1

                      #11
                      For the "Cannot find value map "QNAP Drive Status" used for item prototype "{#SNMPVALUE} Status" of discovery rule "Discovered Disks" on "QNAP"." Error, just add following to your Database:

                      INSERT INTO `valuemaps` (`valuemapid`,`name`) values ('12','QNAP Drive Status');
                      INSERT INTO `mappings` (`mappingid`,`valuemapid`,`value`,`newvalue`) values ('72','12','-4','Unknown');
                      INSERT INTO `mappings` (`mappingid`,`valuemapid`,`value`,`newvalue`) values ('73','12','-5','No Disk');
                      INSERT INTO `mappings` (`mappingid`,`valuemapid`,`value`,`newvalue`) values ('74','12','-6','Invalid');
                      INSERT INTO `mappings` (`mappingid`,`valuemapid`,`value`,`newvalue`) values ('75','12','-0','Read/Write Error');
                      INSERT INTO `mappings` (`mappingid`,`valuemapid`,`value`,`newvalue`) values ('76','12','0','Ready');

                      Comment

                      • zerocool
                        Member
                        Zabbix Certified Specialist
                        • Jul 2007
                        • 33

                        #12
                        Hello,

                        I had already solved by creating a Value Mapping on Zabbix server as follows:

                        name value mappings: QNAP Drive Status

                        Securities :

                        -4 ⇒ Unknown
                        -5 ⇒ No Disk
                        -6 ⇒ Invalid
                        -9 ⇒ Read / Write Error
                        0 ⇒ Ready

                        Thank you for the support.

                        Comment

                        Working...