Skip to content

MyMon is a monitoring application. Think of it as a very small nagios replacement.

License

Notifications You must be signed in to change notification settings

folkertvanheusden/MyMon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

what it is

MyMon is a really simpel monitoring application. It can (using Nagios check_* programs) do all kinds of checks. Performance data (from MyMon but also as returned by the check programs) will be inserted into an InfluxDB.

how to implement

  • apt install python3-pip influxdb-client influxdb mariadb-server

  • python3 -m pip install emails influxdb mysql.connector

  • create a database in mysql (CREATE DATABASE MyMon;)

  • insert the database schema in the newly created mysql db

$ mysql -u user -ppassword newdb < schema.sql
  • set access rights:
grant insert,select,update on newdb.* to user@localhost
  identified by 'password';
flush privileges;
  • create a database in influxdb (in CREATE DATABASE MyMon; from 'influx')

  • copy the settings from the previous steps into configuration.py

  • using 'cli.py' you can add a checks to the system, e.g.:

./cli.py add-contact mycontactgroupname [email protected]
./cli.py add-host some.server.tld
./cli.py add-local-check 'check_ssl_cert' '/usr/lib/nagios/plugins/check_ssl_cert -H %host%'
./cli.py add-check local 300 some.server.tld mycontactgroupname check_ssl_cert

Run cli.py without parameters to show a list of commands and their parameters.

how to run

./scheduler.py

license

Published under the MIT license by Folkert van Heusden [email protected].

About

MyMon is a monitoring application. Think of it as a very small nagios replacement.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages