Giter VIP home page Giter VIP logo

Comments (5)

grundic avatar grundic commented on July 17, 2024

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.

Spindel avatar Spindel commented on July 17, 2024

-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.

Slapper avatar Slapper commented on July 17, 2024

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.

Spindel avatar Spindel commented on July 17, 2024

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_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' ingawk.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.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#10 (comment)

from zabbix-disk-performance.

grundic avatar grundic commented on July 17, 2024

Yep, looks like -e flag could be safely removed. Thank you, guys!

from zabbix-disk-performance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.