From: <vv...@us...> - 2011-03-27 21:07:37
|
Revision: 2537 http://ganglia.svn.sourceforge.net/ganglia/?rev=2537&view=rev Author: vvuksan Date: 2011-03-27 21:07:31 +0000 (Sun, 27 Mar 2011) Log Message: ----------- Add installation validity checks Modified Paths: -------------- branches/monitor-web-2.0/eval_conf.php Modified: branches/monitor-web-2.0/eval_conf.php =================================================================== --- branches/monitor-web-2.0/eval_conf.php 2011-03-27 20:32:28 UTC (rev 2536) +++ branches/monitor-web-2.0/eval_conf.php 2011-03-27 21:07:31 UTC (rev 2537) @@ -12,6 +12,20 @@ include_once "./conf.php"; } +// Installation validity checks +if ( ! isset($conf['rrds']) || ! is_readable($conf['rrds']) ) + die("<font color=red>ERROR: Directory with RRDs is inaccessible. Please make sure + you have an entry in conf.php that points to Ganglia RRDs and is + readable by the Apache user e.g.<p> + \$conf['rrds'] = '/var/lib/ganglia/rrds';</font>"); + +// +if ( ! isset($conf['dwoo_compiled_dir']) || ! is_writeable($conf['dwoo_compiled_dir']) ) + die("<font color=red>ERROR: Directory used for DWOO compiled templates is not writeable. + Please make sure you have an entry in conf.php contains a directory that exists and + is writeable by the Apache user e.g.<p> + \$conf['dwoo_compiled_dir'] = '/var/lib/ganglia/dwoo';</font>"); + # These are settings derived from the configuration settings, and # should not be modified. This file will be overwritten on package upgrades, # while changes made in conf.php should be preserved This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |