Icinga postresql: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „ =Postgres Anbindung= ==PPAPPA== add-apt-repository ppa:formorer/icinga apt-get update apt-get install icinga icinga-doc icinga-idoutils postgresql libdbd-p…“)
 
Zeile 26: Zeile 26:
 
==Install==
 
==Install==
 
  apt-get install icinga-web
 
  apt-get install icinga-web
 
=clientside=
 
 
es müssen folgende änderungen vorgenommen werden:
 
 
apt-get install nagios-nrpe-server
 
 
link setzen damit nagios das plugin findet (ansonsten gibts ein "Unable to red Output"-Error
 
ln -s /usr/local/sbin/check_openswan_tunnel /usr/lib/nagios/plugins/check_openswan_tunnel
 
dies nagios server dürfen zugreifen
 
allowed_hosts=192.168.202.31,10.20.30.40,10.9.8.7
 
parameter erlauben
 
dont_blame_nrpe=1
 
 
 
diese Zeilen anhängen /etc/nagios/nrpe.cfg
 
command[check_all_disks]=/usr/lib/nagios/plugins/check_disk -w 15% -c 8% -e
 
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 15% -c 8% -p $ARG1$
 
command[check_tunnel]=sudo /usr/lib/nagios/plugins/check_openswan_tunnel -c  $ARG1$
 
 
an /etc/sudoers anhängen:
 
echo "nagios ALL=(ALL) NOPASSWD:/usr/lib/nagios/plugins/check_openswan_tunnel" >> /etc/sudoers
 

Version vom 18. Februar 2015, 13:42 Uhr

Postgres Anbindung

PPAPPA

add-apt-repository ppa:formorer/icinga
apt-get update
apt-get install icinga icinga-doc icinga-idoutils postgresql libdbd-pgsql postgresql-client

Enable ido2db Daemon

vim /etc/default/icinga
IDO2DB=yes

service ido2db start

Nagios Plugins

apt-get install nagios-plugins

Enable idomod module

Check whether this has already been done in /etc/icinga/modules/idoutils.cfg. 
If not, copy the sample config over and restart Icinga to load the module. (Tip - if icinga.cfg does not contain
cfg_dir=/etc/icinga/modules the config won't be included!).
cp /usr/share/doc/icinga-idoutils/examples/idoutils.cfg-sample /etc/icinga/modules/idoutils.cfg

Icinca Web

Additional Packages

sudo apt-get install php5 php5-cli php-pear php5-xmlrpc php5-xsl php5-gd php5-ldap php5-pgsql

Install

apt-get install icinga-web