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?
Ad Widget
Collapse
how to monitor stolen CPU
Collapse
X
-
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 -
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
-
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.Comment
-
Use system.cpu.util item; type steal
BTW: it's default item of Zabbix OS Linux TemplateDevops Monitoring Expert advice: Dockerize/automate/monitor all the things.
My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / VagrantComment

Comment