Icinga+idoutils+icinga-report+jasperserver Complete steps:
1, Icinga:
http://sourceforge.net/projects/icinga-cn/files/icinga-cn/icinga-cn-1.11/icinga-cn-
1.11.5.tar.gz/download
Http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
$ sudo useradd Icinga
$ sudo apt-get install Libdbi-dev
$ sudo apt-get install apache2
$ tar zxfv icinga-cn-1.11.5.tar.gz
$ CD icinga-cn-1.11.5
$./configure--prefix=/usr/local/icinga
$ make all
$ sudo make install
$ sudo make Install-init
$ sudo make Install-commandmode
$ sudo make install-idoutils
$ sudo make install-config
$ sudo make install-webconf
$ sudo make Install-webconf-auth
$ cd
$ tar zxfv nagios-plugins-2.0.3.tar.gz
$ CD nagios-plugins-2.0.3
$./configure--prefix=/usr/local/icinga
$ make
$ sudo make install
Check if the configuration is incorrect
$ sudo/usr/local/icinga/bin/icinga-v/usr/local/icinga/etc/icinga.cfg
Start Icinga:
$ sudo service Icinga start
Boot Icinga:
$ sudo vi/etc/rc.local (before exit 0 line)
sudo service Icinga start
: Wq
Icinga main documents:/usr/local/icinga/etc/icinga.cfg and/objects files
Modify HTTPD configuration file/etc/apache2/site-available/default (add in middle)
Scriptalias/icinga/cgi-bin "/usr/local/icinga/sbin"
<directory "/usr/local/icinga/sbin" >
AuthType Basic
Options execcgi
AllowOverride None
Order Allow,deny
Allow from all
AuthName "Icinga Access"
Authuserfile/usr/local/icinga/etc/htpasswd.users
Require Valid-user
</Directory>
: Wq
$ sudo ln-s/usr/local/icinga/share/var/www/icinga
$ sudo htpasswd-c/usr/local/icinga/etc/htpasswd.users icingaadmin
Enter a password (e.g., 123456)
Following the Change Password command:
$ sudo htpasswd/usr/local/icinga/etc/htpasswd.users icingaadmin
Restart Apache2:
$ sudo service apache2 restart
Access: Http://ip/icinga (enter user name Icinga and password)
2, Idoutils plug-in:
$ sudo apt-get install mysql-server libdbi-dev libdbd-mysql (root password set 123456, can be changed)
CD-To-Icinga source directory
$ sudo make clean
$./configure--prefix=/usr/local/icinga--enable-idoutils
$ sudo make all
$ sudo make install
$ sudo make Install-init
$ sudo make Install-commandmode
$ sudo make install-idoutils
$ sudo make install-config
$ sudo make install-webconf
$ sudo make Install-webconf-auth
$ sudo htpasswd/usr/local/icinga/etc/htpasswd.users icingaadmin (that is, reset the password)
$ sudo service apache2 restart
$ mysql-u root-p123456
> CREATE database Icinga default character set UTF8;
> Grant all on icinga.* to [email protected] identified by ' 123456 ';
> Quit
$ sudo mysql-u idouser-p Icinga < Module/idoutils/db/mysql/mysql.sql
$ sudo vi/usr/local/icinga/etc/ido2db.cfg
Db_user=idouser
db_pass=123456
: Wq
$ sudo service ido2db start
$ sudo service Icinga restart
$ sudo cat/usr/local/icinga/var/icinga.log (shows idomod:successfully connected to data sink that
Description no problem)
3, Jasperserver:
# wget Http://downloads.sourceforge.net/project/jasperserver/JasperServer/JasperReports
%20server%20community%20edition%205.6.0/jasperreports-server-cp-5.6.0-linux-x64-installer.run
# chmod +x Jasperreports-server-cp-5.6.0-linux-x64-installer.run
#./jasperreports-server-cp-5.6.0-linux-x64-installer.run
All the way to the default carriage
#/opt/jasperreports-server-cp-5.6.0/ctlscript.sh Start
Access: Http://ip:8080/jasperserver Administrator user name password are jasperadmin, ordinary account user name password are:
JoeUser
4, Icinga-report:
# wget http://sourceforge.net/projects/icinga/files/icinga-reporting/1.9.0/icinga-reports-
1.9.0.tar.gz
# tar ZXFV icinga-reports-1.9.0.tar.gz
# CD icinga-reports-1.9.0
#./configure--with-jasper-server=/opt/jasperreports-server-cp-5.6.0
# make
# make Install
(if Build.xml does not exist can perform the following two steps, skip the next two steps if it does not appear)
# cd/opt/jasperreports-server-cp-5.6.0/buildomatic/
#./js-import.sh--input-zip/root/icinga-reports-1.9.0/reports/icinga/package/js-icinga-
Reports.zip
#/opt/jasperreports-server-cp-5.6.0/ctlscript.sh Stop
#/opt/jasperreports-server-cp-5.6.0/ctlscript.sh Start
Http://ip:8080/jasperserver--root--Icinga--Data sources--ido--Editor--
Jdbc:mysql://localhost:3306/icinga User name: idouser Password: 123456 (depending on the previous installation Icinga)--
Test connection (Connection succeeded)--Save
This article is from the "Linux" blog, so be sure to keep this source http://yangzhiming.blog.51cto.com/4849999/1685487
Icinga+idoutils+icinga-report+jasperserver Complete steps