Ad Widget

Collapse

how to monitor stolen CPU

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thecord
    Junior Member
    • Feb 2012
    • 10

    #1

    how to monitor stolen CPU

    I'm wondering if there is a way to monitor stolen CPU if one is running Zabbix in AWS. Has anyone been able to do this?
  • thecord
    Junior Member
    • Feb 2012
    • 10

    #2
    quick and dirty solution

    You can the following command on Linux. BTW, this is an important stat on AWS or any virtual machine as you can see how busy the real machine is and use another if you've found yourself on a machine with a CPU hungry virtual instance you don't control.

    Here's the command:
    mpstat -u | grep ' [0-9]\{1\}\.[0-9]\{2\}' | cut -d " " -f 32

    Comment

    • thecord
      Junior Member
      • Feb 2012
      • 10

      #3
      Sorry to ask something that may be obvious again, but seems like I can't stuff this command into a system.run. Any ideas?

      system.run[mpstat -u | grep ' [0-9]\{1\}\.[0-9]\{2\}' | cut -d " " -f 32,<default>]

      Warning says "Error in item key: Incorrect usage of bracket symbols. '\' found after final bracket."

      Comment

      • bbrendon
        Senior Member
        • Sep 2005
        • 870

        #4
        I'm going to bump this...

        Is it possible to use brackets inside system.run ? I thought it was supposed to if it was quoted correctly but it appears that functionality was removed?

        tia.
        Unofficial Zabbix Expert
        Blog, Corporate Site

        Comment

        • jan.garaj
          Senior Member
          Zabbix Certified Specialist
          • Jan 2010
          • 506

          #5
          Use system.cpu.util item; type steal


          BTW: it's default item of Zabbix OS Linux Template
          Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
          My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

          Comment

          Working...