Cacti Installation und Grundkonfiguration
Installation
Wie soll es auch anders sein, wir installieren am einfachsten das Paket cacti via YUM.
# yum install cacti
Was uns dieses Pakete (mit)liefert, entnehmen wir wie gewohnt dem rpm.
# yum info cacti Available Packages Name : cacti Summary: Complete network graphing solution designed on top of RRDTool Description: Cacti is a complete frontend to RRDTool. It stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. Along with being able to maintain graphs, data sources, and round robin archives in a database, Cacti also handles the data gathering. There is SNMP support for those used to creating traffic graphs with MRTG.
Programmpfade und -inhalte
Über die einzelnen Dateien und Pfade der installierten Programme, informieren wir uns mittels:
# rpm -ql cacti /etc/cron.d/cacti /etc/httpd/conf.d/cacti.conf /usr/share/doc/cacti-0.8.7b /usr/share/doc/cacti-0.8.7b/LICENSE /usr/share/doc/cacti-0.8.7b/README /var/www/cacti /var/www/cacti/about.php /var/www/cacti/auth_changepassword.php /var/www/cacti/auth_login.php /var/www/cacti/cacti.sql /var/www/cacti/cdef.php /var/www/cacti/cli /var/www/cacti/cli/.htaccess /var/www/cacti/cli/add_device.php /var/www/cacti/cli/add_graphs.php /var/www/cacti/cli/add_perms.php /var/www/cacti/cli/add_tree.php /var/www/cacti/cli/copy_user.php /var/www/cacti/cli/poller_graphs_reapply_names.php /var/www/cacti/cli/poller_output_empty.php /var/www/cacti/cli/poller_reindex_hosts.php /var/www/cacti/cli/rebuild_poller_cache.php /var/www/cacti/cli/repair_database.php /var/www/cacti/cmd.php /var/www/cacti/color.php /var/www/cacti/data_input.php /var/www/cacti/data_queries.php /var/www/cacti/data_sources.php /var/www/cacti/data_templates.php /var/www/cacti/docs /var/www/cacti/docs/CHANGELOG /var/www/cacti/docs/CONTRIB /var/www/cacti/docs/INSTALL /var/www/cacti/docs/README /var/www/cacti/docs/REQUIREMENTS /var/www/cacti/docs/UPGRADE /var/www/cacti/docs/html /var/www/cacti/docs/html/LICENSE.html /var/www/cacti/docs/html/advanced_topics.html /var/www/cacti/docs/html/basics.html /var/www/cacti/docs/html/batch_copy_users.html /var/www/cacti/docs/html/bsd_ports.html /var/www/cacti/docs/html/cacti_help.html /var/www/cacti/docs/html/cdefs.html /var/www/cacti/docs/html/check_cacti_poller.html /var/www/cacti/docs/html/check_data_gathering.html /var/www/cacti/docs/html/check_mysql_updating.html /var/www/cacti/docs/html/check_rrd_graph.html /var/www/cacti/docs/html/check_rrd_numbers.html /var/www/cacti/docs/html/check_rrd_owner.html /var/www/cacti/docs/html/check_rrd_updating.html /var/www/cacti/docs/html/check_zero_values.html /var/www/cacti/docs/html/cli_add_device.html /var/www/cacti/docs/html/cli_add_graphs.html /var/www/cacti/docs/html/cli_add_perms.html /var/www/cacti/docs/html/cli_add_tree.html /var/www/cacti/docs/html/cli_copy_user.html /var/www/cacti/docs/html/cli_poller_graphs_reapply_names.html /var/www/cacti/docs/html/cli_poller_output_empty.html /var/www/cacti/docs/html/cli_poller_reindex_hosts.html /var/www/cacti/docs/html/copying_user.html /var/www/cacti/docs/html/create_new_user.html /var/www/cacti/docs/html/data_input_methods.html /var/www/cacti/docs/html/data_presentation.html /var/www/cacti/docs/html/data_queries.html /var/www/cacti/docs/html/data_storage.html /var/www/cacti/docs/html/debug_miscellaneous.html /var/www/cacti/docs/html/debug_rpm_installation.html /var/www/cacti/docs/html/debugging.html /var/www/cacti/docs/html/delete_users.html /var/www/cacti/docs/html/enable_disable_users.html /var/www/cacti/docs/html/faq.html /var/www/cacti/docs/html/graph_howto.html /var/www/cacti/docs/html/graph_overview.html /var/www/cacti/docs/html/graph_snmp_oid.html /var/www/cacti/docs/html/graph_templates.html /var/www/cacti/docs/html/graph_viewing.html /var/www/cacti/docs/html/guest_access.html /var/www/cacti/docs/html/host_templates.html /var/www/cacti/docs/html/host_variables.html /var/www/cacti/docs/html/how_to.html /var/www/cacti/docs/html/images /var/www/cacti/docs/html/images/data_template.png /var/www/cacti/docs/html/images/export_template.png /var/www/cacti/docs/html/images/graph_template.png /var/www/cacti/docs/html/images/graph_tree.png /var/www/cacti/docs/html/images/host_template.png /var/www/cacti/docs/html/images/import_template.png /var/www/cacti/docs/html/images/new_device.png /var/www/cacti/docs/html/images/new_graphs.png /var/www/cacti/docs/html/images/principles_of_operation.png /var/www/cacti/docs/html/images/user_management_batch_copy_1.png /var/www/cacti/docs/html/images/user_management_batch_copy_2.png /var/www/cacti/docs/html/images/user_management_copy_1.png /var/www/cacti/docs/html/images/user_management_copy_2.png /var/www/cacti/docs/html/images/user_management_delete_1.png /var/www/cacti/docs/html/images/user_management_delete_2.png /var/www/cacti/docs/html/images/user_management_edit.png /var/www/cacti/docs/html/images/user_management_enable_disable_1.png /var/www/cacti/docs/html/images/user_management_enable_disable_2.png /var/www/cacti/docs/html/images/user_management_list.png /var/www/cacti/docs/html/images/user_management_new.png /var/www/cacti/docs/html/index.html /var/www/cacti/docs/html/install_unix.html /var/www/cacti/docs/html/install_windows.html /var/www/cacti/docs/html/installation.html /var/www/cacti/docs/html/making_scripts_work_with_cacti.html /var/www/cacti/docs/html/manual.css /var/www/cacti/docs/html/migration_php_scripts_to_script_server.html /var/www/cacti/docs/html/new_graphs.html /var/www/cacti/docs/html/operating_principles.html /var/www/cacti/docs/html/php_script_server.html /var/www/cacti/docs/html/reference.html /var/www/cacti/docs/html/requirements.html /var/www/cacti/docs/html/rrdtool_features.html /var/www/cacti/docs/html/script_query_xml.html /var/www/cacti/docs/html/scripts.html /var/www/cacti/docs/html/snmp_query_xml.html /var/www/cacti/docs/html/template_export.html /var/www/cacti/docs/html/template_import.html /var/www/cacti/docs/html/templates.html /var/www/cacti/docs/html/testing_script_in_script_server.html /var/www/cacti/docs/html/unix_apply_patches.html /var/www/cacti/docs/html/unix_configure_cacti.html /var/www/cacti/docs/html/unix_configure_httpd.html /var/www/cacti/docs/html/unix_configure_mysql.html /var/www/cacti/docs/html/unix_configure_php.html /var/www/cacti/docs/html/unix_configure_spine.html /var/www/cacti/docs/html/upgrade.html /var/www/cacti/docs/html/upgrade_using_hostmib_data_queries.html /var/www/cacti/docs/html/user_management.html /var/www/cacti/docs/html/using_spine.html /var/www/cacti/docs/html/variables.html /var/www/cacti/docs/text /var/www/cacti/docs/text/manual.txt /var/www/cacti/gprint_presets.php /var/www/cacti/graph.php /var/www/cacti/graph_image.php /var/www/cacti/graph_settings.php /var/www/cacti/graph_templates.php /var/www/cacti/graph_templates_inputs.php /var/www/cacti/graph_templates_items.php /var/www/cacti/graph_view.php /var/www/cacti/graph_xport.php /var/www/cacti/graphs.php /var/www/cacti/graphs_items.php /var/www/cacti/graphs_new.php /var/www/cacti/host.php /var/www/cacti/host_templates.php /var/www/cacti/images /var/www/cacti/images/arrow.gif /var/www/cacti/images/auth_deny.gif /var/www/cacti/images/auth_login.gif /var/www/cacti/images/auth_logout.gif /var/www/cacti/images/button_add.gif /var/www/cacti/images/button_cancel.gif /var/www/cacti/images/button_cancel2.gif /var/www/cacti/images/button_clear.gif /var/www/cacti/images/button_colapse_all.gif /var/www/cacti/images/button_create.gif /var/www/cacti/images/button_default.gif /var/www/cacti/images/button_delete.gif /var/www/cacti/images/button_expand_all.gif /var/www/cacti/images/button_export.gif /var/www/cacti/images/button_go.gif /var/www/cacti/images/button_help.gif /var/www/cacti/images/button_import.gif /var/www/cacti/images/button_no.gif /var/www/cacti/images/button_purge.gif /var/www/cacti/images/button_refresh.gif /var/www/cacti/images/button_save.gif /var/www/cacti/images/button_view.gif /var/www/cacti/images/button_yes.gif /var/www/cacti/images/cacti_about_logo.gif /var/www/cacti/images/cacti_backdrop.gif /var/www/cacti/images/cacti_backdrop2.gif /var/www/cacti/images/cacti_logo.gif /var/www/cacti/images/calendar.gif /var/www/cacti/images/delete_icon.gif /var/www/cacti/images/delete_icon_large.gif /var/www/cacti/images/favicon.ico /var/www/cacti/images/graph_page_top.gif /var/www/cacti/images/graph_properties.gif /var/www/cacti/images/graph_query.png /var/www/cacti/images/graph_zoom.gif /var/www/cacti/images/hide.gif /var/www/cacti/images/left_border.gif /var/www/cacti/images/menu_line.gif /var/www/cacti/images/menuarrow.gif /var/www/cacti/images/move_down.gif /var/www/cacti/images/move_left.gif /var/www/cacti/images/move_right.gif /var/www/cacti/images/move_up.gif /var/www/cacti/images/reload_icon_small.gif /var/www/cacti/images/shadow.gif /var/www/cacti/images/shadow_gray.gif /var/www/cacti/images/show.gif /var/www/cacti/images/tab_cacti.gif /var/www/cacti/images/tab_console.gif /var/www/cacti/images/tab_console_down.gif /var/www/cacti/images/tab_graphs.gif /var/www/cacti/images/tab_graphs_down.gif /var/www/cacti/images/tab_mode_list.gif /var/www/cacti/images/tab_mode_list_down.gif /var/www/cacti/images/tab_mode_preview.gif /var/www/cacti/images/tab_mode_preview_down.gif /var/www/cacti/images/tab_mode_tree.gif /var/www/cacti/images/tab_mode_tree_down.gif /var/www/cacti/images/tab_settings.gif /var/www/cacti/images/tab_settings_down.gif /var/www/cacti/images/transparent_line.gif /var/www/cacti/include /var/www/cacti/include/auth.php /var/www/cacti/include/bottom_footer.php /var/www/cacti/include/config.php /var/www/cacti/include/global.php /var/www/cacti/include/global_arrays.php /var/www/cacti/include/global_constants.php /var/www/cacti/include/global_form.php /var/www/cacti/include/global_settings.php /var/www/cacti/include/html /var/www/cacti/include/html/inc_data_source_filter_table.php /var/www/cacti/include/html/inc_data_template_filter_table.php /var/www/cacti/include/html/inc_device_filter_table.php /var/www/cacti/include/html/inc_dq_view_filter_table.php /var/www/cacti/include/html/inc_dt_view_filter_table.php /var/www/cacti/include/html/inc_graph_filter_table.php /var/www/cacti/include/html/inc_graph_items_filter_table.php /var/www/cacti/include/html/inc_graph_template_filter_table.php /var/www/cacti/include/html/inc_graph_view_filter_table.php /var/www/cacti/include/html/inc_host_template_filter_table.php /var/www/cacti/include/html/inc_poller_item_filter_table.php /var/www/cacti/include/html/inc_snmp_cache_filter_table.php /var/www/cacti/include/html/inc_timespan_selector.php /var/www/cacti/include/html/inc_timespan_settings.php /var/www/cacti/include/html/inc_user_admin_filter_table.php /var/www/cacti/include/html/inc_user_log_filter_table.php /var/www/cacti/include/html/inc_view_logfile_table.php /var/www/cacti/include/jscalendar /var/www/cacti/include/jscalendar/calendar-setup.js /var/www/cacti/include/jscalendar/calendar.js /var/www/cacti/include/jscalendar/lang /var/www/cacti/include/jscalendar/lang/calendar-af.js /var/www/cacti/include/jscalendar/lang/calendar-al.js /var/www/cacti/include/jscalendar/lang/calendar-bg.js /var/www/cacti/include/jscalendar/lang/calendar-big5-utf8.js /var/www/cacti/include/jscalendar/lang/calendar-big5.js /var/www/cacti/include/jscalendar/lang/calendar-br.js /var/www/cacti/include/jscalendar/lang/calendar-ca.js /var/www/cacti/include/jscalendar/lang/calendar-cs-utf8.js /var/www/cacti/include/jscalendar/lang/calendar-cs-win.js /var/www/cacti/include/jscalendar/lang/calendar-da.js /var/www/cacti/include/jscalendar/lang/calendar-de.js /var/www/cacti/include/jscalendar/lang/calendar-du.js /var/www/cacti/include/jscalendar/lang/calendar-el.js /var/www/cacti/include/jscalendar/lang/calendar-en.js /var/www/cacti/include/jscalendar/lang/calendar-es.js /var/www/cacti/include/jscalendar/lang/calendar-fi.js /var/www/cacti/include/jscalendar/lang/calendar-fr.js /var/www/cacti/include/jscalendar/lang/calendar-he-utf8.js /var/www/cacti/include/jscalendar/lang/calendar-hr-utf8.js /var/www/cacti/include/jscalendar/lang/calendar-hr.js /var/www/cacti/include/jscalendar/lang/calendar-hu.js /var/www/cacti/include/jscalendar/lang/calendar-it.js /var/www/cacti/include/jscalendar/lang/calendar-jp.js /var/www/cacti/include/jscalendar/lang/calendar-ko-utf8.js /var/www/cacti/include/jscalendar/lang/calendar-ko.js /var/www/cacti/include/jscalendar/lang/calendar-lt-utf8.js /var/www/cacti/include/jscalendar/lang/calendar-lt.js /var/www/cacti/include/jscalendar/lang/calendar-lv.js /var/www/cacti/include/jscalendar/lang/calendar-nl.js /var/www/cacti/include/jscalendar/lang/calendar-no.js /var/www/cacti/include/jscalendar/lang/calendar-pl-utf8.js /var/www/cacti/include/jscalendar/lang/calendar-pl.js /var/www/cacti/include/jscalendar/lang/calendar-pt.js /var/www/cacti/include/jscalendar/lang/calendar-ro.js /var/www/cacti/include/jscalendar/lang/calendar-ru.js /var/www/cacti/include/jscalendar/lang/calendar-ru_win_.js /var/www/cacti/include/jscalendar/lang/calendar-si.js /var/www/cacti/include/jscalendar/lang/calendar-sk.js /var/www/cacti/include/jscalendar/lang/calendar-sp.js /var/www/cacti/include/jscalendar/lang/calendar-sv.js /var/www/cacti/include/jscalendar/lang/calendar-tr.js /var/www/cacti/include/jscalendar/lang/calendar-zh.js /var/www/cacti/include/jscalendar/lang/cn_utf8.js /var/www/cacti/include/layout.js /var/www/cacti/include/main.css /var/www/cacti/include/top_graph_header.php /var/www/cacti/include/top_header.php /var/www/cacti/include/treeview /var/www/cacti/include/treeview/ftiens4.js /var/www/cacti/include/treeview/ftiens4_export.js /var/www/cacti/include/treeview/ftv2blank.gif /var/www/cacti/include/treeview/ftv2lastnode.gif /var/www/cacti/include/treeview/ftv2mlastnode.gif /var/www/cacti/include/treeview/ftv2mnode.gif /var/www/cacti/include/treeview/ftv2node.gif /var/www/cacti/include/treeview/ftv2plastnode.gif /var/www/cacti/include/treeview/ftv2pnode.gif /var/www/cacti/include/treeview/ftv2vertline.gif /var/www/cacti/include/treeview/ua.js /var/www/cacti/include/zoom.js /var/www/cacti/index.php /var/www/cacti/install /var/www/cacti/install/0_8_1_to_0_8_2.php /var/www/cacti/install/0_8_2_to_0_8_2a.php /var/www/cacti/install/0_8_2a_to_0_8_3.php /var/www/cacti/install/0_8_3_to_0_8_4.php /var/www/cacti/install/0_8_4_to_0_8_5.php /var/www/cacti/install/0_8_5a_to_0_8_6.php /var/www/cacti/install/0_8_6_to_0_8_6a.php /var/www/cacti/install/0_8_6c_to_0_8_6d.php /var/www/cacti/install/0_8_6d_to_0_8_6e.php /var/www/cacti/install/0_8_6f_to_0_8_6g.php /var/www/cacti/install/0_8_6g_to_0_8_6h.php /var/www/cacti/install/0_8_6h_to_0_8_6i.php /var/www/cacti/install/0_8_6j_to_0_8_7.php /var/www/cacti/install/0_8_7_to_0_8_7a.php /var/www/cacti/install/0_8_7a_to_0_8_7b.php /var/www/cacti/install/0_8_to_0_8_1.php /var/www/cacti/install/index.php /var/www/cacti/install/install_finish.gif /var/www/cacti/install/install_next.gif /var/www/cacti/lib /var/www/cacti/lib/adodb /var/www/cacti/lib/adodb/adodb-csvlib.inc.php /var/www/cacti/lib/adodb/adodb-datadict.inc.php /var/www/cacti/lib/adodb/adodb-error.inc.php /var/www/cacti/lib/adodb/adodb-errorhandler.inc.php /var/www/cacti/lib/adodb/adodb-errorpear.inc.php /var/www/cacti/lib/adodb/adodb-exceptions.inc.php /var/www/cacti/lib/adodb/adodb-iterator.inc.php /var/www/cacti/lib/adodb/adodb-lib.inc.php /var/www/cacti/lib/adodb/adodb-pear.inc.php /var/www/cacti/lib/adodb/adodb-perf.inc.php /var/www/cacti/lib/adodb/adodb-php4.inc.php /var/www/cacti/lib/adodb/adodb-time.inc.php /var/www/cacti/lib/adodb/adodb-xmlschema.inc.php /var/www/cacti/lib/adodb/adodb.inc.php /var/www/cacti/lib/adodb/datadict /var/www/cacti/lib/adodb/datadict/datadict-access.inc.php /var/www/cacti/lib/adodb/datadict/datadict-db2.inc.php /var/www/cacti/lib/adodb/datadict/datadict-firebird.inc.php /var/www/cacti/lib/adodb/datadict/datadict-generic.inc.php /var/www/cacti/lib/adodb/datadict/datadict-ibase.inc.php /var/www/cacti/lib/adodb/datadict/datadict-informix.inc.php /var/www/cacti/lib/adodb/datadict/datadict-mssql.inc.php /var/www/cacti/lib/adodb/datadict/datadict-mysql.inc.php /var/www/cacti/lib/adodb/datadict/datadict-oci8.inc.php /var/www/cacti/lib/adodb/datadict/datadict-postgres.inc.php /var/www/cacti/lib/adodb/datadict/datadict-sapdb.inc.php /var/www/cacti/lib/adodb/datadict/datadict-sybase.inc.php /var/www/cacti/lib/adodb/drivers /var/www/cacti/lib/adodb/drivers/adodb-access.inc.php /var/www/cacti/lib/adodb/drivers/adodb-ado.inc.php /var/www/cacti/lib/adodb/drivers/adodb-ado5.inc.php /var/www/cacti/lib/adodb/drivers/adodb-ado_access.inc.php /var/www/cacti/lib/adodb/drivers/adodb-ado_mssql.inc.php /var/www/cacti/lib/adodb/drivers/adodb-borland_ibase.inc.php /var/www/cacti/lib/adodb/drivers/adodb-csv.inc.php /var/www/cacti/lib/adodb/drivers/adodb-db2.inc.php /var/www/cacti/lib/adodb/drivers/adodb-fbsql.inc.php /var/www/cacti/lib/adodb/drivers/adodb-firebird.inc.php /var/www/cacti/lib/adodb/drivers/adodb-ibase.inc.php /var/www/cacti/lib/adodb/drivers/adodb-informix.inc.php /var/www/cacti/lib/adodb/drivers/adodb-informix72.inc.php /var/www/cacti/lib/adodb/drivers/adodb-ldap.inc.php /var/www/cacti/lib/adodb/drivers/adodb-mssql.inc.php /var/www/cacti/lib/adodb/drivers/adodb-mssqlpo.inc.php /var/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php /var/www/cacti/lib/adodb/drivers/adodb-mysqli.inc.php /var/www/cacti/lib/adodb/drivers/adodb-mysqlt.inc.php /var/www/cacti/lib/adodb/drivers/adodb-netezza.inc.php /var/www/cacti/lib/adodb/drivers/adodb-oci8.inc.php /var/www/cacti/lib/adodb/drivers/adodb-oci805.inc.php /var/www/cacti/lib/adodb/drivers/adodb-oci8po.inc.php /var/www/cacti/lib/adodb/drivers/adodb-odbc.inc.php /var/www/cacti/lib/adodb/drivers/adodb-odbc_mssql.inc.php /var/www/cacti/lib/adodb/drivers/adodb-odbc_oracle.inc.php /var/www/cacti/lib/adodb/drivers/adodb-odbtp.inc.php /var/www/cacti/lib/adodb/drivers/adodb-odbtp_unicode.inc.php /var/www/cacti/lib/adodb/drivers/adodb-oracle.inc.php /var/www/cacti/lib/adodb/drivers/adodb-pdo.inc.php /var/www/cacti/lib/adodb/drivers/adodb-postgres.inc.php /var/www/cacti/lib/adodb/drivers/adodb-postgres64.inc.php /var/www/cacti/lib/adodb/drivers/adodb-postgres7.inc.php /var/www/cacti/lib/adodb/drivers/adodb-proxy.inc.php /var/www/cacti/lib/adodb/drivers/adodb-sapdb.inc.php /var/www/cacti/lib/adodb/drivers/adodb-sqlanywhere.inc.php /var/www/cacti/lib/adodb/drivers/adodb-sqlite.inc.php /var/www/cacti/lib/adodb/drivers/adodb-sqlitepo.inc.php /var/www/cacti/lib/adodb/drivers/adodb-sybase.inc.php /var/www/cacti/lib/adodb/drivers/adodb-vfp.inc.php /var/www/cacti/lib/adodb/lang /var/www/cacti/lib/adodb/lang/adodb-ar.inc.php /var/www/cacti/lib/adodb/lang/adodb-bg.inc.php /var/www/cacti/lib/adodb/lang/adodb-bgutf8.inc.php /var/www/cacti/lib/adodb/lang/adodb-ca.inc.php /var/www/cacti/lib/adodb/lang/adodb-cn.inc.php /var/www/cacti/lib/adodb/lang/adodb-cz.inc.php /var/www/cacti/lib/adodb/lang/adodb-de.inc.php /var/www/cacti/lib/adodb/lang/adodb-en.inc.php /var/www/cacti/lib/adodb/lang/adodb-es.inc.php /var/www/cacti/lib/adodb/lang/adodb-fr.inc.php /var/www/cacti/lib/adodb/lang/adodb-hu.inc.php /var/www/cacti/lib/adodb/lang/adodb-it.inc.php /var/www/cacti/lib/adodb/lang/adodb-nl.inc.php /var/www/cacti/lib/adodb/lang/adodb-pl.inc.php /var/www/cacti/lib/adodb/lang/adodb-pt-br.inc.php /var/www/cacti/lib/adodb/lang/adodb-ro.inc.php /var/www/cacti/lib/adodb/lang/adodb-ru1251.inc.php /var/www/cacti/lib/adodb/lang/adodb-sv.inc.php /var/www/cacti/lib/adodb/license.txt /var/www/cacti/lib/adodb/toexport.inc.php /var/www/cacti/lib/adodb/tohtml.inc.php /var/www/cacti/lib/api_automation_tools.php /var/www/cacti/lib/api_data_source.php /var/www/cacti/lib/api_device.php /var/www/cacti/lib/api_graph.php /var/www/cacti/lib/api_poller.php /var/www/cacti/lib/api_tree.php /var/www/cacti/lib/auth.php /var/www/cacti/lib/cdef.php /var/www/cacti/lib/data_query.php /var/www/cacti/lib/database.php /var/www/cacti/lib/export.php /var/www/cacti/lib/functions.php /var/www/cacti/lib/graph_export.php /var/www/cacti/lib/graph_variables.php /var/www/cacti/lib/html.php /var/www/cacti/lib/html_form.php /var/www/cacti/lib/html_form_template.php /var/www/cacti/lib/html_tree.php /var/www/cacti/lib/html_utility.php /var/www/cacti/lib/html_validate.php /var/www/cacti/lib/import.php /var/www/cacti/lib/ldap.php /var/www/cacti/lib/ping.php /var/www/cacti/lib/poller.php /var/www/cacti/lib/rrd.php /var/www/cacti/lib/snmp.php /var/www/cacti/lib/sort.php /var/www/cacti/lib/template.php /var/www/cacti/lib/time.php /var/www/cacti/lib/tree.php /var/www/cacti/lib/utility.php /var/www/cacti/lib/variables.php /var/www/cacti/lib/xml.php /var/www/cacti/log /var/www/cacti/log/.htaccess /var/www/cacti/log/cacti.log /var/www/cacti/logout.php /var/www/cacti/poller.php /var/www/cacti/poller_commands.php /var/www/cacti/poller_export.php /var/www/cacti/resource /var/www/cacti/resource/script_queries /var/www/cacti/resource/script_queries/host_cpu.xml /var/www/cacti/resource/script_queries/host_disk.xml /var/www/cacti/resource/script_queries/unix_disk.xml /var/www/cacti/resource/script_server /var/www/cacti/resource/script_server/host_cpu.xml /var/www/cacti/resource/script_server/host_disk.xml /var/www/cacti/resource/snmp_queries /var/www/cacti/resource/snmp_queries/host_disk.xml /var/www/cacti/resource/snmp_queries/interface.xml /var/www/cacti/resource/snmp_queries/kbridge.xml /var/www/cacti/resource/snmp_queries/net-snmp_disk.xml /var/www/cacti/resource/snmp_queries/netware_cpu.xml /var/www/cacti/resource/snmp_queries/netware_disk.xml /var/www/cacti/rra /var/www/cacti/rra.php /var/www/cacti/rra/.placeholder /var/www/cacti/script_server.php /var/www/cacti/scripts /var/www/cacti/scripts/3com_cable_modem.pl /var/www/cacti/scripts/diskfree.pl /var/www/cacti/scripts/diskfree.sh /var/www/cacti/scripts/linux_memory.pl /var/www/cacti/scripts/loadavg.pl /var/www/cacti/scripts/loadavg_multi.pl /var/www/cacti/scripts/ping.pl /var/www/cacti/scripts/query_host_cpu.php /var/www/cacti/scripts/query_host_partitions.php /var/www/cacti/scripts/query_unix_partitions.pl /var/www/cacti/scripts/sql.php /var/www/cacti/scripts/ss_fping.php /var/www/cacti/scripts/ss_host_cpu.php /var/www/cacti/scripts/ss_host_disk.php /var/www/cacti/scripts/ss_sql.php /var/www/cacti/scripts/unix_processes.pl /var/www/cacti/scripts/unix_tcp_connections.pl /var/www/cacti/scripts/unix_users.pl /var/www/cacti/scripts/weatherbug.pl /var/www/cacti/scripts/webhits.pl /var/www/cacti/settings.php /var/www/cacti/templates_export.php /var/www/cacti/templates_import.php /var/www/cacti/tree.php /var/www/cacti/user_admin.php /var/www/cacti/utilities.php
VHost Definition
Das rpm bringt uns zwar eine Apche-Konfigurationsdatei mit, die wir aber so nicht nutzen wollen, da wir für cacti einen eigenen VHost verwenden werden. wir ergänzen also unsere VHost-Definition /etc/httpd/conf.d/vhosts.conf entsprechend:
# vim /etc/httpd/conf.d/vhosts.conf
- vhost.conf
# # cacti.nausch.org # <VirtualHost *:80> ServerAdmin webmaster@nausch.org ServerName cacti.nausch.org:80 ServerAlias cacti.nausch.org *.cacti.nausch.org ServerPath / DocumentRoot "/usr/share/cacti" <Directory "/usr/share/cacti"> Options FollowSymLinks AllowOverride all Order Allow,Deny Allow from all AddType application/x-httpd-php .php php_flag magic_quotes_gpc on php_flag track_vars on DirectoryIndex index.php Options -Indexes </Directory> ErrorLog logs/cacti_error.log CustomLog logs/cacti_access.log combined </VirtualHost>
Anschließend geben wir unseren neune VHost unserem Webserver bekannt, in dem wir diesen 1x durchstarten.
# service httpd restart
MySQL Definitionen
Die Konfiguration unseres Cacti-Servers wird in einer MySQL-Datenbanktabelle vorgehalten. Die Konfiguration der nötigen Tabellen nehmen wir mit Hilfe der von cacti mitgelieferten Schematas vor.
Als erstes legen wir die Datenbank an. MySQL frägt uns bei den nachfolgenden definitionen nach dem Passwort unseres mysql-users root.
# mysqladmin -u root -p create cacti Enter password:
Im nächsten Schritt legen wir stolze 48 Tabellen an! Keine Angst, die betreffende SQL-Anweisung liefert uns cacti gleich mit. Somit reicht folgender Befehl einfach aus.
# mysql -p cacti < /var/www/cacti/cacti.sql Enter password:
Das war's auch fast schon. Was nun noch fehlt ist unser Cacti-Datenbankuser, der abschließend definiert wird.
# mysql -p cacti < /var/www/cacti/cacti.sql Enter password: (au3Yool) # mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2896 Server version: 5.0.45 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> grant all on cacti.* to cactiuser@localhost identified by 'Reinhard_Scheck_ist_ein_Geek'; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye
PHP-Konfiguration
Das gerade definierte Passwort für unseren MySQL-Datenbankzugang, hinterlegen wir nun noch in der php-config-Datei.
# vim /var/www/cacti/include/config.php
- config.php
/* make sure these values refect your actual database/host/user/password */ $database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cactiuser"; $database_password = "Reinhard_Scheck_ist_ein_Geek"; $database_port = "3306";
Cacti - Setup
Die Erstkonfiguration von Cacti erfolgt nunmehr direkt über den Browser unserer Wahl. Unseren zuvor definierten neuen Vhost cacti.nausch.org tragen wir also in die Adresszeile unseres Browsers ein.
Mit einem beherzten „Klick“ auf die Schaltfläsche Next kommen wir zum nächsten Schritt.
Auch diesen Punkt Neuinstallation beschließen wir durch Anwahl der schaltfläche Next.
Tja, und fast sind wir schon am Ende. Dass wir hier Finish anwählen, versteht sich so gut wie von selbst.
Mit der Konfiguration sind wir soweit durch, was nun folgt ist noch die Anmeldung als User Admin mit dem Passwort Admin.
Das Ändern dieses Passwortes erfolgt nun im vorletzten Schritt.
Nach der Änderung des Defaultpasswortes gelangen wir zur Cacti-Hauptseite.