Ad Widget

Collapse

Inventory in automatic mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • getUP
    Member
    • Jun 2006
    • 34

    #1

    Inventory in automatic mode

    I'm not sure what I'm missing, but it seems that hardware information can't be pulled from our systems.

    Code:
    # zabbix_agentd -t system.hw.chassis[full]
    system.hw.chassis[full]                       [m|ZBX_NOTSUPPORTED]
    What am I missing or doing wrong?
  • harmonica
    Senior Member
    • Jan 2009
    • 251

    #2


    "Root permissions are required because the value is acquired by reading from memory."

    Comment

    • getUP
      Member
      • Jun 2006
      • 34

      #3
      Thanks, I didn't notice that.

      So basically it all comes down to running the agent as root? That's not going to happen. It might be easier for us to write some wrappers around dmidecode to do the same but using sudoers.

      Comment

      • harmonica
        Senior Member
        • Jan 2009
        • 251

        #4
        Yes. In zabbix_agentd.conf change

        # AllowRoot=0
        to
        AllowRoot=1

        Comment

        • mcintoshj
          Junior Member
          • Oct 2013
          • 9

          #5
          System chassis from dmidecode with sudoers.d

          Originally posted by getUP
          Thanks, I didn't notice that.

          So basically it all comes down to running the agent as root? That's not going to happen. It might be easier for us to write some wrappers around dmidecode to do the same but using sudoers.
          Simple solution for you:

          If you allow remote commands to be run (and log them), you can install dmidecode and do these:

          * dmidecode -s system-product-name is the equivalent (for us) of system.hw.chassis[model]

          * system.hw.chassis[vendor] -> dmidecode -s system-manufacturer

          SO I have items like "system.run[sudo /usr/sbin/dmidecode -s system-manufacturer]" that run every 3600 to get that information

          Comment

          Working...