Skip to content

monobilisim/monokit

Repository files navigation

Contributors

Forks Stargazers Issues GPL License

Readme in English

monokit

monokit is a collection of tools that were previously written in Bash in the mono.sh repository. These tools are written in Go and provide a more efficient and faster alternative to the Bash scripts. The tools are cross-platform.

Table of Contents


Tools

  • redisHealth

    • Checks Redis health, including read and write operations.
    • Sends alarm notifications to a Slack webhook.
  • osHealth

    • Checks OS health, including Disk, CPU and Memory usage.
    • Sends alarm notifications to a Slack webhook.
    • Opens issue in Redmine if disks are above the threshold.
    • Config: /etc/mono/os.yaml
  • redmine

    • Allows you to create, update and close issues in Redmine.
    • Has a service system that keeps track of the issue ID.
    • Config: /etc/mono/global.yaml
  • alarm

    • Sends alarm notifications to a Slack webhook.
    • Config: /etc/mono/global.yaml

Usage

  1. Configure by editing the config files in /etc/mono/. You can default values in the config folder. Please keep in mind that to use any of the tools, you need to also configure /etc/mono/global.yaml file.

  2. Run the desired tool using the following command as root:

monokit NAME

Replace NAME with the name of the tool you want to run (e.g. osHealth).

A log file will be put on /var/log/monokit.log if you want to check the errors. They will also be printed to stdout.


Building

To build monokit:

./build.sh

The resulting binaries will be in the bin folder.


License

monokit is licensed under GPL-3.0-only. See LICENSE file for details.