Giter VIP home page Giter VIP logo

pm2-server-monit's Introduction

Description

PM2 module to automatically monitor vital signs of your server :

  • CPU average usage
  • Free and used drive space
  • Free and used memory space
  • All processes running
  • TTY/SSH opened
  • Total opened files
  • Network speed (input and output)

pm2-server-monit

Install

pm2 install pm2-server-monit

Configuration

Default settings:

  • drive is the name of the drive you want to monitor, you can monitor multiples at the same time by adding a , between names (example: /,/data to monitor both / and /data assuming they are two different partition). Default is /
  • disk_refresh_rate the rate of refresh for the metrics related to disk in seconds (default to 60)
  • memory_refresh_rate the rate of refresh for metrics related to memory in seconds (default to 2)
  • cpu_refresh_rate the rate of refresh for metrics related to cpu usage in seconds (default to 2)
  • network_refresh_rate the rate of refresh for metrics related to network bandwitdh in seconds (default to 5)

To modify the config values you can use PM2 Plus dashboard or the following commands:

pm2 set pm2-server-monit:drive /
pm2 set pm2-server-monit:network_refresh_rate 10

Info

⚠️ ⚠️ ⚠️

If this module uses too much CPU, increase all the refresh rate to higher values

If you have metrics that doesn't appear, it means that is not supported on your platform. Also always check the logs with pm2 logs pm2-server-monit for errors.

⚠️ ⚠️ ⚠️

Uninstall

pm2 uninstall pm2-server-monit

Update to latest version

pm2 module:update pm2-server-monit

pm2-server-monit's People

Contributors

alavit-d avatar eywek avatar f-hj avatar jshkurti avatar kyoshim avatar legraphista avatar paed01 avatar soncodi avatar unitech avatar vmarchaud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pm2-server-monit's Issues

Cannot find module '/root/.pm2/node_modules/pm2-server-monit/package.json'

Tried installing server-monit from both the dashboard and command line and keep getting this error. Searched around and couldn't find a solution. Any idea how to fix this and get server-monit installed?

root@server:~# pm2 install pm2-server-monit
[PM2][Module] Installing module pm2-server-monit
[PM2][Module] Calling [NPM] to install pm2-server-monit ...
/root
└── [email protected]

[PM2][Module] Module downloaded
module.js:471
    throw err;
    ^

Error: Cannot find module '/root/.pm2/node_modules/pm2-server-monit/package.json'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at startModule (/usr/lib/node_modules/pm2/lib/API/Modules/Modularizer.js:33:22)
    at /usr/lib/node_modules/pm2/lib/API/Modules/Modularizer.js:158:9
    at /usr/lib/node_modules/pm2/lib/Configuration.js:64:14
    at FSReqWrap.oncomplete (fs.js:123:15)
root@server:~#
node: v6.9.4
npm: v3.10.10
os: Ubuntu 16.04

Cannot read property 'replace' of undefined

We get warnings/error when starting up monit. Running on node 0.12.7.

child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
TypeError: Cannot read property 'replace' of undefined
    at /root/.pm2/node_modules/pm2-server-monit/lib/drive.js:23:35
    at ChildProcess.exithandler (child_process.js:758:5)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Socket.<anonymous> (child_process.js:1183:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:485:12)
child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.

No lsb_release on aws linux

pm2-server-monit fail on startup.

 /home/ec2-user/.pm2/node_modules/pm2-server-monit/lib/os.js:8
    var version = out.match(/[\n\r].*Release:\s*([^\n\r]*)/)[1];
                                                            ^
TypeError: Cannot read property '1' of null
    at /home/ec2-user/.pm2/node_modules/pm2-server-monit/lib/os.js:8:61
    at /home/ec2-user/.pm2/node_modules/pm2-server-monit/node_modules/shelljs/src/exec.js:138:7
    at ChildProcess.exithandler (child_process.js:751:5)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1008:16)
    at Socket.<anonymous> (child_process.js:1176:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:476:12)

I don't have lsb_release on amazon linux.

pm2 version : 0.14.0
node : v0.12.0

disk name invalid

Server monit is constantly reporting "disk name invalid", but all the disks are aparently ok, even in keymetrics.io on the dashboard, when i click on "disk usage" button, it reports all the mount points with normally.

cp is not defined

When I run pm2 install pm2-server-monit it fails. Checking the logs with pm2 logs pm2-server-monit shows the exception:

0|pm2-serv | ReferenceError: cp is not defined
0|pm2-serv |     at /Users/user/.pm2/node_modules/pm2-server-monit/lib/proc.js:12:39
0|pm2-serv |     at ChildProcess.exithandler (child_process.js:189:7)
0|pm2-serv |     at emitTwo (events.js:106:13)
0|pm2-serv |     at ChildProcess.emit (events.js:191:7)
0|pm2-serv |     at maybeClose (internal/child_process.js:920:16)
0|pm2-serv |     at Socket.<anonymous> (internal/child_process.js:351:11)
0|pm2-serv |     at emitOne (events.js:96:13)
0|pm2-serv |     at Socket.emit (events.js:188:7)
0|pm2-serv |     at Pipe._handle.close [as _onclose] (net.js:497:12)

Looking at the line show in the top of the stack it does indeed seem to be undefined as child_process is not required: https://github.com/pm2-hive/pm2-server-monit/blob/master/lib/proc.js#L12

/etc/issue empty , pm2 not working

Ubuntu 14.04 LTS , ovh.fr installed
/etc/issue was empty so os detection failed , then crash to a redhat file.

Error: Error: ENOENT: no such file or directory, open '/etc/redhat-release'
17|pm2-ser | at ReadFileContext.callback (/home/auto/.pm2/node_modules/pm2-server-monit/lib/os.js:30:26)
17|pm2-ser | at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:366:13)

I fixed the issue with manual editing /etc/issue and putting "Ubuntu 14.04.5 LTS"

Retrieve every possible temperature sensor

This feature will help to detect the temperature of server components (CPU, GPU, inner box...) and detect component overheat.

Linked to disk drive health check this would potentially allow to determine an index of server health.

Fail on Centos

0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | Error: 127
0|pm2-serv | at /root/.pm2/node_modules/pm2-server-monit/lib/os.js:37:28
0|pm2-serv | at /root/.pm2/node_modules/shelljs/src/exec.js:180:7
0|pm2-serv | at ChildProcess.exithandler (child_process.js:213:5)
0|pm2-serv | at emitTwo (events.js:106:13)
0|pm2-serv | at ChildProcess.emit (events.js:191:7)
0|pm2-serv | at maybeClose (internal/child_process.js:877:16)
0|pm2-serv | at Socket. (internal/child_process.js:334:11)
0|pm2-serv | at emitOne (events.js:96:13)
0|pm2-serv | at Socket.emit (events.js:188:7)
0|pm2-serv | at Pipe._handle.close [as _onclose] (net.js:498:12)
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute
0|pm2-serv | ip -s link failed to execute

how use

I did not find information on how to use it

To much processes spawned

Yesterday we had problem on production servers with pm2-server-monit.
This module spawned over 600+ df -k processes and not killed them.
We had to remove module and kill processes manualy.

Wrong disk usage

I have some VPS on scaleway and pm2-server-monit reports 100% available disk at all times.

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
none            3.9G     0  3.9G   0% /dev
tmpfs           795M   22M  773M   3% /run
/dev/nbd0        46G   12G   32G  27% /
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup

As you see, the primary disk is mounted in /dev/nbd0 which is 27% used.

Can't exec with shell node v4

TypeError: Bad argument
    at TypeError (native)
    at ChildProcess.spawn (internal/child_process.js:285:26)
    at ChildProcess.spawn (/usr/share/pm2/node_modules/pmx/node_modules/vxx/node_modules/continuation-local-storage/node_modules/async-listener/index.js:120:29)
    at exports.spawn (child_process.js:362:9)
    at Object.exports.execFile (child_process.js:151:15)
    at Object.exports.exec (child_process.js:111:18)
    at refreshMetrics (/home/florian/.pm2/node_modules/pm2-server-monit/lib/drive.js:10:6)
    at Object.init (/home/florian/.pm2/node_modules/pm2-server-monit/lib/drive.js:100:3)
    at /home/florian/.pm2/node_modules/pm2-server-monit/app.js:46:9
    at Object.PMX.initModule (/home/florian/.pm2/node_modules/pmx/lib/pmx.js:116:12)
$ node -v
v4.6.2

But work correctly if {shell: true} is not specified.
@vmarchaud @Unitech

TypeError: Incorrect value of args option

just installed and i am getting this exception on ubuntu 14.04.1 with node v0.10.31 and pm2 v0.14.3:

TypeError: Incorrect value of args option
    at exports.spawn (child_process.js:715:11)
    at Object.execute (/home/web/.pm2/node_modules/pm2-server-monit/lib/process.js:25:17)
    at Netstat.module.exports.Netstat.start (/home/web/.pm2/node_modules/pm2-server-monit/lib/network.js:60:27)
    at Object. (/home/web/.pm2/node_modules/pm2-server-monit/lib/netstat.js:11:9)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function._load (/usr/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
    at Module.require (module.js:364:17)

is there any necessary configuration or requirements i am missing?

no free/used disk space

Hi,
I'm unable to get the free/used disk space stats.
Drive param is / (I tried /opt too as this is the disk I'd like to monitor)
the disk usage command from the dashboard outputs
[+] Response has been successfully received:

File system Dim. Usati Dispon. Uso% Montato su
/dev/sda1 10G 4,3G 5,8G 43% /
devtmpfs 7,4G 0 7,4G 0% /dev
tmpfs 7,4G 4,0K 7,4G 1% /dev/shm
tmpfs 7,4G 729M 6,7G 10% /run
tmpfs 7,4G 0 7,4G 0% /sys/fs/cgroup
/dev/sdb1 69G 19G 47G 29% /opt
tmpfs 1,5G 0 1,5G 0% /run/user/1001

module is the latest as today (apr 12th 2017)

in the logs I see lots of
disk name invalid and / not found
but not in the last 2 hours

thanks

g

OS Version error

pm2-server-monit-22 (err):     at /home/users/app/.pm2/node_modules/pm2-server-monit/node_modules/shelljs/src/exec.js:138:7
pm2-server-monit-22 (err):     at ChildProcess.exithandler (child_process.js:758:5)
pm2-server-monit-22 (err):     at ChildProcess.emit (events.js:110:17)
pm2-server-monit-22 (err):     at maybeClose (child_process.js:1015:16)
pm2-server-monit-22 (err):     at Socket.<anonymous> (child_process.js:1183:11)
pm2-server-monit-22 (err):     at Socket.emit (events.js:107:17)
pm2-server-monit-22 (err):     at Pipe.close (net.js:485:12)
pm2-server-monit-22 (err): child_process: customFds option is deprecated, use stdio instead.
pm2-server-monit-22 (err): /home/users/bfapp/.pm2/node_modules/pm2-server-monit/lib/os.js:8
pm2-server-monit-22 (err):     var version = out.match(/[\n\r].*Release:\s*([^\n\r]*)/)[1];
pm2-server-monit-22 (err):                                                             ^
pm2-server-monit-22 (err): TypeError: Cannot read property '1' of null
pm2-server-monit-22 (err):     at /home/users/app/.pm2/node_modules/pm2-server-monit/lib/os.js:8:61
pm2-server-monit-22 (err):     at /home/users/app/.pm2/node_modules/pm2-server-monit/node_modules/shelljs/src/exec.js:138:7
pm2-server-monit-22 (err):     at ChildProcess.exithandler (child_process.js:758:5)
pm2-server-monit-22 (err):     at ChildProcess.emit (events.js:110:17)
pm2-server-monit-22 (err):     at maybeClose (child_process.js:1015:16)
pm2-server-monit-22 (err):     at Socket.<anonymous> (child_process.js:1183:11)
pm2-server-monit-22 (err):     at Socket.emit (events.js:107:17)
pm2-server-monit-22 (err):     at Pipe.close (net.js:485:12)

cat /etc/issue
CentOS release 6.6 (Final)
Kernel \r on an \m

uname -r
2.6.32-504.12.2.el6.x86_64

pm2 -v
0.14.1

node -v
v0.12.3

pm2-server-monit fails to install on latest npm and node

I tried to install pm2-server-monit with the following command:

pm2 install pm2-server-monit

It failed with the following error:

267 verbose stack Error: Invalid name: ".pm2"
267 verbose stack     at ensureValidName (/usr/lib/node_modules/npm/node_modules/normalize-package-data/lib/fixer.js:331:15)
267 verbose stack     at Object.module.exports.fixNameField (/usr/lib/node_modules/npm/node_modules/normalize-package-data/lib/fixer.js:210:5)
267 verbose stack     at /usr/lib/node_modules/npm/node_modules/normalize-package-data/lib/normalize.js:32:38
267 verbose stack     at Array.forEach (native)
267 verbose stack     at normalize (/usr/lib/node_modules/npm/node_modules/normalize-package-data/lib/normalize.js:31:15)
267 verbose stack     at thenCheckTop (/usr/lib/node_modules/npm/lib/install/validate-tree.js:58:3)
267 verbose stack     at Array.<anonymous> (/usr/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
267 verbose stack     at LOOP (/usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
267 verbose stack     at /usr/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
267 verbose stack     at thenValidateAllPeerDeps (/usr/lib/node_modules/npm/lib/install/validate-tree.js:46:3)

Here are my relevant system specs:

Distro:    Ubuntu 14.04.3 LTS @ 3.13.0-57-generic
Node: v4.1.1
Npm: 3.3.4
pm2: 0.15.7

ifconfig not available as non-root user

I've setup pm2 to a non-root user for security reasons. The issue is that ifconfig is not available to this user because /sbin is not on his path and I would like to keep it that way.

Is there any solution to this problem, e.g.: passing PATH env to pm2 or adding a config to specify the path to ifconfig?

Thanks

`Error: 1` on launch

This does not seem to affect the process nor its features (my keymetrics.io shows me all server-monit informations I want), but I got this log in pm2 everytime I'm starting the pm2-server-monit:

pm2-server-monit-26 Error: 1
    at /home/dev/.pm2/node_modules/pm2-server-monit/lib/os.js:35:26
    at /home/dev/.pm2/node_modules/pm2-server-monit/node_modules/shelljs/src/exec.js:142:7
    at ChildProcess.exithandler (child_process.js:758:5)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Socket.<anonymous> (child_process.js:1183:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:485:12)

Fail: could not retrieve user/lsof metrics

I have pm2 and pm2-server-monit running on a Windows Server 2012 R2 machine.

I am seeing these issues/errors:

Fail: could not retrieve lsof metrics
Fail: could not retrieve user metrics

The number just keeps going up and I can't find any information on them.

It also says:

Infected deployments: Server infected

What does this mean and how do I fix it..?

CPU spikes to 100% with installation of pm2-server-monit

Hi guys,

Thanks for your wonderful work on this project.

A few days ago we had an outage that was a result of servers spiking to 100% CPU usage and becoming inoperable.

  1. Start two processes, a web process and a application process with pm2
  2. Add pm2-server-monit alongside a Keymetrics key. pm2 install pm2-server-monit && pm2 link XXX YYY $HOSTNAME
  3. CPU spikes to 100%.
  4. Remove pm2-server-monit - pm2 uninstall pm2-server-monit.
  5. CPU returns to usual.

The application does not spike CPU when running with pm2-server-monit, indeed, it barely troubles > 10% CPU usage even for intensive operations. These are AWS m4.large instances.

I am wondering if we can walk through this problem together. The monitoring Keymetrics gives me at the moment (we are a paying customer) is useful and my own mitigation for now has been to remove the installation of pm2-server-monit from our deploy process.

"TypeError: Cannot read property '0' of null" on amazon red hat linux

error:

TypeError: Cannot read property '0' of null
    at /home/ec2-user/.pm2/node_modules/pm2-server-monit/lib/os.js:11:51
    at /home/ec2-user/.pm2/node_modules/pm2-server-monit/node_modules/shelljs/src/exec.js:138:7
    at ChildProcess.exithandler (child_process.js:656:7)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:766:16)
    at Socket.<anonymous> (child_process.js:979:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

os info:

NAME="Red Hat Enterprise Linux Server"
VERSION="7.1 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.1"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.1 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.1:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.1
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.1"

New commands

Add commands to retrieve output of commands:

  • display vmstats: vmstat
  • processes per user counter: ps hax -o user | sort | uniq -c
  • list space disk: df
  • who
  • uptime
  • ten top CPU consuming processes: ps -eo pcpu,user,args --no-headers| sort -t. -nk1,10 -k4,4 -r | head -n 10 | cut -c 1-60
  • listening ports: lsof -Pni4 | grep LISTEN
  • list number of open files: lsof -i -n -P | wc -l
  • list top processes using memory: ps -eo pmem,pid,cmd | sort -k 1 -nr | head -10 | cut -c 1-60

Having issue on windows

When I install it on windows using pm2 install pm2-server-monit its went crazy and keep opening new command windows and closing them. It acted like I have installed some virus. In a second it will open multiple command prompts and close them automatically and this goes on forever.

pm2-server-monit TypeError.

This is part of the email reporting an error regarding pm2-server-monit agent.

Application: pm2-server-monit
Message:
TypeError: Cannot read property 'replace' of undefined
at /root/.pm2/node_modules/pm2-server-monit/lib/drive.js:22:35
at ChildProcess.exithandler (child_process.js:742:7)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket. (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)

Import from Unitech/pm2#2284

Can't start: Error: spawn ENOENT

Hi.
I have CentOS 7 on my VDS and I have been installed pm2 and pm2-server-monit. But I have this errors in my log:

Error: spawn ENOENT
    at errnoException (child_process.js:1011:11)
    at Process.ChildProcess._handle.onexit (child_process.js:802:34)

14 times with status errored in pm2 list and number 14 in restarts column.
What I need to do? I know that this tool is working on ubuntu 14.04 on this VDS. May be I have some unresolved dependencies?
Thank you for your attention

os.js

4|pm2-serv | ip -s link failed to execute
4|pm2-serv | ip -s link failed to execute
4|pm2-serv | ip -s link failed to execute
4|pm2-serv | Error: 127
4|pm2-serv |     at /root/.pm2/node_modules/pm2-server-monit/lib/os.js:37:28
4|pm2-serv |     at /root/.pm2/node_modules/shelljs/src/exec.js:180:7
4|pm2-serv |     at ChildProcess.exithandler (child_process.js:213:5)
4|pm2-serv |     at emitTwo (events.js:106:13)
4|pm2-serv |     at ChildProcess.emit (events.js:191:7)
4|pm2-serv |     at maybeClose (internal/child_process.js:877:16)
4|pm2-serv |     at Socket.<anonymous> (internal/child_process.js:334:11)
4|pm2-serv |     at emitOne (events.js:96:13)
4|pm2-serv |     at Socket.emit (events.js:188:7)
4|pm2-serv |     at Pipe._handle.close [as _onclose] (net.js:498:12)
4|pm2-serv | ip -s link failed to execute

Refactor code

TypeError: Cannot read property 'replace' of undefined

I had this error, when my server was overload (in 30 minutes I had 60 load).

TypeError: Cannot read property 'replace' of undefined
    at /root/.pm2/node_modules/pm2-server-monit/lib/drive.js:22:35
    at ChildProcess.exithandler (child_process.js:194:7)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Socket. (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

exec: internal error

My pm2-server-monit-error-10.log log file is littered with the message above. No other useful output beside it.

I Cannot uninstalled or run anything

´´´
➜ interpretaMe git:(master) ✗ pm2 uninstall pm2-server-monit
[PM2] Spawning PM2 daemon
[Keymetrics.io] Using (Public key: xxx) (Private key: xxx)
[Keymetrics.io] [Agent updated] Agent ACTIVE - Web Access: https://app.keymetrics.io/
[PM2] PM2 Successfully daemonized
[PM2][Module] Starting module pm2-server-monit
[PM2][WARN] Applications pm2-server-monit not running, starting...
´´´

Cannot change DRIVE. Always monitors first drive

The drive I want to monitor appears second.
Looking thought the code, the drive been monitored is hard coded to [1]
So the monitor was looking a udev instead of /dev/xvda1

> df -h
Filesystem      Size  Used Avail Use% Mounted on 
udev            2.0G   12K  2.0G   1% /dev   
/dev/xvda1      7.8G  6.0G  1.4G  82% /

Ideally we should be able to configure the monitor through the configuration file:
> pm2 set pm2-server-monit:drive /dev/xvda1

pm2 processes ? (question mark) on left side, beside process name

I have installed pm2 and it all went on fine. But I see a few question (?) marks when I run pm2 monit which I don't really understand what it means. I have set up the monitoring server too, as specified in https://app.keymetrics.io console.

? PM2 monitoring (To go further check out https://app.keymetrics.io)

? pm2-server-monit                    [                              ] 0 %
[0] [fork_mode]                        [|||||                         ] 31.375 MB

? index                               [                              ] 0 %
[1] [cluster_mode]                     [||||||||                      ] 47.734 MB

? index                               [                              ] 0 %
[2] [cluster_mode]                     [||||||||                      ] 47.398 MB

? index                               [                              ] 0 %
[3] [cluster_mode]                     [||||||||                      ] 46.418 MB

The question marks that I am referring to are the ones in front of "index" e.g "? index"
I can see from some of the other screenshots on the web that it is supposed to be either a green or red circle. I have no idea as to what those circles are. Anyone can help me understand?

Thanks,
M.M

Network In/Out showing N/A

On my Keymetrics console, I'm not getting any data for Net in or out. Is there a config change that I'm missing? Client is CentOS 7.2.

Thank you

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.