Giter Site home page Giter Site logo

Comments (3)

f-hj avatar f-hj commented on June 12, 2024

Hi,
pm2-server-monit use english language to parse df like this

Filesystem     1024-blocks     Used Available Capacity Mounted on
udev               6092628        0   6092628       0% /dev
tmpfs              1222564    62764   1159800       6% /run
/dev/sda2        102424904 72201512  24997460      75% /
tmpfs              6112804   109888   6002916       2% /dev/shm
tmpfs                 5120        4      5116       1% /run/lock
tmpfs              6112804        0   6112804       0% /sys/fs/cgroup
/dev/sda1           523248     3540    519708       1% /boot/efi
tmpfs              1222564      116   1222448       1% /run/user/1000

You can switch your system language to english or make a PR with multi language support.

from pm2-server-monit.

giulianozorzi avatar giulianozorzi commented on June 12, 2024

ok, thanks

from pm2-server-monit.

giulianozorzi avatar giulianozorzi commented on June 12, 2024

I changed drive.js line 10 to

cp.exec('export LANG=en_US.UTF-8; df -kP', { shell: true }, function(err, out) {

not the best solution but it should work :)

from pm2-server-monit.

Related Issues (20)

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.