GithubHelp home page GithubHelp logo

mikelasla / liferay-nagios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zylklab/liferay-nagios

0.0 2.0 0.0 26 KB

Icinga/Nagios setup to monitor LIferay DXP

License: Other

Dockerfile 29.04% Shell 70.96%

liferay-nagios's Introduction

Nagios setup for Liferay DXP

Table of Contents

Introduction

A well known example for JMX monitoring via JMX is available here. General direct monitoring commands (not JMX-based) may be used for Community Edition (CE) too.

The files involved in Nagios/Icinga configuration for Alfresco Community are the following:

  • objects/hosts-liferay.cfg (Alfresco hosts definition)
  • objects/commands-liferay.cfg (Nagios commands)
  • objects/services-liferay.cfg (Non NRPE services)
  • objects/commands-elk.cfg (Nagios commands for ELK)
  • objects/services-elk.cfg (Non NRPE services for ELK)

For using this setup you need some dependencies like curl, jq, jshon in your Nagios Server.

Using Docker

You can check this basic Nagios/Icinga setup using Docker in Ubuntu 14.04 LTS. It includes a template for using it in Liferay via check_jmx. You need to enable JMX in Liferay Portal.

  1. Clone this project
$ git clone https://github.com/zylklab/liferay-nagios
$ cd liferay-nagios
  1. Configure environment variables in docker-compose.yml file according to your services to monitor. Yo can even use a .env file for your sensitive passwords
...
    environment:
      - LF_HOST=tomcat.zylk.net
      - JMX_USER=${JMX_USER}
      - JMX_PASS=${JMX_PASS}
      - JXM_PORT=6666
      - ELK_HOST=tomcat.zylk.net
      - ELK_PORT=9200
    extra_hosts:
      - "tomcat.zylk.net:192.168.1.100"
  1. Run docker compose to start the application
$ docker-compose up

  1. Login on http://<containet-ip>:<container-port>/icinga (by default http://localhost:8888/icinga) with icingaadmin/admin credentials.

Note: Take into consideration that email alerts are not configured. You should configure postfix and Icinga/Nagios contacts.

Tested on

  • Liferay DXP
  • Nagios/Icinga 3
  • PNP4Nagios 0.6.0
  • Ubuntu 14.04 LTS
  • Docker version 1.18.09.1, build 4c52b90
  • Docker compose version 1.21.0

Contributors

Links

liferay-nagios's People

Contributors

cesarcapillas avatar

Watchers

James Cloos avatar Mikel Asla avatar

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.