Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Salt Stack Formula to set up and configure the Open Monitoring Distribution (OMD)

License

Notifications You must be signed in to change notification settings

arnisoph/saltstack-omd-formula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

saltstack-omd-formula

Salt Stack Formula to set up and configure the Open Monitoring Distribution (OMD)

NOTICE BEFORE YOU USE

TODO

  • define parents when applicable (e.g. VMs)
  • provide CMK config examples (contrib/)
  • Bug: simultaneous execution of omd.cmkagent can prevent Salt from reloading the OMD site (because OMD prevents simultaneous reloads at the same time)
  • setup and configure inventory plugins/ local checks
  • config xinetd for livestatus

Instructions

  1. Add this repository as a GitFS backend in your Salt master config.
  2. Configure your Pillar top file (/srv/pillar/top.sls) and your pillars, see pillar.example.sls
  3. Include this Formula within another Formula or simply define your needed states within the Salt top file (/srv/salt/top.sls).

Available states

Installs a repo containing OMD packages (optionally)

Sets a Check_MK agent up

Manages an OMD instance with all its versions and sites

Additional resources

Apache httpd vhosts

If you don't want to truncate zzz_omd.conf which includes the default Apache httpd vhost config, overwrite config.manage in your pillars. But if you want to manage the vhost(s) manually use a httpd formula to manage httpd's vhosts.

Check_MK Configuration

This formula doesn't make use of Check_MK's Web Administration Tool (WATO ). The reason for this is that WATO has a confusing way (at least for me) of saving MK configuration files. Settings (like global settings in global.mk) aren't ordered in a specific order so it's often hard to generate WATO-like MK files.

This means to you that you A) should disable WATO in Multisite and B) configure all OMD/ Check_MK components manually including user DB, contacts, roles and more. Most of these will be possible with this formula.

Templates

Some states/ commands may refer to templates which aren't included in the files folder (omd/files). Take a look at contrib/ (if present) for e.g. template examples and place them in separate file roots (e.g. Git repository, refer to GitFS) in your Salt master config.

Formula Dependencies

None

Contributions

Contributions are always welcome. All development guidelines you have to know are

  • write clean code (proper YAML+Jinja syntax, no trailing whitespaces, no empty lines with whitespaces, LF only)
  • set sane default settings
  • test your code
  • update README.rst doc

Salt Compatibility

Tested with:

  • 2014.1.x
  • 2014.7.x

OS Compatibility

Tested with:

  • GNU/ Linux Debian Wheezy
  • CentOS 6 (client side)

About

Salt Stack Formula to set up and configure the Open Monitoring Distribution (OMD)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages