Icinga: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 38: Zeile 38:
  
 
Dies geschieht in der commands.cfg (liegt unter '''/etc/ininga/objects''') [Diese kann auch unter /usr/local/nagios/etc/objects/ oder /etc/nagios/ liegen]  
 
Dies geschieht in der commands.cfg (liegt unter '''/etc/ininga/objects''') [Diese kann auch unter /usr/local/nagios/etc/objects/ oder /etc/nagios/ liegen]  
 +
  
 
Dieses Case muss geändert werden:
 
Dieses Case muss geändert werden:

Version vom 10. Juli 2014, 14:00 Uhr

Icinca Classic

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

Mobile

https://wiki.icinga.org/display/howtos/Setting+up+Icinga+Mobile

ubuntu

Workaround "SOCKET TIMEOUT"

“CRITICAL – Socket timeout after 10 seconds” error kann man leicht fixen, indem man die Checkfrequenz erhöht.

Dies geschieht in der commands.cfg (liegt unter /etc/ininga/objects) [Diese kann auch unter /usr/local/nagios/etc/objects/ oder /etc/nagios/ liegen]


Dieses Case muss geändert werden:

define command {
 command_name    check_nrpe
 command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
 }

In diese Zeile:

define command {
 command_name    check_nrpe
 command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 20
 }

Man muss lediglich den Parameter "-t *sekundenanzahl*" anhängen