greatcare / pm2-zabbix

A Node.js PM2 monitoring tool for Zabbix.
MIT License
87 stars 60 forks source link

npm install -g pm2-zabbix Error Install RedHat 6 #24

Open AdrianLince opened 6 years ago

AdrianLince commented 6 years ago

When I want to install when running npm install -g pm2-zabbix gives the following log

npm WARN addRemoteGit greatcare/node-zabbix-sender#v0.3.0 resetting remote /root/.npm/_git-remotes/git-github-com-greatcare-node-zabbix-sender-git-328e4dce because of error: { [Error: not found: git] code: 'ENOGIT' } npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git@github.com:greatcare/node-zabbix-sender.git /root/.npm/_git-remotes/git-github-com-greatcare-node-zabbix-sender-git-328e4dce: undefined npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git@github.com:greatcare/node-zabbix-sender.git /root/.npm/_git-remotes/git-github-com-greatcare-node-zabbix-sender-git-328e4dce: undefined npm ERR! Linux 2.6.32-696.18.7.el6.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "pm2-zabbix" npm ERR! node v4.8.7 npm ERR! npm v2.15.11 npm ERR! code ENOGIT

npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH.

npm ERR! Please include the following file with any support request: npm ERR! /etc/zabbix/zabbix_agentd.d/npm-debug.log

necesito ayuda

rkaw92 commented 6 years ago

Hi. It looks like you haven't got git installed.on that host. Since one of the dependencies is hosted directly on GitHub, you currently need git for cloning that repository.

AdrianLince commented 6 years ago

Hi.

I was able to install, but when executing pm2-zabbix --monitor --debug gives the next error

{"name":"pm2-zabbix","hostname":"VDC-07-106321","pid":21823,"level":50,"event":"PM2ZabbixMonitor#processListSendingError","error":{"killed":false,"code":1,"signal":null,"cmd":"/usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -"},"msg":"Failed to send process list with stats to server: Error: Command failed: /usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -\n","time":"2018-03-15T14:05:52.293Z","v":0} {"name":"pm2-zabbix","hostname":"VDC-07-106321","pid":21823,"level":50,"event":"PM2ZabbixMonitor#PM2StatusSent","error":{"killed":false,"code":1,"signal":null,"cmd":"/usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -"},"msg":"Failed to send PM2 status: Error: Command failed: /usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -\n","time":"2018-03-15T14:05:52.320Z","v":0}

slaffcheff commented 6 years ago

I have pretty much the same error but on Ubuntu 16.04. Any idea?