Ad Widget

Collapse

CPU and RAM

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StephenJ
    Member
    • Dec 2018
    • 44

    #1

    CPU and RAM

    I am running Zabbix 4.0.4.

    One of our customers has requested a report on their servers. They would like to know total amount of RAM is in each servers and what CPU's are in the servers. Is there a trigger I could setup to get this info for them ?
  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #2
    Can you install the zabbix agent on those servers?
    If yes there are native items for those informations vm.memory.size and system.cpu.util, if those don't have the infos you need you can also create UserParameters or use the key system.run to execute a command and get the informations.

    With system.run (if those are linux servers) your keys would be like:

    system.run[grep MemTotal /proc/meminfo | awk '{print $2}' ]
    7861932

    system.run[grep 'model name' /proc/cpuinfo]
    model name : Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz

    If you can't use zabbix agent you will need to make some utility to get those values in the client's servers and export thos as snmp items.

    For other users:
    If there is no agent its also possible to use ssh checks... Although i never had used it myself..


    https://www.zabbix.com/documentation...ry.size_params
    https://www.zabbix.com/documentation...s/zabbix_agent
    https://www.zabbix.com/documentation...userparameters
    Last edited by 1berto; 23-05-2019, 19:50.

    Comment

    • StephenJ
      Member
      • Dec 2018
      • 44

      #3
      Hi yes I have agents on each of the servers, all windows boxes. I was looking into the vm.memory.size item as well. I see there was not a trigger assigned. I'll look more into the system.run commands.

      Comment

      • StephenJ
        Member
        • Dec 2018
        • 44

        #4
        I'm looking at the system.hw.cpu key. I think it could get me the details of the CPU's in each of the servers. I am not sure what trigger to create to get the information and then how to read that. Really what I am looking for is for each server, be able to say your processors are X and you have X total amount of RAM.
        Last edited by StephenJ; 24-05-2019, 16:22.

        Comment

        • 1berto
          Senior Member
          • Sep 2018
          • 182

          #5
          You don't need to create a trigger to read an item value...

          Comment

          • zsg
            Junior Member
            Zabbix Certified Specialist
            • Nov 2010
            • 2

            #6
            Do you want to export the information? If you create an item with the the itemkey "system.hw.cpu" and store it as text, I havn't found any good way of doing it than thru the API.
            Other ways I have tried is:
            1. Use the "Latest data" where you can search for items on all hosts with that specific key. You can copy and paste that but then you other information aswell like the headings. Also if you have alot of information like the "system.hw.cpu" itemkey. You will need to zoom out the webbrowser to very small text see all information before copying it.
            2. Use a dashboard widget of type "Data overview". The same problem as the number 1 applies.

            I am missing some other export function to get the data? I guess that is what you want StepenJ?

            Comment

            Working...