Comments (5)
- Good catch! Sure, this is not intended. I'm going to fix it and release 0.2.1 soon. Hoping to cram in a few more fixes.
- This may be distro-specific. Are you using Ubuntu?
from pm2-zabbix.
Yes, the VM I've tested this on was a Ubuntu Server 14.04.
from pm2-zabbix.
Looks like Ubuntu mangles $HOME
, as described here: http://unix.stackexchange.com/questions/91384/how-is-sudo-set-to-not-change-home-in-ubuntu-and-how-to-disable-this-behavior
This will have to be considered in the installation instructions/files somehow. I would like to avoid telling users to always set a custom PM2_HOME
, at least as the default solution.
Can you check if this works in your sudoers file, instead of the Defaults
provided in this repository?
Defaults:zabbix !requiretty, always_set_home
The above directive should make sudo
set $HOME
to that of the target user when zabbix
is sudoing to it, so it should not be necessary to manually override PM2_HOME
.
from pm2-zabbix.
I'll test this out in a few days and will report back
from pm2-zabbix.
It works! Thanks
from pm2-zabbix.
Related Issues (20)
- pm2-zabbix --monitor PM2ZabbixMonitor#processListSendingError
- Not installed no Linux ubuntu
- error while running command : pm2-zabbix --monitor HOT 3
- monitor error HOT 2
- "level":50, "event":"PM2ZabbixMonitor#processListSendingError","error":{"killed":false,"code":2,"signal":null, "cmd":"/usr/bin/zabbix_sender --config /etc/zabbix/zabbix_agentd.conf --input-file -"} HOT 7
- SELinux is preventing /usr/bin/sudo from connectto access on the unix_stream_socket /run/dbus/system_bus_socket.
- Cannot find module 'zabbix-sender' HOT 1
- Problem with pm2-zabbix & varnish-zabbix HOT 1
- Failed to send pm2 data to Zabbix server getting "code":1 HOT 1
- Failed to send PM2 status: Error: Command failed:
- Wrong pm2.pid path
- pm2-zabbix --monitor wont run
- Warnings like (node:6980) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency HOT 3
- Zabbix-agent 2 and another zabbix-agent installation path
- active check "pm2.processes" is not supported: Unsupported item key. HOT 3
- Error Code 2 HOT 4
- Error Code 1 - Zabbix agent 2 HOT 1
- Warning: Accessing non-existent property 'cat' of module exports inside circular dependency HOT 1
- item_prototype name wrong
- error on ubuntu 22.04 ARM
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-zabbix.