Skip to content

Python and ansible scripts to manage icinga2 management

License

Notifications You must be signed in to change notification settings

chomes/icinga2_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Icinga Scripts

Icinga scripts are used for creating config files for adding new hosts to the server on the icinga server.

This can by done by :

  1. Using ansible scripts to install the repo and packages onto the host using yum and apt and also configuring client.
  2. Using ansible to install basic packages except mysql server (on ubuntu due to splash screen) and import services.conf to allow linux and windows services to be picked up in the configs
  3. Using a python script to create host files for new hosts you install.

#Future versions

  • Automate adding a windows node onto ansible
  • Automate host conf using argparse rather then inputs

How to use scripts

  • For ansible it's required to have ansible installed on whatever host you use ansible on and then run the playbook.

  • Knowledge of ansible is required great tutorials can be found online for this.

  • The default user I am using is ansible but feel free to change this around.

  • Please note that while the rhel/centos ansible script should work ec2 isn't fully supported, if you have some ansible knowledge, you can change the script around to remove the epel repo and instead enable the following repos on your ec2 host: rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

  • For python scripts simply running sudo python3 on ubuntu or your linux distro, you can also download the binary files I'll create if you want to run it without having python so you can just start up and go.

About

Python and ansible scripts to manage icinga2 management

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages