wombat.ch

your Partner for Network Design and CMS

Software Information

Install Graphite - | - Debian 9 Stretch for Icingaweb2
#  icinga2 --v = installed with icinga2 (version: r2.6.0-1) /(version: r2.9.1-1) 


---
20.2 Change sources.list vi /etc/apt/sources.list

deb http://httpredir.debian.org/debian jessie main
apt update -y


20.3 apt install -y graphite-web graphite-carbon mysql-server python-mysqldb python-pymysql apache2 libapache2-mod-wsgi apt-transport-https ssl-cert python-pip
#  icinga2 feature enable perfdata graphite
#  systemctl restart icinga2.service
20.4 config #  vi /etc/graphite/local_settings.py SECRET_KEY 
TIME_ZONE  Europe/Zurich ALLOWED_HOSTS
20.5 config default/graphite-carbon vi /etc/default/graphite-carbon set true
20.6 install django pip install "django==1.4"
20.7 graphite-manage syncdb
chown _graphite. /var/lib/graphite/graphite.db
20.8 Apache config a2dissite 000-default.conf
cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available/
a2ensite apache2-graphite.conf
systemctl restart apache2
icinga Module # cd /usr/share/icingaweb2/modules
# git clone https://github.com/findmypast/icingaweb2-module-graphite graphite
# mv icingaweb2-module-graphite graphite
20.x icinga2 feature list
icinga2 feature enable graphite
20.x vi /etc/icinga2/features-enabled/graphite.conf library "perfdata"

object GraphiteWriter "graphite" {  
host = "10.147.42.36"  
port = 2003  
enable_send_thresholds = true

}
20.x GUI enable (Configuration > Modules > graphite > enable)
20.x Restart systemctl restart apache2 icinga2
systemctl status apache2 icinga2
       
  Icinga Gui Icinga Gui --> Configuration --> Modules
select graphite and then configuration
graphite web url differs from http://graphite.com/render/? or if your graphite prefix differs from "icinga" please create a config file in /etc/icingaweb2/modules/graphite/config.ini following this example:
    vi /etc/icingaweb2/modules/graphite/config.ini  
  copy paste the text from the Gui    
  change the IP to your Server  [graphite]
 base_url = http://10.147.42.36/render?
 
- - -


Quelle/Source:
Web freenode IRC #graphite

- (2017) Icingaweb2 Graphite Modul 
(2017) Revisited – Graphite-Web installation unter Debian 9
https://github.com/Icinga/icingaweb2-module-graphite/issues
(2015) Graphite für Icinga2 und Icingaweb2 installieren
-
-
-
-
-
-
-
- Add a comment


---- lesen
-
-- Master with Clients

 

Step  Master Debian 9 stretch Master_________________ Client "Debian GNU/Linux 9 (stretch)" Client stretch
  #  icinga2 --v icinga2 (version: r2.9.0-1)    
  #  vi /etc/icinga2/zones.conf object Endpoint "client.kozo.ch" {
host = "10.147.42.50"
}

object Zone "client.kozo.ch" {
endpoints = [ "client.kozo.ch" ]
parent = "master"
}
   

#  cd /etc/icinga2/zones.d/master/

#  vi host.conf
or a new file


mk

object Host "client.kozo.ch" {
check_command = "hostalive" //check is executed on the master
display_name = "client test"
address = "10.147.42.63"
vars.os = "debian9"
zone = "master"
vars.client_endpoint = name //follows the convention that host name == endpoint name
}


object Service "apt" {
host_name = "client.kozo.ch"
check_command = "apt"
command_endpoint = host_name
}

  #   icinga2 daemon -C      
  #  systemctl restart icinga2.service      
  #  systemctl status icinga2.service      
  #  multitail /var/log/icinga2/icinga2.log      
  add the Repository for the newest icinga2   #  wget -O - https://packages.icinga.com/icinga.key | apt-key add -  
      #  vi /etc/apt/sources.list deb http://packages.icinga.com/debian icinga-stretch main
deb-src http://packages.icinga.com/debian icinga-stretch main
      #  apt update -y  
# apt install -y bash-completion
# apt install -y -f icinga2
# apt install -y -f nagios-plugins
# systemctl restart icinga2
# systemctl status icinga2
# systemctl enable icinga2
#  icinga2 feature list
#  icinga2 feature enable command
#  systemctl restart icinga2
#  icinga2 node wizard

 icinga2-01.kozo.ch

 

 

10.147.42.36

#  vi /etc/icinga2/zones.conf

object Endpoint "icinga2-01.kozo.ch" {
        host = "10.147.42.36"
        port = "5665"
 }

object Zone "master" {
        endpoints = [ "icinga2-01.kozo.ch" ]
 }

object Endpoint "client" {
 }

object Zone "client" {
     endpoints = [ "client" ]
     parent = "master"
 }

#  service icinga2 restart
#  systemctl restart icinga2.service
#  systemctl status icinga2.service
icinga2 node list
# icinga2 node update-config
#  multitail /var/log/icinga2/icinga2.log #  multitail /var/log/icinga2/icinga2.log
Service löschen die es nicht braucht

#  vi /etc/icinga2/conf.d/services.conf

#  service icinga2 restart
icinga2 node list
# icinga2 node update-config

#  icinga2 daemon -C

# systemctl restart icinga2
# systemctl status icinga2

Add a comment

Read more: Icinga2 | add Icinga2 Client to a Master (r2.9.0-1)

Hugo Roy has been trying to install Kolab and not getting on particularly well with it. His experiences persuaded me to take another look at my Kolab installation done back in June, and to my surprise it didn’t seem to work any more. I eventually discovered some things that will probably need fixing in the packaging, and these are mentioned

...
Add a comment

Read more: Kolab and Debian Packaging Pitfalls

Today is a sad day for the world of Information Technology and the cause of software freedom. PJ just announced she’ll be shutting down Groklaw.

It’s hard to overestimate the role that Groklaw has played in the past years. Many of us, myself included, have worked with Groklaw over the years. I still take pride my article about the danger

...
Add a comment

Read more: Groklaw shutting down.

RSS Feed


Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

neusten Links


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client2/web2/web/j/modules/mod_quicklistweblinks/helper.php on line 78
many More Links »

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 1217 guests and no members online

We have 1124 guests, one bot and no members online


one bot:
1 x BOT for JCE