sysstat
v0.2.0
Published
A parser around sar (sysstat) to monitor performance statistics.
Downloads
10
Readme
node-sysstat
Parse sar output into a JavaScript object.
Usage
var sar = require('sysstat');
sar(['-A', '1']).on('stats', function(o){
console.log(o);
});
Output
{ date: '18:45:33',
'CPU_all_%usr': '0.97',
'CPU_all_%nice': '0.00',
'CPU_all_%sys': '0.97',
'CPU_all_%iowait': '0.00',
'CPU_all_%steal': '0.00',
'CPU_all_%irq': '0.00',
'CPU_all_%soft': '0.00',
'CPU_all_%guest': '0.00',
'CPU_all_%idle': '98.06',
'CPU_0_%usr': '0.00',
'CPU_0_%nice': '0.00',
'CPU_0_%sys': '1.02',
'CPU_0_%iowait': '0.00',
'CPU_0_%steal': '0.00',
'CPU_0_%irq': '0.00',
'CPU_0_%soft': '0.00',
'CPU_0_%guest': '0.00',
'CPU_0_%idle': '98.98',
'CPU_1_%usr': '0.00',
'CPU_1_%nice': '0.00',
'CPU_1_%sys': '1.98',
'CPU_1_%iowait': '0.00',
'CPU_1_%steal': '0.00',
'CPU_1_%irq': '0.00',
'CPU_1_%soft': '0.00',
'CPU_1_%guest': '0.00',
'CPU_1_%idle': '98.02',
'CPU_2_%usr': '2.63',
'CPU_2_%nice': '0.00',
'CPU_2_%sys': '0.88',
'CPU_2_%iowait': '0.00',
'CPU_2_%steal': '0.00',
'CPU_2_%irq': '0.00',
'CPU_2_%soft': '0.00',
'CPU_2_%guest': '0.00',
'CPU_2_%idle': '96.49',
'CPU_3_%usr': '0.00',
'CPU_3_%nice': '0.00',
'CPU_3_%sys': '1.00',
'CPU_3_%iowait': '0.00',
'CPU_3_%steal': '0.00',
'CPU_3_%irq': '0.00',
'CPU_3_%soft': '0.00',
'CPU_3_%guest': '0.00',
'CPU_3_%idle': '99.00',
'proc/s': '0.00',
'cswch/s': '690.82',
'INTR_sum_intr/s': '431.63',
'INTR_0_intr/s': '0.00',
'INTR_1_intr/s': '0.00',
'INTR_2_intr/s': '0.00',
'INTR_3_intr/s': '0.00',
'INTR_4_intr/s': '0.00',
'INTR_5_intr/s': '0.00',
'INTR_6_intr/s': '0.00',
'INTR_7_intr/s': '0.00',
'INTR_8_intr/s': '0.00',
'INTR_9_intr/s': '0.00',
'INTR_10_intr/s': '0.00',
'INTR_11_intr/s': '0.00',
'INTR_12_intr/s': '0.00',
'INTR_13_intr/s': '0.00',
'INTR_14_intr/s': '0.00',
'INTR_15_intr/s': '0.00',
'INTR_16_intr/s': '0.00',
'INTR_17_intr/s': '0.00',
'INTR_18_intr/s': '0.00',
'INTR_19_intr/s': '15.31',
'INTR_20_intr/s': '0.00',
'INTR_21_intr/s': '0.00',
'INTR_22_intr/s': '0.00',
'INTR_23_intr/s': '0.00',
'INTR_24_intr/s': '0.00',
'INTR_25_intr/s': '0.00',
'INTR_26_intr/s': '0.00',
'INTR_27_intr/s': '0.00',
'INTR_28_intr/s': '0.00',
'INTR_29_intr/s': '0.00',
'INTR_30_intr/s': '0.00',
'INTR_31_intr/s': '0.00',
'INTR_32_intr/s': '0.00',
'INTR_33_intr/s': '0.00',
'INTR_34_intr/s': '0.00',
'INTR_35_intr/s': '0.00',
'INTR_36_intr/s': '0.00',
'INTR_37_intr/s': '0.00',
'INTR_38_intr/s': '0.00',
'INTR_39_intr/s': '0.00',
'INTR_40_intr/s': '0.00',
'INTR_41_intr/s': '0.00',
'INTR_42_intr/s': '0.00',
'INTR_43_intr/s': '0.00',
'INTR_44_intr/s': '0.00',
'INTR_45_intr/s': '0.00',
'INTR_46_intr/s': '0.00',
'INTR_47_intr/s': '0.00',
'INTR_48_intr/s': '0.00',
'INTR_49_intr/s': '0.00',
'INTR_50_intr/s': '0.00',
'INTR_51_intr/s': '0.00',
'INTR_52_intr/s': '0.00',
'INTR_53_intr/s': '0.00',
'INTR_54_intr/s': '0.00',
'INTR_55_intr/s': '0.00',
'INTR_56_intr/s': '0.00',
'INTR_57_intr/s': '0.00',
'INTR_58_intr/s': '0.00',
'INTR_59_intr/s': '0.00',
'INTR_60_intr/s': '0.00',
'INTR_61_intr/s': '0.00',
'INTR_62_intr/s': '0.00',
'INTR_63_intr/s': '0.00',
'INTR_64_intr/s': '0.00',
'INTR_65_intr/s': '0.00',
'INTR_66_intr/s': '0.00',
'INTR_67_intr/s': '0.00',
'INTR_68_intr/s': '0.00',
'INTR_69_intr/s': '0.00',
'INTR_70_intr/s': '0.00',
'INTR_71_intr/s': '0.00',
'INTR_72_intr/s': '0.00',
'INTR_73_intr/s': '0.00',
'INTR_74_intr/s': '0.00',
'INTR_75_intr/s': '0.00',
'INTR_76_intr/s': '0.00',
'INTR_77_intr/s': '0.00',
'INTR_78_intr/s': '0.00',
'INTR_79_intr/s': '0.00',
'INTR_80_intr/s': '0.00',
'INTR_81_intr/s': '0.00',
'INTR_82_intr/s': '0.00',
'INTR_83_intr/s': '0.00',
'INTR_84_intr/s': '0.00',
'INTR_85_intr/s': '0.00',
'INTR_86_intr/s': '0.00',
'INTR_87_intr/s': '0.00',
'INTR_88_intr/s': '0.00',
'INTR_89_intr/s': '0.00',
'INTR_90_intr/s': '0.00',
'INTR_91_intr/s': '0.00',
'INTR_92_intr/s': '0.00',
'INTR_93_intr/s': '0.00',
'INTR_94_intr/s': '0.00',
'INTR_95_intr/s': '0.00',
'INTR_96_intr/s': '0.00',
'INTR_97_intr/s': '0.00',
'INTR_98_intr/s': '0.00',
'INTR_99_intr/s': '0.00',
'INTR_100_intr/s': '0.00',
'INTR_101_intr/s': '0.00',
'INTR_102_intr/s': '0.00',
'INTR_103_intr/s': '0.00',
'INTR_104_intr/s': '0.00',
'INTR_105_intr/s': '0.00',
'INTR_106_intr/s': '0.00',
'INTR_107_intr/s': '0.00',
'INTR_108_intr/s': '0.00',
'INTR_109_intr/s': '0.00',
'INTR_110_intr/s': '0.00',
'INTR_111_intr/s': '0.00',
'INTR_112_intr/s': '0.00',
'INTR_113_intr/s': '0.00',
'INTR_114_intr/s': '0.00',
'INTR_115_intr/s': '0.00',
'INTR_116_intr/s': '0.00',
'INTR_117_intr/s': '0.00',
'INTR_118_intr/s': '0.00',
'INTR_119_intr/s': '0.00',
'INTR_120_intr/s': '0.00',
'INTR_121_intr/s': '0.00',
'INTR_122_intr/s': '0.00',
'INTR_123_intr/s': '0.00',
'INTR_124_intr/s': '0.00',
'INTR_125_intr/s': '0.00',
'INTR_126_intr/s': '0.00',
'INTR_127_intr/s': '0.00',
'INTR_128_intr/s': '0.00',
'INTR_129_intr/s': '0.00',
'INTR_130_intr/s': '0.00',
'INTR_131_intr/s': '0.00',
'INTR_132_intr/s': '0.00',
'INTR_133_intr/s': '0.00',
'INTR_134_intr/s': '0.00',
'INTR_135_intr/s': '0.00',
'INTR_136_intr/s': '0.00',
'INTR_137_intr/s': '0.00',
'INTR_138_intr/s': '0.00',
'INTR_139_intr/s': '0.00',
'INTR_140_intr/s': '0.00',
'INTR_141_intr/s': '0.00',
'INTR_142_intr/s': '0.00',
'INTR_143_intr/s': '0.00',
'INTR_144_intr/s': '0.00',
'INTR_145_intr/s': '0.00',
'INTR_146_intr/s': '0.00',
'INTR_147_intr/s': '0.00',
'INTR_148_intr/s': '0.00',
'INTR_149_intr/s': '0.00',
'INTR_150_intr/s': '0.00',
'INTR_151_intr/s': '0.00',
'INTR_152_intr/s': '0.00',
'INTR_153_intr/s': '0.00',
'INTR_154_intr/s': '0.00',
'INTR_155_intr/s': '0.00',
'INTR_156_intr/s': '0.00',
'INTR_157_intr/s': '0.00',
'INTR_158_intr/s': '0.00',
'INTR_159_intr/s': '0.00',
'INTR_160_intr/s': '0.00',
'INTR_161_intr/s': '0.00',
'INTR_162_intr/s': '0.00',
'INTR_163_intr/s': '0.00',
'INTR_164_intr/s': '0.00',
'INTR_165_intr/s': '0.00',
'INTR_166_intr/s': '0.00',
'INTR_167_intr/s': '0.00',
'INTR_168_intr/s': '0.00',
'INTR_169_intr/s': '0.00',
'INTR_170_intr/s': '0.00',
'INTR_171_intr/s': '0.00',
'INTR_172_intr/s': '0.00',
'INTR_173_intr/s': '0.00',
'INTR_174_intr/s': '0.00',
'INTR_175_intr/s': '0.00',
'INTR_176_intr/s': '0.00',
'INTR_177_intr/s': '0.00',
'INTR_178_intr/s': '0.00',
'INTR_179_intr/s': '0.00',
'INTR_180_intr/s': '0.00',
'INTR_181_intr/s': '0.00',
'INTR_182_intr/s': '0.00',
'INTR_183_intr/s': '0.00',
'INTR_184_intr/s': '0.00',
'INTR_185_intr/s': '0.00',
'INTR_186_intr/s': '0.00',
'INTR_187_intr/s': '0.00',
'INTR_188_intr/s': '0.00',
'INTR_189_intr/s': '0.00',
'INTR_190_intr/s': '0.00',
'INTR_191_intr/s': '0.00',
'INTR_192_intr/s': '0.00',
'INTR_193_intr/s': '0.00',
'INTR_194_intr/s': '0.00',
'INTR_195_intr/s': '0.00',
'INTR_196_intr/s': '0.00',
'INTR_197_intr/s': '0.00',
'INTR_198_intr/s': '0.00',
'INTR_199_intr/s': '0.00',
'INTR_200_intr/s': '0.00',
'INTR_201_intr/s': '0.00',
'INTR_202_intr/s': '0.00',
'INTR_203_intr/s': '0.00',
'INTR_204_intr/s': '0.00',
'INTR_205_intr/s': '0.00',
'INTR_206_intr/s': '0.00',
'INTR_207_intr/s': '0.00',
'INTR_208_intr/s': '0.00',
'INTR_209_intr/s': '0.00',
'INTR_210_intr/s': '0.00',
'INTR_211_intr/s': '0.00',
'INTR_212_intr/s': '0.00',
'INTR_213_intr/s': '0.00',
'INTR_214_intr/s': '0.00',
'INTR_215_intr/s': '0.00',
'INTR_216_intr/s': '0.00',
'INTR_217_intr/s': '0.00',
'INTR_218_intr/s': '0.00',
'INTR_219_intr/s': '0.00',
'INTR_220_intr/s': '0.00',
'INTR_221_intr/s': '0.00',
'INTR_222_intr/s': '0.00',
'INTR_223_intr/s': '0.00',
'INTR_224_intr/s': '0.00',
'INTR_225_intr/s': '0.00',
'INTR_226_intr/s': '0.00',
'INTR_227_intr/s': '0.00',
'INTR_228_intr/s': '0.00',
'INTR_229_intr/s': '0.00',
'INTR_230_intr/s': '0.00',
'INTR_231_intr/s': '0.00',
'INTR_232_intr/s': '0.00',
'INTR_233_intr/s': '0.00',
'INTR_234_intr/s': '0.00',
'INTR_235_intr/s': '0.00',
'INTR_236_intr/s': '0.00',
'INTR_237_intr/s': '0.00',
'INTR_238_intr/s': '0.00',
'INTR_239_intr/s': '0.00',
'INTR_240_intr/s': '0.00',
'INTR_241_intr/s': '0.00',
'INTR_242_intr/s': '0.00',
'INTR_243_intr/s': '0.00',
'INTR_244_intr/s': '0.00',
'INTR_245_intr/s': '0.00',
'INTR_246_intr/s': '0.00',
'INTR_247_intr/s': '0.00',
'INTR_248_intr/s': '0.00',
'INTR_249_intr/s': '0.00',
'INTR_250_intr/s': '0.00',
'INTR_251_intr/s': '0.00',
'INTR_252_intr/s': '0.00',
'INTR_253_intr/s': '0.00',
'INTR_254_intr/s': '0.00',
'INTR_255_intr/s': '0.00',
'pswpin/s': '0.00',
'pswpout/s': '0.00',
'pgpgin/s': '0.00',
'pgpgout/s': '0.00',
'fault/s': '460.20',
'majflt/s': '0.00',
'pgfree/s': '114.29',
'pgscank/s': '0.00',
'pgscand/s': '0.00',
'pgsteal/s': '0.00',
'%vmeff': '0.00',
tps: '0.00',
rtps: '0.00',
wtps: '0.00',
'bread/s': '0.00',
'bwrtn/s': '0.00',
'frmpg/s': '-347.96',
'bufpg/s': '0.00',
'campg/s': '0.00',
kbmemfree: '219080',
kbmemused: '1728044',
'%memused': '88.75',
kbbuffers: '21708',
kbcached: '532184',
kbcommit: '968884',
'%commit': '21.36',
kbswpfree: '2586916',
kbswpused: '1748',
'%swpused': '0.07',
kbswpcad: '180',
'%swpcad': '10.30',
dentunusd: '5397',
'file-nr': '1792',
'inode-nr': '10402',
'pty-nr': '8',
'runq-sz': '0',
'plist-sz': '224',
'ldavg-1': '0.00',
'ldavg-5': '0.00',
'ldavg-15': '0.04',
'DEV_dev8-0_tps': '0.00',
'DEV_dev8-0_rd_sec/s': '0.00',
'DEV_dev8-0_wr_sec/s': '0.00',
'DEV_dev8-0_avgrq-sz': '0.00',
'DEV_dev8-0_avgqu-sz': '0.00',
'DEV_dev8-0_await': '0.00',
'DEV_dev8-0_svctm': '0.00',
'DEV_dev8-0_%util': '0.00',
'DEV_dev253-0_tps': '0.00',
'DEV_dev253-0_rd_sec/s': '0.00',
'DEV_dev253-0_wr_sec/s': '0.00',
'DEV_dev253-0_avgrq-sz': '0.00',
'DEV_dev253-0_avgqu-sz': '0.00',
'DEV_dev253-0_await': '0.00',
'DEV_dev253-0_svctm': '0.00',
'DEV_dev253-0_%util': '0.00',
'DEV_dev253-1_tps': '0.00',
'DEV_dev253-1_rd_sec/s': '0.00',
'DEV_dev253-1_wr_sec/s': '0.00',
'DEV_dev253-1_avgrq-sz': '0.00',
'DEV_dev253-1_avgqu-sz': '0.00',
'DEV_dev253-1_await': '0.00',
'DEV_dev253-1_svctm': '0.00',
'DEV_dev253-1_%util': '0.00',
'DEV_dev253-2_tps': '0.00',
'DEV_dev253-2_rd_sec/s': '0.00',
'DEV_dev253-2_wr_sec/s': '0.00',
'DEV_dev253-2_avgrq-sz': '0.00',
'DEV_dev253-2_avgqu-sz': '0.00',
'DEV_dev253-2_await': '0.00',
'DEV_dev253-2_svctm': '0.00',
'DEV_dev253-2_%util': '0.00',
'IFACE_lo_rxpck/s': '0.00',
'IFACE_lo_txpck/s': '0.00',
'IFACE_lo_rxkB/s': '0.00',
'IFACE_lo_txkB/s': '0.00',
'IFACE_lo_rxcmp/s': '0.00',
'IFACE_lo_txcmp/s': '0.00',
'IFACE_lo_rxmcst/s': '0.00',
'IFACE_eth0_rxpck/s': '11.22',
'IFACE_eth0_txpck/s': '14.29',
'IFACE_eth0_rxkB/s': '0.84',
'IFACE_eth0_txkB/s': '15.95',
'IFACE_eth0_rxcmp/s': '0.00',
'IFACE_eth0_txcmp/s': '0.00',
'IFACE_eth0_rxmcst/s': '0.00',
'IFACE_lo_rxerr/s': '0.00',
'IFACE_lo_txerr/s': '0.00',
'IFACE_lo_coll/s': '0.00',
'IFACE_lo_rxdrop/s': '0.00',
'IFACE_lo_txdrop/s': '0.00',
'IFACE_lo_txcarr/s': '0.00',
'IFACE_lo_rxfram/s': '0.00',
'IFACE_lo_rxfifo/s': '0.00',
'IFACE_lo_txfifo/s': '0.00',
'IFACE_eth0_rxerr/s': '0.00',
'IFACE_eth0_txerr/s': '0.00',
'IFACE_eth0_coll/s': '0.00',
'IFACE_eth0_rxdrop/s': '0.00',
'IFACE_eth0_txdrop/s': '0.00',
'IFACE_eth0_txcarr/s': '0.00',
'IFACE_eth0_rxfram/s': '0.00',
'IFACE_eth0_rxfifo/s': '0.00',
'IFACE_eth0_txfifo/s': '0.00',
'call/s': '0.00',
'retrans/s': '0.00',
'read/s': '0.00',
'write/s': '0.00',
'access/s': '0.00',
'getatt/s': '0.00',
'scall/s': '0.00',
'badcall/s': '0.00',
'packet/s': '0.00',
'udp/s': '0.00',
'tcp/s': '0.00',
'hit/s': '0.00',
'miss/s': '0.00',
'sread/s': '0.00',
'swrite/s': '0.00',
'saccess/s': '0.00',
'sgetatt/s': '0.00',
totsck: '113',
tcpsck: '11',
udpsck: '7',
rawsck: '0',
'ip-frag': '0',
'tcp-tw': '0',
'irec/s': '11.22',
'fwddgm/s': '0.00',
'idel/s': '11.22',
'orq/s': '12.24',
'asmrq/s': '0.00',
'asmok/s': '0.00',
'fragok/s': '0.00',
'fragcrt/s': '0.00',
'ihdrerr/s': '0.00',
'iadrerr/s': '0.00',
'iukwnpr/s': '0.00',
'idisc/s': '0.00',
'odisc/s': '0.00',
'onort/s': '0.00',
'asmf/s': '0.00',
'fragf/s': '0.00',
'imsg/s': '0.00',
'omsg/s': '0.00',
'iech/s': '0.00',
'iechr/s': '0.00',
'oech/s': '0.00',
'oechr/s': '0.00',
'itm/s': '0.00',
'itmr/s': '0.00',
'otm/s': '0.00',
'otmr/s': '0.00',
'iadrmk/s': '0.00',
'iadrmkr/s': '0.00',
'oadrmk/s': '0.00',
'oadrmkr/s': '0.00',
'ierr/s': '0.00',
'oerr/s': '0.00',
'idstunr/s': '0.00',
'odstunr/s': '0.00',
'itmex/s': '0.00',
'otmex/s': '0.00',
'iparmpb/s': '0.00',
'oparmpb/s': '0.00',
'isrcq/s': '0.00',
'osrcq/s': '0.00',
'iredir/s': '0.00',
'oredir/s': '0.00',
'active/s': '0.00',
'passive/s': '0.00',
'iseg/s': '11.22',
'oseg/s': '12.24',
'atmptf/s': '0.00',
'estres/s': '0.00',
'isegerr/s': '0.00',
'orsts/s': '0.00',
'idgm/s': '0.00',
'odgm/s': '0.00',
'noport/s': '0.00',
'idgmerr/s': '0.00',
tcp6sck: '20',
udp6sck: '4',
raw6sck: '0',
'ip6-frag': '0',
'irec6/s': '0.00',
'fwddgm6/s': '0.00',
'idel6/s': '0.00',
'orq6/s': '0.00',
'asmrq6/s': '0.00',
'asmok6/s': '0.00',
'imcpck6/s': '0.00',
'omcpck6/s': '0.00',
'fragok6/s': '0.00',
'fragcr6/s': '0.00',
'ihdrer6/s': '0.00',
'iadrer6/s': '0.00',
'iukwnp6/s': '0.00',
'i2big6/s': '0.00',
'idisc6/s': '0.00',
'odisc6/s': '0.00',
'inort6/s': '0.00',
'onort6/s': '0.00',
'asmf6/s': '0.00',
'fragf6/s': '0.00',
'itrpck6/s': '0.00',
'imsg6/s': '0.00',
'omsg6/s': '0.00',
'iech6/s': '0.00',
'iechr6/s': '0.00',
'oechr6/s': '0.00',
'igmbq6/s': '0.00',
'igmbr6/s': '0.00',
'ogmbr6/s': '0.00',
'igmbrd6/s': '0.00',
'ogmbrd6/s': '0.00',
'irtsol6/s': '0.00',
'ortsol6/s': '0.00',
'irtad6/s': '0.00',
'inbsol6/s': '0.00',
'onbsol6/s': '0.00',
'inbad6/s': '0.00',
'onbad6/s': '0.00',
'ierr6/s': '0.00',
'idtunr6/s': '0.00',
'odtunr6/s': '0.00',
'itmex6/s': '0.00',
'otmex6/s': '0.00',
'iprmpb6/s': '0.00',
'oprmpb6/s': '0.00',
'iredir6/s': '0.00',
'oredir6/s': '0.00',
'ipck2b6/s': '0.00',
'opck2b6/s': '0.00',
'idgm6/s': '0.00',
'odgm6/s': '0.00',
'noport6/s': '0.00',
'idgmer6/s': '0.00',
CPU_all_MHz: '2364.36',
CPU_0_MHz: '2364.36',
CPU_1_MHz: '2364.36',
CPU_2_MHz: '2364.36',
CPU_3_MHz: '2364.36' }