Giter Site home page Giter Site logo

No output from vmstat -w about jc HOT 5 CLOSED

takeru avatar takeru commented on May 27, 2024
No output from vmstat -w

from jc.

Comments (5)

kellyjonbrazil avatar kellyjonbrazil commented on May 27, 2024 1

I have a fix in dev that you can test by copying the parser file(s) to your plugin directory:

https://github.com/kellyjonbrazil/jc/blob/dev/jc/parsers/vmstat.py
https://github.com/kellyjonbrazil/jc/blob/dev/jc/parsers/vmstat_s.py

  • Linux/unix: $HOME/.local/share/jc/jcparsers
  • macOS: $HOME/Library/Application Support/jc/jcparsers
  • Windows: $LOCALAPPDATA\jc\jc\jcparsers

from jc.

kellyjonbrazil avatar kellyjonbrazil commented on May 27, 2024

Thanks for reporting this. Can you provide the vmstat output that didn't parse? (You can copy/paste it here)

from jc.

takeru avatar takeru commented on May 27, 2024
% vmstat > vmstat1.txt

% vmstat -w > vmstat2.txt

% cat vmstat1.txt
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0      0 2427120 1011084 22658204    0    0     4     6    3    5  3  1 96  0  0

% cat vmstat2.txt
--procs-- -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu--------
   r    b         swpd         free         buff        cache   si   so    bi    bo   in   cs  us  sy  id  wa  st
   0    0            0      2430264      1011084     22658240    0    0     4     6    3    5   3   1  96   0   0

% cat vmstat1.txt| jc --vmstat
[{"runnable_procs":0,"uninterruptible_sleeping_procs":0,"virtual_mem_used":0,"free_mem":2427120,"buffer_mem":1011084,"cache_mem":22658204,"inactive_mem":null,"active_mem":null,"swap_in":0,"swap_out":0,"blocks_in":4,"blocks_out":6,"interrupts":3,"context_switches":5,"user_time":3,"system_time":1,"idle_time":96,"io_wait_time":0,"stolen_time":0,"timestamp":null,"timezone":null}]

% cat vmstat2.txt| jc --vmstat
[]

from jc.

kellyjonbrazil avatar kellyjonbrazil commented on May 27, 2024

Looks like I can use a regex to better detect the wide output. I'll start working on that next.

from jc.

kellyjonbrazil avatar kellyjonbrazil commented on May 27, 2024

Delivered in v1.24.0: https://github.com/kellyjonbrazil/jc/releases/tag/v1.24.0

from jc.

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.