Giter VIP home page Giter VIP logo

mirth-zabbix's Introduction

Mirthix

Zabbix protocol implementation for Mirth Connect integration engine. Provides direct monitoring capabilities with a channel acting like Zabbix agent.

Implemented functionalities

  • Compatibility with Zabbix version 3 and 4.
  • Low level discovery for deployed channels and enabled connectors in Mirth Connect.
  • Passive agent checks for data collection (polling):
    • Connector statistics: received, errored, filtered, queued, sent (mirth.statistics)
    • Channel status (mirth.channel.status)
    • Connector status (mirth.connector.status)
    • Channel deployment date (mirth.deployementdate)
    • Agent ping (agent.ping)
    • Host name of zabbix_agentd running (agent.hostname, system.uname)
    • Version of zabbix_agent(d) running (agent.version)
  • IP address filtering with Rule Builder and $('remoteAddress').

Getting Started

Prerequisites

  • Mirth Connect โ‰ฅ 3.2.1, previous versions are not tested
  • Zabbix version 3 or 4
  • Zabbix template (Zabbix_template.xml)
  • Mirthix channel (Mirthix_channel.xml)

Installing

  1. Import Mirthix channel Mirthix_channel.xml in Mirth Connect Administrator.
  2. Configuration settings for Mirthix channel:
  • As seperate host in Zabbix:

    • TCP Listener: port 10050 or the port of your choice.
    • Add Zabbix server IP address in Source Filter values with Rule Builder (needs single or double quote).
    • Message storage is disabled by default because the channel may produce a lot of messages and full your database/file system. It should be activated only for debug purposes.
  • For an existing host in Zabbix:

    • TCP Listener: change port to 10051.
    • Add '127.0.0.1' in Source Filter values with Rule Builder (needs single or double quote).
    • Add the zabbix_agentd.d/mirth.conf file to your zabbix agent's config folder. In you zabbix_agentd.conf, make sure you have an Include option : "Include=C:\Program Files\Zabbix Agent\zabbix_agentd.conf.d*.conf" for Windows or "Include=/etc/zabbix/zabbix_agentd.conf.d/*.conf" for Linux
  1. Import Zabbix template Zabbix_template.xml in Zabbix console.
  2. Add the template:
  • Create host in Zabbix console with Mirth server IP address as Agent interface (with TCP Listener port) and add templates Template App Mirth and Template App Zabbix Agent pre Zabbix 5.0 or Template Module Zabbix agent in Zabbix 5.0 (default agent availability template provided by Zabbix).
  • Using an existing host, add the template Template App Mirth.

Testing

Mirthix can be tested with zabbix_get binary provided with Zabbix agent

./zabbix_get -s 127.0.0.1 -p 10050 -k agent.version
Mirthix 2.0.0

Trigger adjustment (Zabbix template)

Trigger adjustment is done with template macros and macro contexts: Templates > Template App Mirth > Macro.

Example: To trigger "Queue on Zabbix Monitoring | Zabbix Server" problem when queued > 20, add macro {$QUEUED:"Zabbix Monitoring | Zabbix Server"} with value 20. If no context is set on a macro, default macro {$QUEUED} will be used.

To disable unwanted item/trigger creation, you have to disable item/trigger prototype in template discovery rules (Templates > Template App Mirth > Discovery rules).

What's next ?

  • IP source filtering for security done !
  • Zabbix version 4 compatibility done !
  • UserParameter functionality to trigger custom actions in Mirth.

License

This project is licensed under the GNU General Public License v3 (GPLv3) - see the LICENSE file for details.

mirth-zabbix's People

Contributors

cboyer avatar davidthemaster30 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.