Test of centreon 2.0.1
This commit is contained in:
10
net-analyzer/centreon/files/99_centreon.conf
Normal file
10
net-analyzer/centreon/files/99_centreon.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
<IfDefine CENTREON>
|
||||
AddType application/x-java-jnlp-file .jnlp
|
||||
Alias /centreon/ /usr/share/centreon/www/
|
||||
<Directory /usr/share/centreon/www/>
|
||||
Options None
|
||||
AllowOverride AuthConfig Options
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
</IfDefine>
|
7
net-analyzer/centreon/files/centreon.cron
Normal file
7
net-analyzer/centreon/files/centreon.cron
Normal file
@@ -0,0 +1,7 @@
|
||||
OREON_DIR=/usr/share/centreon
|
||||
LOG_DIR=/var/log/centreon
|
||||
|
||||
0 0 * * * nagios /usr/bin/php -q ${OREON_DIR}/cron/inventory_update.php 2>&1 >> ${LOG_DIR}/Inventory_log
|
||||
0 1 1-31 * * nagios /usr/bin/php -q ${OREON_DIR}/cron/reporting/ArchiveLogInDB.php 2>&1 >> ${LOG_DIR}/ArchiveLogInDB_log
|
||||
* * * * * nagios ${OREON_DIR}/cron/parsing_status.pl 2>&1 >> ${LOG_DIR}/ods_parsing_status
|
||||
* * * * * nagios ${OREON_DIR}/cron/parsing_log.pl 2>&1 >> ${LOG_DIR}/ods_parsing_log
|
33
net-analyzer/centreon/files/installoreon.conf.php
Normal file
33
net-analyzer/centreon/files/installoreon.conf.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?
|
||||
$conf_installoreon['oreon_dir'] = "/usr/share/centreon/";
|
||||
$conf_installoreon['oreon_dir_www'] = "/usr/share/centreon/www/";
|
||||
$conf_installoreon['oreon_dir_rrd'] = "/var/cache/centreon/rrd/";
|
||||
|
||||
$conf_installoreon['nagios'] = "/usr/nagios/";
|
||||
$conf_installoreon['nagios_bin'] = "/usr/nagios/bin/";
|
||||
$conf_installoreon['nagios_var'] = "/var/nagios/";
|
||||
$conf_installoreon['nagios_conf'] = "/etc/nagios/";
|
||||
$conf_installoreon['nagios_plugins'] = "/usr/nagios/libexec/";
|
||||
$conf_installoreon['nagios_bin'] = "/usr/nagios/bin/";
|
||||
$conf_installoreon['nagios_init_script'] = "/etc/init.d/nagios";
|
||||
$conf_installoreon['nagios_user'] = "nagios";
|
||||
$conf_installoreon['nagios_group'] = "nagios";
|
||||
|
||||
$conf_installoreon['apache_user'] = "apache";
|
||||
$conf_installoreon['apache_group'] = "apache";
|
||||
|
||||
$conf_installoreon['rrdtool_dir'] = "/usr/bin/rrdtool";
|
||||
$conf_installoreon['mail'] = "/bin/mail";
|
||||
$conf_installoreon['pear_dir'] = "/usr/share/php";
|
||||
|
||||
$conf_installoreon['log_file'] = "/var/nagios/nagios.log";
|
||||
$conf_installoreon['status_file'] = "/var/nagios/status.log";
|
||||
$conf_installoreon['command_file'] = "/var/nagios/rw/nagios.cmd";
|
||||
$conf_installoreon['comment_file'] = "/var/nagios/comment.log";
|
||||
$conf_installoreon['downtime_file'] = "/var/nagios/downtime.log";
|
||||
$conf_installoreon['lock_file'] = "/var/nagios/nagios.lock";
|
||||
$conf_installoreon['temp_file'] = "/var/nagios/nagios.tmp";
|
||||
$conf_installoreon['state_retention_file'] = "/var/nagios/status.sav";
|
||||
$conf_installoreon['log_archive_path'] = "/var/nagios/archives";
|
||||
$conf_installoreon['physical_html_path'] = "/usr/nagios/share";
|
||||
?>
|
24
net-analyzer/centreon/files/ods.initd
Executable file
24
net-analyzer/centreon/files/ods.initd
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/centreon/files/ods.initd,v 1.1 2008/03/28 18:38:07 hollow Exp $
|
||||
|
||||
depend() {
|
||||
need mysql
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting OreonDataStorage (ODS)"
|
||||
start-stop-daemon --start --pidfile /var/run/ods.pid \
|
||||
--background \
|
||||
--exec /usr/sbin/ods \
|
||||
--user nagios \
|
||||
--group nagios
|
||||
eend
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping OreonDataStorage (ODS)"
|
||||
start-stop-daemon --stop --pidfile /var/run/ods.pid
|
||||
eend
|
||||
}
|
Reference in New Issue
Block a user