Announcement

Collapse
No announcement yet.

diferent format of /proc/lve/list betwen version 6 and version 7

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • diferent format of /proc/lve/list betwen version 6 and version 7

    Dear All.

    Im working on capturing /proc/lve/list and throw it to influxDB.
    It works good in Version 6 (centos6), but failed in Version 7 (centos 7).

    Here is from the version 6

    Code:
    9:LVE	EP	lCPU	lIO	CPU	MEM	IO	lMEM	lEP	nCPU	fMEM	fEP	lMEMPHY	lCPUW	lNPROC	MEMPHY	fMEMPHY	NPROC	fNPROC	lIOPS	IOPS	lNETO	lNETI	NETO	NETI
    
    0	0	10000	1024	0	0	0	262144	20	1	0	0	262144	100	100	0	0   0	0	1024	0	0	0	0	0
    
    5	0	5000	5120	0	0	0	262144	20	1	0	0	262144	100	100	0	0   0	0	1024	0	0	0	0	0
    
    501	0	20000	1024	0	0	0	196608	15	2	0	0	131072	100	100	0	0   0	0	1024	0	0	0	0	0
    With above output, its easy to parse the data and form a JSON
    all lines have 25 values

    the first data of 2nd lines and the rest ... can be maped to username

    and here from version 7

    Code:
    10:LVE	lCPU	lCPUW	nCPU	lEP	lNPROC	lMEM	lMEMPHY	lIO	lIOPS	lNETO	lNETI	EP	CPU	MEM	IO	fMEM	fEP	MEMPHY	fMEMPHY	NPROC	fNPROC	IOPS	NETO	NETI
    
    0,0		10000	100	1	20	100	0	262144	1024	1024	0	0	0	0	0	0   0	0	0	0	0	0	0	0	0
    
    0,99		120000	100	12	0	0	0	524288000	0	0	0	0	0	161500  6339346	0	11520168	0	0	6945	0	0	0	719175	77878949	7037131
    
    0,984		120000	100	12	0	0	0	524288	0	0	0	0	0	770280087	08208	0	0	0	0	0	0	267	28253	10692
    With above output .... for me its dificult to form a JSON.
    a. The first line (header) have 25 data, while the rest have 26 datas
    b. first data of 2nd lines and the rest ... is comma seperated value (decimals ?)

    Sincerely
    -bino-

  • #2
    Hello,

    This is the output from the latest kernel with reseller limits support. The current format of the first column is: Reseller_ID,LVE_ID

    We will update our doc section soon: https://docs.cloudlinux.com/index.ht...lve_usage.html

    Comment


    • #3
      > Hello,
      >
      > This is the output from the latest kernel with reseller limits support. The current format of the first column is: Reseller_ID,LVE_ID
      >
      > We will update our doc section soon: https://docs.cloudlinux.com/index.html?slitherioreading_lve_usage.html(https://docs.cloudlinux.com/index.html)

      Its hard to form a JSON.

      Comment


      • #4
        Hello Noahgittins,
        Could you provide a little more information please to resolve the issue?
        Thanks in advance!

        Comment

        Working...
        X