Shinken: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 14: Zeile 14:


== Monitoring a Host ==
== Monitoring a Host ==
=== Linux Client ===
<pre>adduser shinken
passwd shinken AnyPassword
# look for the mounted directories
df
</pre>
=== Server ===
=== Server ===
* linux-ssh needs only a key on the client!
* new file /etc/shinken/hosts/conan.cfg
* new file /etc/shinken/hosts/conan.cfg
<pre>define host{
<pre>define host{
   use            linux,ssh
   use            linux-ssh
   host_name      conan
   host_name      conan
   address        192.168.1.200
   address        192.168.1.200
   _SNMPCOMMUNITY  GeHeimEsPassWd
   _fs /, /home
}
}
</pre>
</pre>
<pre>service shinken reload
<pre>ssh-copy-id -i .ssh/id_rsa.pub shinken@conan
</pre>
service shinken reload
=== Linux Client ===
<pre>sudo apt-get install snmpd
</pre>vi /etc/snmp/snmpd.conf
# activate:
agentAddress udp:161,udp6:[::1]:161
rocommunity P@GeHeimEsPassWd  default    -V systemonly
</pre>
<pre>sudo service snmpd restart
</pre>
</pre>
== WEB-UI ==
== WEB-UI ==
<pre>
<pre>
Zeile 41: Zeile 43:
</pre>
</pre>
* /etc/shinken/modules/webui.cfg
* /etc/shinken/modules/webui.cfg
** modules auth-cfg-password,sqlitedb
** modules auth-cfg-password,SQLitedb
* /etc/shinken/brokers/brokers-master.cfg
* /etc/shinken/brokers/broker-master.cfg
** modules webui
** modules webui
* /etc/shinken/modules/sqlitedb.cfg
* /etc/shinken/modules/sqlitedb.cfg
Zeile 49: Zeile 51:
</pre>
</pre>
* URL: <server>:7767
* URL: <server>:7767
* User/password are taken from /etc/shinken/contacts/*.cfg

Aktuelle Version vom 23. Juni 2015, 07:24 Uhr

Installation[Bearbeiten]

apt-get install python-pip python-pycurl python-cherrypy3 python-paramiko

adduser shinken
pip install shinken

update-rc.d shinken defaults
shinken --init
shinken install linux-ssh
shinken search linux

Monitoring a Host[Bearbeiten]

Linux Client[Bearbeiten]

adduser shinken
passwd shinken AnyPassword
# look for the mounted directories
df

Server[Bearbeiten]

  • linux-ssh needs only a key on the client!
  • new file /etc/shinken/hosts/conan.cfg
define host{
   use             linux-ssh
   host_name       conan
   address         192.168.1.200
   _fs /, /home
}
ssh-copy-id -i .ssh/id_rsa.pub shinken@conan
service shinken reload


WEB-UI[Bearbeiten]

shinken install webui
shinken install auth-cfg-password
shinken install sqlitedb
  • /etc/shinken/modules/webui.cfg
    • modules auth-cfg-password,SQLitedb
  • /etc/shinken/brokers/broker-master.cfg
    • modules webui
  • /etc/shinken/modules/sqlitedb.cfg
service shinken reload
  • URL: <server>:7767
  • User/password are taken from /etc/shinken/contacts/*.cfg