greatcare / pm2-zabbix

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

Modify run as another user #23

Open ikorzh opened 6 years ago

ikorzh commented 6 years ago

I checked on Debian jessie & Ubuntu xenial If zabbix user & pm2 not equal

rkaw92 commented 6 years ago

Hi. I need some more context for this change. Could you describe what it aims to accomplish and why it is necessary? It seems to modify a file template only, and also contains an inconsistency in the comment: a sudo -i invocation is presented in comment only - not in the example line; which one is the user actually supposed to enter and why?

ikorzh commented 6 years ago

If PM2 run is not zabbix user need run sudo with -i, or not grant access to PM2 stats from PM2 user.

ikorzh commented 6 years ago

I add correct run UserParameter for sudo -i