icinga2 daemon -C
apt purge icinga2-common
  • apt install icinga2-bin icinga2-common libboost-program-options1.65.1 libboost-regex1.65.1 libboost-system1.65.1 libboost-thread1.65.1 libicinga2 icinga2
  • mv /etc/icinga2/conf.d /etc/icinga2/conf.d.
  • Comment out unneeded local configuration:
    mv /etc/icinga2/conf.d /etc/icinga2/conf.d.
  • mkdir /etc/icinga2/conf.d
  • Add user nagios to procadmin group
  • Run
    systemctl restart icinga2
  • Add client definition to
    /etc/icinga2/zones.conf
object Endpoint "client" {
  host = "10.0.10.1"
}
object Zone "client" {
  endpoints = [ "client" ]
  parent = "master"
}
  • Add client to
    /etc/icinga2/zones.d/master/hosts.conf
  • Run
    systemctl restart icinga2

Adding Monitoring

# pip3 install icinga2api
/opt/tools/nagios # vim config.py
/opt/tools/nagios # ./passive-submit.py -w 1000 -c 2000 --plugin-full-path /usr/lib/nagios/plugins/check_mysql_health --hostname mur --service "mysql: bufferpool-hitrate" --plugin-data -d --mycnf ~/.my.cnf --mode bufferpool-hitrate
  • faq/icinga.txt
  • Last modified: 4 months ago
  • by Dr Serge Victor