Comments (5)
Hello @Slapper, thank you for your ticket.
I tested it some time ago after #9 proposal and it worked fine in VirtualBox. Could you please describe why it would not work?
Also, maybe @Spindel could comment this somehow?
from zabbix-disk-performance.
-e is a gnu awk option. Might not be standard on mawk, which Debian (sometimes) uses.
Which is used on Debian depends on the phase of the Moon, and what software got installed in what order, due to alternatives.
Removing it could work. Depends on the awk implementation.
from zabbix-disk-performance.
Hi @grundic !
I test it on centos 6 installation. Nothing special awk just the default package :
rpm -qa |grep awk
gawk-3.1.7-10.el6_7.3.x86_64
If you try to run the command through the cli you will get :
root@server# awk -e '{print $9}' /sys/class/block/vda/stat
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options: GNU long options:
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
-m[fr] val
-O --optimize
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables[=file] --dump-variables[=file]
-W exec=file --exec=file
-W gen-po --gen-po
-W help --help
-W lint[=fatal] --lint[=fatal]
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile[=file] --profile[=file]
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W use-lc-numeric --use-lc-numeric
-W version --version
To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.
gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.
Examples:
gawk '{ sum += $1 }; END { print sum }' file
gawk -F: '{ print $1 }' /etc/passwd
The same output i get with the zabbix_get command.
from zabbix-disk-performance.
Then toss the -e flag :)
On Mon, Apr 25, 2016 at 11:24 PM Slapper [email protected] wrote:
Hi @grundic https://github.com/grundic !
I test it on centos 6 installation. Nothing special awk just the default
package :rpm -qa |grep awk
gawk-3.1.7-10.el6_7.3.x86_64If you try to run the command through the cli you will get :
root@server# awk -e '{print $9}' /sys/class/block/vda/stat
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options: GNU long options:
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
-m[fr] val
-O --optimize
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables[=file] --dump-variables[=file]
-W exec=file --exec=file
-W gen-po --gen-po
-W help --help
-W lint[=fatal] --lint[=fatal]
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile[=file] --profile[=file]
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W use-lc-numeric --use-lc-numeric
-W version --versionTo report bugs, see node
Bugs' in
gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.Examples:
gawk '{ sum += $1 }; END { print sum }' file
gawk -F: '{ print $1 }' /etc/passwdThe same output i get with the zabbix_get command.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#10 (comment)
from zabbix-disk-performance.
Yep, looks like -e
flag could be safely removed. Thank you, guys!
from zabbix-disk-performance.
Related Issues (20)
- Agent fails to start HOT 10
- Export template to version 3.0 HOT 6
- Issue with devices like: cciss!c0d0p6] HOT 3
- zabbix 3.2 disk read data none HOT 5
- ZBX_NOTSUPPORTED: Unsupported item key. HOT 5
- Bug in Template Disk Performance.xml description section
- Global regular expression "Linux disks for autodiscovery" does not exist HOT 1
- In Ubuntu Machine Not working
- I have a problen with the graphs
- Issues with python2 on RH5 HOT 2
- issue on aws
- Disk statistics reporting very high KOPS HOT 3
- Not work Ubuntu 16.04 Read items HOT 1
- sh: 1: /usr/local/bin/lld-disks.py: not found HOT 3
- FreeBSD(FreeNAS) support? HOT 1
- Zabbix Agent 4.0 incompatibility HOT 1
- Error during discovery on Ubuntu 20.04 HOT 2
- Not work with Zabbix-agent2 on Ubuntu20,Debian10
- Rocky-linux 8.5 Ramdrive monitoring HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zabbix-disk-performance.