Ad Widget

Collapse

Is possible to show cpu / ram info. /etc. in under host inventory ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lawilliam
    Junior Member
    • Sep 2018
    • 8

    #1

    Is possible to show cpu / ram info. /etc. in under host inventory ?

    Hi,

    I am new comer to use Zabbix.

    1) Is possible to show cpu / ram info. /etc. in under host inventory ? Or how can I modify exiisting feild to I wanted ?

    2) Is possible to export host inventory as CSV file ?


    Thanks
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    1)
    I do not know exactly what value is needed, but if you can get it as an item, you can use "Populates host inventory field" in the item's settings.


    2)
    Zabbix's standard features do not have that capability.
    In order to output with CSV, there will be a way to output using the API.

    Comment

    • lawilliam
      Junior Member
      • Sep 2018
      • 8

      #3
      Originally posted by Atsushi
      1)
      I do not know exactly what value is needed, but if you can get it as an item, you can use "Populates host inventory field" in the item's settings.


      2)
      Zabbix's standard features do not have that capability.
      In order to output with CSV, there will be a way to output using the API.
      Hi Atsushi,

      1) I would like to add some info. like CPU info / RAM / Storage / etc. to host inventory. Since there is no those fields.

      2) For output using API, could you guide me ?


      Thanks

      Attached Files

      Comment

      • dhavalpatel
        Banned
        • Sep 2018
        • 1

        #4
        Hello,

        Yes it is possible you can visit https://www.zabbix.com/documentation...fig/items/item for your doubts.

        Comment

        • lawilliam
          Junior Member
          • Sep 2018
          • 8

          #5
          Originally posted by dhavalpatel
          Hello,

          Yes it is possible you can visit https://www.zabbix.com/documentation...fig/items/item for your doubts.
          Hi dhavalpatel,

          Like "CPU or RAM", how do I add under item ?

          Since I don't understand through your link. Could you mind give me some advice ?

          Otherwise, this modification allowed to apply for all hosts instead of per host ?

          Thanks
          Last edited by lawilliam; 24-09-2018, 04:46.

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            Just showing it as "CPU info" does not tell you what value you want to get about the CPU.
            "RAM" is also similar.

            First of all, please check what kind of values can be obtained using the template.
            For example, if you are monitoring Windows Server, try to link "Template OS Windows" as a template to the host.
            If you can put in the inventory of the values that you got, simply select which inventory you want to include for each item in the item settings described above.

            If you want to get more different values, please tell me specifically what kind of value you want to acquire specifically and what item you want to set in inventory.

            Comment

            • lawilliam
              Junior Member
              • Sep 2018
              • 8

              #7
              Originally posted by Atsushi
              Just showing it as "CPU info" does not tell you what value you want to get about the CPU.
              "RAM" is also similar.

              First of all, please check what kind of values can be obtained using the template.
              For example, if you are monitoring Windows Server, try to link "Template OS Windows" as a template to the host.
              If you can put in the inventory of the values that you got, simply select which inventory you want to include for each item in the item settings described above.

              If you want to get more different values, please tell me specifically what kind of value you want to acquire specifically and what item you want to set in inventory.
              I just want to add customized fields under host inventory, and I will add the value manually.

              It don’t need to get the value or monitoring. As I want to record inventory.

              Thus, “Items” can meet my request ?

              Thanks

              Comment


              • Atsushi
                Atsushi commented
                Editing a comment
                You can not create your own items in the inventory.
                Please use existing ones.
            • lawilliam
              Junior Member
              • Sep 2018
              • 8

              #8
              Hi Atsushi,

              Thanks for reply.

              How about export host inventory to CSV ? Since I have tried to export it under Zabbix 2.4 but couldn't find it under 3.4


              Thanks

              Comment

              • Atsushi
                Senior Member
                • Aug 2013
                • 2028

                #9
                By specifying selectInventory as the parameter of the host.get method, you can acquire host information including inventory information.
                Please use the language and script you can handle and try calling the API to format the results.



                Hint:
                Code:
                {
                    "jsonrpc": "2.0",
                    "method": "host.get",
                    "params": {
                        "output":"extend",
                        "filter": {
                            "status":"0",
                            "host": [
                                "Zabbix server"
                            ]
                        },
                        "selectInventory":"extend"
                    },
                    "auth": "Your API-KEY",
                    "id": 1
                }

                Comment

                • lawilliam
                  Junior Member
                  • Sep 2018
                  • 8

                  #10
                  Originally posted by Atsushi
                  By specifying selectInventory as the parameter of the host.get method, you can acquire host information including inventory information.
                  Please use the language and script you can handle and try calling the API to format the results.



                  Hint:
                  Code:
                  {
                  "jsonrpc": "2.0",
                  "method": "host.get",
                  "params": {
                  "output":"extend",
                  "filter": {
                  "status":"0",
                  "host": [
                  "Zabbix server"
                  ]
                  },
                  "selectInventory":"extend"
                  },
                  "auth": "Your API-KEY",
                  "id": 1
                  }

                  Hi Atsushi,

                  - I can export host inventory in 2.4 (click on "Export to CSV" button. Is it embedded function once setup ? Or it also customized ?

                  - For host inventory field, I found CPU / RAM in 2.4 but not in 3.4. Is it embedded function once setup ? Or it also customized ?


                  Since API may be too complicated to me ....

                  Or 4.0 can meet my request ?

                  Thanks

                  Comment

                  Working...