Ad Widget

Collapse

system.hw.chassis

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zaniwoop
    Senior Member
    • Jan 2010
    • 232

    #1

    system.hw.chassis

    I am trying to retrieve information about the hardware, using the zabbix agent system.hw.chassis key.

    If I use the command line

    Code:
     zabbix_agent -t system.hw.chassis[model]
    I get a response

    Code:
    system.hw.chassis[model]    [s|ProLiant DL360 G6]
    But the item I have created, with the key used above, returns ZBX_NOTSUPPORTED, both in Linux and Windows.

    The agent log (debuglevel=4) has this to say:
    Code:
      3246:20130104:122643.454 Requested [system.hw.chassis[model]]
      3246:20130104:122643.454 Sending back [ZBX_NOTSUPPORTED]
    I am running version 2.0.4 on both the server and agents
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    I see the same issue.

    In the Wiki it shows this for that particular item: Root permissions are required because the value is acquired by reading from memory.

    Maybe that is the problem.

    Comment

    • tchjts1
      Senior Member
      • May 2008
      • 1605

      #3
      Yeah, I believe permissions are the issue.

      On my Zabbix server, if I run this as root I get the information:
      # zabbix_agentd -t system.hw.chassis[model]
      system.hw.chassis[model] [s|VMware Virtual Platform]

      But if I run it as zabbix user, I get this:
      $ zabbix_agentd -t system.hw.chassis[model]
      system.hw.chassis[model] [m|ZBX_NOTSUPPORTED]

      Comment

      • Zaniwoop
        Senior Member
        • Jan 2010
        • 232

        #4
        In the Wiki it shows this for that particular item: Root permissions are required because the value is acquired by reading from memory
        Ok... What's the solution for Windows Servers?

        Comment

        • chopeta
          Junior Member
          • Feb 2013
          • 5

          #5
          I am trying to accomplish this in my linux servers and I am getting only ZBX_NOTSUPPORTED.

          Were you guys able to implement this?

          Do anybody else knows exactly what are the steps to make key
          "system.hw.chassis" work on zabbix_agentd?

          As root:
          # zabbix_agentd -t system.hw.chassis
          system.hw.chassis [s|Dell Inc. PowerEdge 1950 XXXXXXX Rack Mount Chassis]

          As zabbix:
          # su -s /bin/sh zabbix -c "zabbix_agentd -t system.hw.chassis"
          system.hw.chassis [m|ZBX_NOTSUPPORTED]

          I am using Zabbix 2.0.5 on both server and agent (provided by ZabbixZone Repo).

          Same problem with Ubuntu and stable agent 2.0.4

          I've tried changing /etc/sudoers in a lot of diff. ways without any luck.

          Any help is deeply appreciated.

          Comment

          • harmonica
            Senior Member
            • Jan 2009
            • 251

            #6
            You could try and change in zabbix_agentd.conf the "Option: AllowRoot"

            Regards

            Comment

            • Zaniwoop
              Senior Member
              • Jan 2010
              • 232

              #7
              Yes, on the Linux hosts, you need to add
              Code:
              AllowRoot=1
              to the zabbix_agentd.conf file

              Comment

              • chopeta
                Junior Member
                • Feb 2013
                • 5

                #8
                Thank you so much guys!

                AllowRoot did the trick.

                Best regards,
                chopeta

                Comment

                • Zaniwoop
                  Senior Member
                  • Jan 2010
                  • 232

                  #9
                  Now, if only we can get the same information for Windows devices....

                  Comment

                  • davidex
                    Junior Member
                    • Nov 2022
                    • 3

                    #10
                    Now i have the same problem still with Windows devices, do you guys have find out some solution?

                    Comment


                    • geoffke
                      geoffke commented
                      Editing a comment
                      Just use this:
                      Serial: wmi.getall[root\cimv2,"SELECT serialnumber FROM WIN32_BIOS"]
                      Model: wmi.getall[root\cimv2,"SELECT model FROM Win32_COMPUTERSYSTEM"]

                      Have a look at the WMI queries, you will see there is much more information which can be gathered
                  • Hamardaban
                    Senior Member
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • May 2019
                    • 2713

                    #11
                    RTFM !
                    https://www.zabbix.com/documentation...ystem.hw.chass
                    system.hw.chassis[<info>]
                    Chassis information. String info - one of full (default), model, serial, type or vendor Supported platforms:
                    Linux.

                    Comment

                    Working...