SAR은 디폴트로 AM/PM형태의 시간 형식을 사용한다. 이를 24시간 형식으로 변경하기위해서는 다음과 같이 한다.
- 설정으로 변경하기
- 일회성 설정 사용
export LC_TIME="POSIX"alias sar='LC_TIME="POSIX" sar'LC_TIME="POSIX" sarexport CATALINA_OPTS="$JAVA_OPTS -Xms1024m -Xmx2048m -XX:PermSize=32m -XX:MaxPermSize=128m -Xss2m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled"-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPTunzip jasperreports-server-cp-5.1.0-bin_2.zip -d /tmp/CREATE DATABASE jasperserver character set utf8;
GRANT ALL on *.* to 'jasperdb'@'localhost' IDENTIFIED BY 'tRe56Tr4V';
FLUSH PRIVILEGES; cd /tmp/jasperreports-server-cp-5.1.0-bin/buildomatic/
cp sample_conf/mysql_master.properties default_master.propertiesappServerType = tomcat6
appServerDir = /usr/share/tomcat6
CATALINA_HOME = /usr/share/tomcat6
CATALINA_BASE = /usr/share/tomcat6
dbType=mysql
dbHost=localhost
dbUsername=jasperdb
dbPassword=tRe56Tr4V
deployJDBCDriver=falsetar zxvf mysql-connector-java-5.1.25.tar.gz -C /tmp
cd /tmp/mysql-connector-java-5.1.25/
cp mysql-connector-java-5.1.25-bin.jar /tmp/jasperreports-server-cp-5.1.0-bin/buildomatic/conf_source/db/mysql/jdbc/
cp mysql-connector-java-5.1.25-bin.jar /usr/share/tomcat6/lib/
chown tomcat: /usr/share/tomcat6/lib/mysql-connector-java-5.1.25-bin.jar./js-install-ce.shchown -R tomcat: /usr/share/tomcat6/webapps/jasperserverhttp://<IP>:8080/jasperservertar zxvf icinga-reports-1.9.0.tar.gz -C /tmp
cd /tmp/icinga-reports-1.9.0mysql -uroot -p icinga < db/icinga/mysql/availability.sqlSHOW GRANTS FOR 'icinga'@'localhost';
+---------------------------------------------------------------------------------------------------------------+
| Grants for icinga@localhost                                                                                   |
+---------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'icinga'@'localhost' IDENTIFIED BY PASSWORD '*88D4515B04D41BAB8B950A069A26A2D449460144' |
| GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW ON `icinga`.* TO 'icinga'@'localhost'                 |
+---------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)GRANT EXECUTE ON icinga.* to 'icinga'@'localhost';
SHOW GRANTS FOR 'icinga'@'localhost';
+---------------------------------------------------------------------------------------------------------------+
| Grants for icinga@localhost                                                                                   |
+---------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'icinga'@'localhost' IDENTIFIED BY PASSWORD '*88D4515B04D41BAB8B950A069A26A2D449460144' |
| GRANT SELECT, INSERT, UPDATE, DELETE, DROP, EXECUTE, CREATE VIEW ON `icinga`.* TO 'icinga'@'localhost'        |
+---------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
FLUSH PRIVILEGES;./configure --with-jasper-server=/tmp/jasperreports-server-cp-5.1.0-bin
make js-import-icinga
cp ./jsp-server/classes/icinga/icinga-reporting.jar /usr/share/tomcat6/webapps/jasperserver/WEB-INF/libyum -y install php-devel libssh2-devel
pecl install -f ssh2
 
echo "extension=ssh2.so" >> /etc/php.ini
service httpd restartmkdir -p /etc/nagiosql/{hosts,services}
mkdir -p /etc/nagiosql/backup/{hosts,services}
chown -R apache:icinga /etc/nagiosqlchown apache:icinga /usr/local/icinga/etc/icinga.cfg
chown apache:icinga /usr/local/icinga/etc/cgi.cfg
chown apache:icinga /usr/local/icinga/var/rw/icinga.cmd
chgrp apache /usr/local/icinga/etc /usr/local/icinga/var/spool
chmod 640 /usr/local/icinga/etc/{icinga.cfg,cgi.cfg}
chmod 660 /usr/local/icinga/var/rw/icinga.cmdtar zxvf nagiosql_320.tar.gz -C /opt/
mv /opt/nagiosql32 /opt/nagiosql
chown -R apache /opt/nagiosql
chmod 750 /opt/nagiosql/config...생략...
file_uploads = On
...생략...
session.auto_start = 0
...생략...
date.timezone = "Asia/Seoul"
...생략...#NAGIOSQL SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#Last Modified: 03-24-2011
#This file contains examples of entries that need
#to be incorporated into your Apache web server
#configuration file. Customize the paths, etc. as
#needed to fit your system.
Alias /nagiosql "/opt/nagiosql"
<Directory "/opt/nagiosql">
        Options None
        AllowOverride None
        Order allow,deny
        Allow from all
        # Order deny,allow
        # Deny from all
        # Allow from 127.0.0.1
        # AuthName "NagiosQL Access"
        # AuthType Basic
        # AuthUserFile /etc/nagiosql/auth/nagiosql.users
        # Require valid-user
</Directory>service httpd restarthttp://<IP>/nagiosqlunzip nagiosql_320_sp2.zip -d /tmp
chown -R apache: /tmp/NagiosQL_3.2.0_SP2
cp -vfr /tmp/NagiosQL_3.2.0_SP2/* /opt/nagiosql/rm -rf /opt/nagiosql/install## Timeperiods
cfg_file=/etc/nagiosql/timeperiods.cfg
## Commands
cfg_file=/etc/nagiosql/commands.cfg
## Contacts
cfg_file=/etc/nagiosql/contacts.cfg
cfg_file=/etc/nagiosql/contactgroups.cfg
cfg_file=/etc/nagiosql/contacttemplates.cfg
## Hosts
cfg_dir=/etc/nagiosql/hosts
cfg_file=/etc/nagiosql/hosttemplates.cfg
cfg_file=/etc/nagiosql/hostgroups.cfg
cfg_file=/etc/nagiosql/hostextinfo.cfg
cfg_file=/etc/nagiosql/hostescalations.cfg
cfg_file=/etc/nagiosql/hostdependencies.cfg
## Services
cfg_dir=/etc/nagiosql/services
cfg_file=/etc/nagiosql/servicetemplates.cfg
cfg_file=/etc/nagiosql/servicegroups.cfg
cfg_file=/etc/nagiosql/serviceextinfo.cfg
cfg_file=/etc/nagiosql/serviceescalations.cfg
cfg_file=/etc/nagiosql/servicedependencies.cfgservice icinga stop
service ido2db stopsu -l icinga
tar zxvf icinga-1.9.0.tar.gz -C /tmp
cd /tmp/icinga-1.9.0
./configure --with-command-group=icinga-cmd --enable-idoutils --enable-ssl
make all
make install install-base install-cgis install-html install-init install-commandmode install-idoutils (as a root)cd /tmp/icinga-1.9.0/module/idoutils/db/mysql/upgrade 
mysql -uroot -p icinga < mysql-upgrade-1.9.0.sqlservice ido2db start
service icinga start