Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pm2 monit throws 'TypeError: Cannot read property 'cpu' of undefined' #2

@oren

Description

@oren

pm2 start server.js
pm2 monit

PM2 monitoring :

server.js [93944]

/usr/local/lib/node_modules/pm2/lib/Monit.js:46
bar_cpu.percent(proc.monit.cpu);
^
TypeError: Cannot read property 'cpu' of undefined
at /usr/local/lib/node_modules/pm2/lib/Monit.js:46:31
at Array.forEach (native)
at Object.Monit.init (/usr/local/lib/node_modules/pm2/lib/Monit.js:17:13)
at /usr/local/lib/node_modules/pm2/bin/pm2:484:11
at /usr/local/lib/node_modules/pm2/lib/Satan.js:126:5
at /usr/local/lib/node_modules/pm2/node_modules/axon-rpc/lib/client.js:43:10
at Parser.onmessage (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/sockets/req.js:65:8)
at Parser.frameBody (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:106:10)
at Parser.write (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:50:13)
at Parser.frameHeader (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:81:30)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions