# pm2-server-monit
**Repository Path**: tha19/pm2-server-monit
## Basic Information
- **Project Name**: pm2-server-monit
- **Description**: Monitor server CPU / Memory / Process / Zombie Process / Disk size / Security Packages / Network Input / Network Output
- **Primary Language**: JavaScript
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2018-08-31
- **Last Updated**: 2024-11-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Description
PM2 module to automatically monitor vital signs of your server :
* CPU average usage
* Free and used drive space
* Free and used memory space
* Operating System
* All processes running
* TTY/SSH opened
* Total opened files
* Network speed (input and output)
# pm2-server-monit
## Install
```bash
$ npm install pm2 -g
$ pm2 install pm2-server-monit
```
## Configuration
Default settings:
* `drive` is `/`. If the value is incorrect or not found, / will be monitored by default.
* `small_interval` is `1` second. Represents the refresh_rate of the cpu and network workers.
To modify the config values you can use Keymetrics dashboard or the following commands:
```bash
pm2 set pm2-server-monit:drive /
pm2 set pm2-server-monit:small_interval 10
```
:warning: If this module uses too much CPU, set the `small_interval` value to 10 or more.
## Info
If you have ❌ in some categories, your OS configuration is not supported for this option.
## Uninstall
```bash
$ pm2 uninstall pm2-server-monit
```
## Update to latest version
```bash
$ pm2 module:update pm2-server-monit
```
# License
MIT