Ad Widget

Collapse

Automatic host inventory - only for Linux?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • s4chin
    Junior Member
    • Mar 2014
    • 7

    #16
    No data

    I also have problem like "vhan" have

    There is no data on server side ( latest data ) and even in inventory.
    Last edited by s4chin; 13-03-2014, 11:55.

    Comment

    • asmaa
      Junior Member
      • Aug 2015
      • 4

      #17
      How can I add item in zabbix interface

      hello every one,

      I have a big problem where I can not find a key 'specHWShort' in the keys of the host

      here what I did

      On agent:
      1-I installed the agent and used configuration file (c:\zabbix\zabbix_agentd.conf)
      2-I added the script 'specHWShort.vbs' on c:\zabbix
      3-I added the line of userparameter in conf file
      UserParameter=specHWShort,cscript /nologo "c:\zabbix\specHWShort.vbs"
      4-I restared the agent

      on server:
      1-I went to configuration-->hosts>'required server'-->item tap--> create item--> select key -->
      at this point I donot find 'specHWShort' key
      what can I do ?
      Please help

      Comment

      • syntax53
        Member
        • Mar 2018
        • 40

        #18
        Trying to get this setup on Windows and cannot find all of the steps to do so.

        I can get the information out of the zabbix agent using the vbs script. E.g.

        Code:
        zabbix_get -s hostname -k specHWShort
        Gives me:
        Code:
        CPU: Intel(R) Xeon(R) CPU            5120  @ 1.86GHz
        RAM: 16384MB
        HD0: DELL PERC 5/i SCSI Disk Device 731GB SCSI
        GFX: ATI ES1000
        MB: Dell Inc.
        BIOS: Dell Inc. Phoenix ROM BIOS PLUS Version 1.10 2.7.0
        But I don't get how I can pull this information into zabbix... I know I need to create an item, but I can't figure out the syntax. How does "specHWShort" translate into the sub items that are returned from this script? Is it specHWShort[RAM] ? But then what happens with like HD1, HD2, etc?

        I don't get how this thread from 2012, last replied to 3 years ago is the best topic on this.

        Comment

        • hubertsvk
          Junior Member
          • Jul 2019
          • 15

          #19
          Hello,
          help me someone ...
          I added script into c:\zabbix\scripts and add line to config file
          Code:
          UserParameter=specHWShort,cscript.exe /nologo "C:\zabbix\scripts\specHWShort.vbs"
          but when I run
          Code:
          PS C:\zabbix\bin> .\zabbix_get.exe -s server-11  -k specHWShort
          I got error
          zabbix_get.exe [12748]: Get value error: ZBX_TCP_READ() failed: [0x00002746] An existing connection was forcibly closed by the remote host.
          zabbix_get.exe [12748]: Check access restrictions in Zabbix agent configuration

          When I run script from command line, it`s run well and show pop-up with results.

          Comment


          • Atsushi
            Atsushi commented
            Editing a comment
            The IP address of the server that executed the command may not have been registered in the Server settings in zabbix_agentd.conf. Try running the zabbix_get command from the server running Zabbix server.
        • hubertsvk
          Junior Member
          • Jul 2019
          • 15

          #20
          I`ve got the same results
          Code:
          .\zabbix_get.exe -s 192.168.1.1  -k specHWShort
          IP is from Zabbix web "Configuration of Host" , and it could be right, isn`t it?

          Comment


          • Atsushi
            Atsushi commented
            Editing a comment
            That is not correct. I wrote to run from on Zabbix server. If you want to run it locally on Windows, you need to set it in Server of zabbix_agentd.conf.
        • hubertsvk
          Junior Member
          • Jul 2019
          • 15

          #21
          I did this, on server what I monitoring I added this
          Code:
          Server=zabbixServerIP, 192.168.1.1
          to zabbix_agent.conf
          and in zabbix_agent.log is this
          10972:20220421:102412.564 Unable to connect to [192.168.1.1]:10051 [cannot connect to [[192.168.1.1]:10051]: Connection refused.]
          10972:20220421:102412.565 Active check configuration update started to fail
          14656:20220421:102421.562 Unable to connect to [zabbixServerIP]:10051 [cannot connect to [[zabbixServerIP]:10051]: (null)]
          14656:20220421:102421.564 Active check configuration update started to fail
          Anyway it`s working now ... but in the Inventory -> Overview (or Host) all fields are empty

          Code:
          PS C:\zabbix\bin> .\zabbix_get.exe -s 192.168.1.1 -k specHWShort
          CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
          RAM: 110592MB Other
          HD0: IBM ServeRAID M5014 SCSI Disk Device 72GB SCSI HD1: IBM ServeRAID M5014 SCSI Disk Device 299GB SCSI
          GFX: Microsoft Basic Display Adapter
          MB: IBM 00J6159
          BIOS: IBM Corp. -[D6E162AUS-1.20]-
          PS C:\zabbix\bin>

          Comment

          Working...