Giter VIP home page Giter VIP logo

Comments (5)

rkaw92 avatar rkaw92 commented on September 12, 2024

Great news. Sure, if you have any feedback or information on the steps it takes, go ahead. It could be useful to include this procedure, along with any gotchas, on the wiki or even in an additional readme-type file.

from pm2-zabbix.

clarkritchie avatar clarkritchie commented on September 12, 2024

Install on Ubuntu 16.04:

sudo apt-get install zabbix-sender
sudo npm install -g pm2-zabbix
# test: pm2-zabbix --discover
# run interactively:  pm2-zabbix --monitor

This installed as /usr/bin/pm2-zabbix -- not /usr/local/bin/pm2-zabbix as in the examples. Also, the user is ubuntu -- not debian. So configure for systemd:

# swap debian for ubuntu and remove local from path
wget -qO - https://raw.githubusercontent.com/greatcare/pm2-zabbix/master/install/init/systemd/pm2-zabbix.service | sed 's/\/local//' | sed 's/debian/ubuntu/' | sudo tee /etc/systemd/system/pm2-zabbix.service

Edit sudoers as per #1, adding:

zabbix  ALL=(ALL:ALL) NOPASSWD: /usr/bin/pm2-zabbix
sudo systemctl enable pm2-zabbix
sudo systemctl start pm2-zabbix
# stop:  sudo systemctl stop pm2-zabbix
# restart:  sudo systemctl restart pm2-zabbix

Add the UserParameter to Zabbix agent and restart:

wget -qO - https://raw.githubusercontent.com/greatcare/pm2-zabbix/master/install/zabbix-agent/pm2-zabbix.conf | sed s/debian/ubuntu/ | sudo tee /etc/zabbix/zabbix_agentd.d/pm2-zabbix.conf

sudo systemctl restart zabbix-agent

Here is my template Template App PM2 as exported from Zabbix 2.4.8. It's still work in progress -- but the Item prototypes work, I'm still tweaking/testing the Trigger prototypes.

Thanks again!

from pm2-zabbix.

rkaw92 avatar rkaw92 commented on September 12, 2024

I've posted the steps to here (and bootstrapped the wiki along the way):
https://github.com/greatcare/pm2-zabbix/wiki/Install-on-Ubuntu-16.04

Thanks for the contribution - really appreciated. Not closing the issue at the moment in case you have more insight as to the triggers.

from pm2-zabbix.

clarkritchie avatar clarkritchie commented on September 12, 2024

I'll post an update in a bit when I have them dialed in.

from pm2-zabbix.

rkaw92 avatar rkaw92 commented on September 12, 2024

I don't suppose the wiki is getting an improvement w.r.t. installing on Ubuntu 16.04 any time soon. Closing.

from pm2-zabbix.

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.