Icinga: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
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 | ||
+ | |||
+ | 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 | ||
+ | |||
=Mobile= | =Mobile= | ||
https://wiki.icinga.org/display/howtos/Setting+up+Icinga+Mobile | https://wiki.icinga.org/display/howtos/Setting+up+Icinga+Mobile |
Version vom 25. Juli 2014, 07:43 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
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
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
Mobile
https://wiki.icinga.org/display/howtos/Setting+up+Icinga+Mobile
ubuntu
- http://www.patrick-gotthard.de/icinga-mit-neuem-webinterface-unter-ubuntu-installieren
- http://askubuntu.com/questions/169033/how-to-install-icinga-on-ubuntu-12-04-monitor-remote-host
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