Thanks for taking the time to download and install cacti, the complete graphing
solution for your network. Before you can start making cool graphs, there are a few
pieces of data that cacti needs to know.
Make sure you have read and followed the required steps needed to install cacti
before continuing. Install information can be found for
Unix and Win32 -based operating systems.
Also, if this is an upgrade, be sure to reading the Upgrade information file.
Cacti is licensed under the GNU General Public License, you must agree
to its provisions before continuing:
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Please select the type of installation
>New Install
>Upgrade from cacti 0.8.x
The following information has been determined from Cacti's configuration file.
If it is not correct, please edit 'include/config.php' before continuing.
";
print "Database Hostname: $database_hostname ";
print "Database: $database_default ";
print "Server Operating System Type: " . $config["cacti_server_os"] . " "; ?>
Make sure all of these values are correct before continuing.
[FOUND] ";
}else{
$form_check_string = "[NOT FOUND] ";
}
}
/* draw the acual header and textbox on the form */
print "" . $form_check_string . $array["friendly_name"] . " ";
if (!empty($array["friendly_name"])) {
print ": " . $array["description"];
}else{
print "" . $array["description"] . " ";
}
print " ";
switch ($array["method"]) {
case 'textbox':
form_text_box($name, $current_value, "", "", "40", "text");
break;
case 'drop_array':
form_dropdown($name, $array["array"], "", "", $current_value, "", "");
break;
}
print "
";
}
$i++;
}?>
NOTE: Once you click "Finish",
all of your settings will be saved and your database will be upgraded if this
is an upgrade. You can change any of the settings on this screen at a later
time by going to "Cacti Settings" from within Cacti.
Upgrade results:
[Fail] ";
$success_text = "[Success] ";
if (isset($_SESSION["sess_sql_install_cache"])) {
while (list($index, $arr1) = each($_SESSION["sess_sql_install_cache"])) {
while (list($version, $arr2) = each($arr1)) {
while (list($status, $sql) = each($arr2)) {
if ($current_version != $version) {
$version_index = array_search($version, $cacti_versions);
$upgrade_results .= "" . $cacti_versions{$version_index-1} . " -> " . $cacti_versions{$version_index} . "
\n";
}
$upgrade_results .= "" . (($status == 0) ? $fail_text : $success_text) . nl2br($sql) . "
\n";
/* if there are one or more failures, make a note because we are going to print
out a warning to the user later on */
if ($status == 0) {
$failed_sql_query = true;
}
$current_version = $version;
}
}
}
kill_session_var("sess_sql_install_cache");
}else{
print "No SQL queries have been executed. ";
}
if ($failed_sql_query == true) {
print "WARNING: One or more of the SQL queries needed to
upgraded your Cacti installation has failed. Please see below for more details. Your
Cacti MySQL user must have SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE, and DROP
permissions. You should try executing the failed queries as 'root' to ensure that you do not have
a permissions problem.
\n";
}
print $upgrade_results;
?>
Important Upgrade Notice
Before you continue with the installation, you must update your /etc/crontab file to point to poller.php instead of cmd.php .
See the sample crontab entry below with the change made in red. Your crontab line will look slightly different based upon your setup.
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
Once you have made this change, please click Next to continue.
finishnext.gif" alt="FinishNext">