icinga-report+jasperserver+icinga-web安装步骤


icinga-report+jasperserver+icinga-web安装步骤:


已安装过icinga,步骤略




jaserserver:



# 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


一路默认回车即可


# /opt/jasperreports-server-cp-5.6.0/ctlscript.sh start



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

(如果出现build.xml does not exist可执行下面两步,如果没出现可跳过下面两步)


# 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――编辑――


jdbc:mysql://localhost:3306/icinga   用户名:idouser  密码:123456(视前面安装icinga而定)――


测试连接(连接成功)――保存





icinga-web:



http://archive.ubuntu.com/ubuntu/pool/universe/i/icinga-web/icinga-web_1.13.1-1_all.deb


# dpkg -i icinga-web_1.13.1-1_all.deb


第1次输的是root的密码(该root是指mysql的root)

第2次设的是icinga_web账号的密码

第1次设的是root的密码(该root是指登录页面的root)


# mysql -u root -p'123456'


> use mysql;

> grant all on icinga.* to icinga@localhost identified by 'icinga';   (此处必须是icinga和


icinga,和之前搭建icinga账号无关)

> flush privileges;


# cd /etc/icinga-web/conf.d/


# vi module_reporting.xml


<module enabled="true">   (默认为false)


:wq


# vi cronks.xml (找到icingaReportingDefault部分)


<ae parameter name="hide">false</ae parameter>

<ae parameter name="enabled">true</ae parameter>


:wq


# /usr/lib/icinga-web/bin/clearcache.sh



访问:http://ip/icinga-web   用户名:root  密码:123456(即上面设的密码)在左侧有个Reporting项(


通过该处即可查看jasperserver的icinga内容)





你可能感兴趣的:(icinga-report+jasperserver+icinga-web安装步骤)