Comments (7)
Here's the full trace:
"at": 1441190448506,
"data": {
"stack": "TypeError: Cannot call method 'replace' of undefined\n at probe.metric.name (/root/.pm2/node_modules/pm2-server-monit/lib/drive.js:23:36)\n at ChildProcess.exithandler (child_process.js:662:7)\n at ChildProcess.emit (events.js:98:17)\n at maybeClose (child_process.js:766:16)\n at Process.ChildProcess._handle.onexit (child_process.js:833:5)",
"arguments": [
"replace",
null
],
"type": "non_object_property_call",
"message": "Cannot call method 'replace' of undefined"
},
"process": {
"pm_id": 6,
"name": "pm2-server-monit",
"rev": null,
"server": "worker06"
},
"created_at": 1441165117481,
"updated_at": 1441190448506,
"count": 53,
"identifier": "1accf4d0eac390ac1a89c6a431f13328",
"infected_servers": [
"worker06"
],
"timestamps": [
1441165117481,
1441165135745,
1441165374883,
1441165383078,
1441176617400,
1441176625596,
1441176633774,
1441189982223,
1441189990448,
1441190008712,
1441190016919,
1441190025129,
1441190033329,
1441190041519,
1441190049717,
1441190057906,
1441190084388,
1441190092597,
1441190100827,
1441190109031,
1441190117239,
1441190125440,
1441190133647,
1441190141849,
1441190150043,
1441190158244,
1441190166462,
1441190174670,
1441190182864,
1441190191075,
1441190199271,
1441190207496,
1441190215716,
1441190232149,
1441190240365,
1441190248577,
1441190256779,
1441190264981,
1441190273185,
1441190281381,
1441190289590,
1441190297794,
1441190306003,
1441190314207,
1441190322413,
1441190330624,
1441190338827,
1441190347040,
1441190415603,
1441190423831,
1441190432063,
1441190440288,
1441190448506
],
"commits": [],
"servers": [
"worker06"
],
"show_detail": true
}
from pm2-server-monit.
Hi,
We parse the result of the command df -k
to retrieve information about your hard drive.
Could you execute it in command line and see if it outputs anything?
I will add error check for the next version of the module
from pm2-server-monit.
Yeah, df -k
works
:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0p1 49125768 4469532 42137732 10% /
none 4 0 4 0% /sys/fs/cgroup
udev 32940692 4 32940688 1% /dev
tmpfs 6596876 844 6596032 1% /run
none 5120 0 5120 0% /run/lock
none 32984372 0 32984372 0% /run/shm
none 102400 0 102400 0% /run/user
storage02:/storage 539645449984 316805194752 222840173312 59% /storage
from pm2-server-monit.
I just pushed an updated version, to see if it solves your issue could you uninstall the module (pm2 uninstall pm2-server-monit
) then git clone this repo, go into it and run pm2 install .
?
from pm2-server-monit.
Nice works, just has this left:
pm2-server-monit-12 (err): child_process: customFds option is deprecated, use stdio instead.
from pm2-server-monit.
Yep, corrected this as well. Will be updated on npm soon.
from pm2-server-monit.
New version published
from pm2-server-monit.
Related Issues (20)
- Monitor multiple disk volumes HOT 1
- Monitor https://github.com/openhardwaremonitor/openhardwaremonitor
- Current pm2-server-monit when running inside containers
- BIOS information
- Motherboard infos
- systeminformation
- pm2-server-monit status errored HOT 1
- Error message incorrect - implying virus infection HOT 1
- USE Method: Linux Performance Checklist
- Add more CPU metrics
- Current version is broken on MacOS. [cp is not defined] HOT 1
- Add windowsHide to spawn calls HOT 1
- TypeError: Cannot read property 'v1' of undefined HOT 1
- Save monitored data HOT 4
- Running on windows, p2-server-monit is calling linux commands HOT 10
- TypeError: Bad argument HOT 1
- ifconfig -s
- pm2-server-monit issue
- Memory usage reported in pm2.io does not correspond to what is shown by `htop` HOT 2
- zombie process
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pm2-server-monit.