Cacti源代码目录结构

最近在阅读Cacti的源代码,简单记录了其代码文件结构,在这里分享下:

cacti
|
+—-cache
| +—boost—index.php #跳转到上级目录的index.php
| |—mibcache—index.php
| |—realtime—index.php
| |—spikekill—index.php
| |—index.php
|
+—cli
| +—add_data_quey.php #均为命令语句,主要为数据库信息查询操作
| |—add_datasource.php
| |—add_device.php
| |—add_graph_template.php
| |—add_perms.php
| |—add_site.php
| |—add_tree.php
| |—analyze_database.php
| |—apply_automation_rules.php
| |—audit_database.php
| |—convert_tables.php
| |—copy_user.php
| |—host_update_template.php
| |—import_package.php
| |—import_template.php
| |—index.php #跳转到上级目录的index.php
| |—input_whitelist.php
| |—install_cacti.php
| |—md5sum.php
| |—poller_data_sources_reapply_names.php
| |—poller_graphs_reapply_names.php
| |—poller_output_empty.php
| |—poller_reindex_hosts.php
| |—poller_replicate.php
| |—rebuild_poller_cache.php
| |—remove_device.php
| |—remove_graphs.php
| |—reorder_data_query.php
| |—repair_database.php
| |—repair_graphs.php
| |—repair_templates.php
| |—rrdresize.php
| |—splice_rrd.php
| |—sqltable_to_php.php
| |—structure_rra_paths.php
| |—upgrade_database.php
| |—version.php
|
+—docs
| +—audit_schema.sql #这是一个数据库,里面只有一个表,而这个表记录的是其他数据库表的字段信息
| |—index.php
| |—README.md
|
+—formats-cacti_group.format #css文件目录
| +-cacti_group_dark.format
| |-cacti_monitor.format
| |-default.format
| |-index.php
| |-lotus_notes.format
|
|—images #图片目录
|
+—include
| +—content #这是一个html测试文件夹,没有太大用处
| | +—basic-example.html
| | |—iframe-example.html
| | |—index.php
| | |—php-example.html
| | |—README
| |
| +—fa
| | +—css #第三方js库的css文件夹
| | | +—all.css
| | | |—brands.css
| | | |—fontawesome.css
| | | |—index.php
| | | |—regular.css
| | | |—solid.css
| | | |—svg-with-js.css
| | | |—v4-shims.css
| | |
| | +—js #第三方js库
| | | +—all.js
| | | |—brands.js
| | | |—fontawesome.js
| | | |—regular.js
| | | |—solid.js
| | | |—v4-shims.js
| | |
| | +—less #css开发目录
| | +—scss #css开发目录
| | +—metadata #配置文件,后期要研究明白这个文件夹中文件的用处
| | +—sprites #图片目录
| | +—svgs #图片目录
| | +—webfonts #字体目录
| | |—index.php
| | |—license.txt
| |
| +—fonts #字体目录
| +—js #第三方库目录,js,主要为jquery文件
| +—themes #cacti网页的主题存放目录
| | |—cacti #主题目录,以下都是,主要为一些图片、css文件等
| | |—carrot
| | |—classic
| | |—dark
| | |—hollyberyy
| | |—modern
| | |—paper-plane
| | |—paw
| | |—respberry
| | |—sunrisie
| |
| +—vendor #composer的导入包目录
| | +—cldr-to-gettext-plural-rules
| | | +—bin
| | | | +—export-plural-rules #php文件,包含同名的.php文件
| | | | |—export-plural-rules.bat #设置PHPBIN环境变量
| | | | |—export-plural-rules.php #含Enviro类
| | | |
| | | +—src
| | | | +—cldr-data
| | | | | |—main
| | | | | | |—en-US
| | | | | | |—languages.json #一些语言名称的简写和全称的对应数据
| | | | | | |—scripts.json #同上
| | | | | | |—territories.json #同上
| | | | | |
| | | | | |—supplemental
| | | | | |—plurals.json #一些数字信息,不知所云
| | | | |
| | | | +—Exporter
| | | | | |—Docs.php #网页,Docs类,继承html类
| | | | | |—Exporter.php #Exporter抽象类
| | | | | |—Html.php #html类,继承Exporter类
| | | | | |—Json.php #json类,继承Exporter类
| | | | | |—Php.php #Php类,继承Exporter类
| | | | | |—Po.php #Po类,继承Exporter类
| | | | | |—Prettyjson.php #Prettyjson类继承Json类
| | | | | |—Xml.php #Xml类继承Json类
| | | | |
| | | | |—autoloader.php #调用spl_autoload_register方法,内含一个匿名函数主要作用为文件路径的处理
| | | | |—Category.php #Category类
| | | | |—CldrData.php #CldrData类
| | | | |—FormulaConverter.php #FormulaConverter类
| | | | |—Language.php #Language类
| | | |
| | | |—composer.json #composer打包工具配置文件
| | |
| | |—csrf #覆写了标签,仅需要在做csrf的php表单网页里开头位置引入该模块
| | | |—csrf-conf.php
| | | |—csrf-magic.js
| | | |—csrf-magic.php
| | | |—index.php
| | |
| | |—flag-icon-css #一个国家旗帜图片的第三方库
| | |
| | |—gettext #同cldr-to-gettext-plural-rules这是国际化工具(翻译语言用的)
| | |
| | |—GoogleAuthenticator #谷歌APP二维码认证模块
| | |
| | |—phpgettext #同样是一个国际化文件
| | |
| | |—phpmailer #邮件收发库
| | |
| | +—phpseclib #php的通用加密算法库
| | |
| | +—phpsnmp #基于libsnmp(python写的)snmp库
| |
| |—auth.php #认证界面
| |—bottom_footer.php #页面底部
| |—cacti_version #版本信息
| |—cli_check.php
| |—config.php.dist #数据库的配置信息
| |—csrf.php #csrf模块初始化方法,调用composer的csrf模块
| |—global.php #cacti的一些全局配置参数
| |—global_arrays.php #cacti的一些数组类型的配置参数
| |—global_constants.php #cacti的一些常量定义
| |—global_form.php #一些用来关联表单的array
| |—global_languages.php
| |—global_session.php
| |—global_settings.php
| |—index.php
| |—layout.js #一些通用的javascript函数
| |—plugins.php #$plugin_hooks, $plugins_integrated, $plugins三个变量
| |—realtime.js
| |—session.php #cacti_db_session_函数 | |—top_general_header.php | |—top_graph_header.php | |—top_header.php | +—install | +—templates #cacti的一些监控模板文件 | | |—Cacti_Stats.xml.gz | | |—Cisco_Router.xml.gz | | |—Generic_SNMP_Device.xml.gz | | |—Local_Linux_Machine.xml.gz | | |—NetSNMP_Device.xml.gz | | |—Windows_Device.xml.gz | | | +—upgrades #每次cacti版本升级后,数据库的一些改动 | | | |—background.php #调用include目录下的cli_check.php(此又调用同目录下的global.php) | |—cli_check.php #调用include目录下的cli_check.php(此又调用同目录下的global.php) | |—cli_test.php | |—colors.csv #颜色信息 | |—functions.php #整个install目录下的各php脚本用到的一些函数 | |—index.php #指向并调用install.php | |—install.css | |—install.js | |—install.php #这应该是是一个安装页面,但是具体页面内容没看懂! | |—step_json.php | +—lib | |—aggregate.php #aggregate系列函数、get_next_sequence、duplicate_color_template、auto_hr、auto_title | |—api_aggregate.php #aggregate系列函数 | |—api_automation.php #display_matching_hosts、display_matching_graphs、display_new_graphs、display_matching_trees、display_match_rule_items、display_graph_rule_items、display_tree_rule_items、duplicate_automation_graph_rules、build_graph_object_sql_having、build_data_query_sql、build_matching_objects_filter、build_rule_item_filter、build_sort_order、get_matching_graphs、get_created_graphs、get_query_fields、get_field_names、array_to_list、array_minus、automation_string_replace、global_item_edit、automation_hook_graph_template、automation_hook_graph_create_tree、automation_execute_data_query、automation_execute_graph_template、automation_execute_device_create_tree、automation_execute_graph_create_tree、create_dq_graphs、create_all_header_nodes、create_multi_header_node、create_header_node、create_device_node、create_site_node、create_graph_node、automation_poller_bottom、automation_add_device、automation_add_tree、automation_find_os、automation_debug、automation_masktocidr、automation_get_valid_subnet_cidr、automation_get_valid_mask、automation_get_network_info、automation_calculate_start、automation_calculate_total_ips、automation_get_next_host、automation_primeIPAddressTable、automation_valid_snmp_device、automation_valid_snmp_device、automation_get_dns_from_ip、api_automation_is_time_to_start、calculateNextStart、ping_netbios_name、automation_update_device、automation_function_with_pid、automation_change_tree_rule_leaf_type | |—api_automation_tools.php #getHostTemplates、getHostsByDescription、getSites、getHosts、getInputFields、getAddresses、getSNMPFields、getSNMPValues、getSNMPQueries、getSNMPQueryTypes、getGraphTemplates、getGraphTemplatesByHostTemplate、displayQueryTypes、displayHostTemplates、displayCommunities、displaySNMPFields、 displaySNMPValues、displaySNMPQueries、displayGraphTemplates、displayHosts、displaySites、displayTrees、displayTreeNodes、displayRRAs、displayHostGraphs、displayUsers | |—api_data_source.php #api_data_source_cache_crc_update、api_data_source_deletable、api_data_source_remove、api_data_source_remove_multi、api_data_source_enable、api_data_source_disable、api_data_source_disable_multi、api_data_source_get_interface_speed、api_data_source_change_host、api_reapply_suggested_data_source_data、api_duplicate_data_source | |—api_device.php #api_device_cache_crc_update、api_device_remove、api_device_purge_from_remote、api_device_purge_deleted_devices、api_device_remove_multi、api_device_disable_devices、api_device_enable_devices、api_device_change_options、api_device_clear_statistics、api_device_sync_device_templates、api_device_dq_add、api_device_dq_remove、api_device_dq_change、api_device_gt_remove、api_device_replicate_out、api_device_save、api_device_update_host_template、api_device_template_sync_template、api_device_ping_device | |—api_graph.php #api_delete_graphs、api_graph_remove、api_graph_remove_aggregate_items、api_graph_remove_multi、api_resize_graphs、api_reapply_suggested_graph_title、api_get_graphs_from_datasource、api_duplicate_graph、api_graph_change_device | |—api_poller.php #api_poller_cache_item_add、api_poller_get_rrd_next_step | |—api_tree.php #api_tree_create、api_tree_delete、api_tree_lock、api_tree_unlock、api_tree_publish、api_tree_unpublish、api_tree_copy_node、api_tree_get_lock、api_tree_release_lock、api_tree_create_node、api_tree_branch_exists、api_tree_site_exists、api_tree_host_exists、api_tree_graph_exists、api_tree_delete_node、api_tree_delete_node_content、api_tree_move_node、api_tree_parse_node_data、api_tree_rename_node、api_tree_get_main、api_tree_get_node、api_tree_item_save、api_tree_get_item_type、naturally_sort_graphs、api_tree_get_branch_ordering、api_tree_get_branch_name、api_tree_get_branch_id、api_tree_sort_branch、api_tree_get_max_sequence、api_tree_check_sequences、api_tree_sort_name_asc、api_tree_sort_name_desc、tree_down、tree_up、api_tree_dnd、api_tree_get_host_sort_type、api_tree_set_host_sort_type、api_tree_get_branch_sort_type、api_tree_set_branch_sort_type、api_tree_sort_recursive、api_tree_leaves_exist | |—auth.php #clear_auth_cookie、set_auth_cookie、check_auth_cookie、user_copy、user_remove、user_disable、user_enable、get_auth_realms、get_graph_permissions_sql、is_graph_allowed、auth_check_perms、auth_augment_roles、is_tree_allowed、is_device_allowed、is_graph_template_allowed、is_view_allowed、is_tree_branch_empty、is_realm_allowed、get_allowed_tree_level、get_allowed_tree_content、get_allowed_tree_header_graphs、get_allowed_graphs、get_allowed_aggregate_graphs、get_allowed_type_hash、prime_devices_type_cache、get_cached_allowed_type、set_cached_allowed_type、clear_cached_allowed_types、get_allowed_graph_templates、get_allowed_trees、get_allowed_branches、get_allowed_devices、get_allowed_sites、get_allowed_site_devices、get_allowed_graph_templates_normalized、get_host_array、get_allowed_ajax_hosts、get_allowed_ajax_graph_items、get_allowed_graph_items、secpass_login_process、secpass_check_pass、secpass_check_history、rsa_check_keypair、reset_group_perms、reset_user_perms、is_user_perms_valid、compat_password_verify、compat_password_hash、compat_password_needs_rehash、disable_2fa、enable_2fa、verify_2fa、is_2fa_enabled、auth_login、auth_post_login_redirect、auth_basename | |—boost.php #boost_file_size_display、boost_get_total_rows、boost_error_handler、boost_check_correct_enabled、boost_poller_on_demand、boost_poller_id_check、boost_fetch_cache_check、boost_return_cached_image、boost_graph_cache_check、boost_prep_graph_array、boost_graph_set_file、boost_timer、boost_timer_get_overhead、boost_get_arch_table_name、boost_process_poller_output、boost_rrdtool_get_last_update_time、boost_determine_caching_state、boost_get_rrd_filename_and_template、boost_rrdtool_function_create、boost_rrdtool_function_update、boost_memory_limit、boost_poller_bottom、boost_update_snmp_statistics | |—cdef.php #get_cdef_item_name、get_cdef | |—clog_webapi.php #clog_get_datasource_titles、clog_get_graphs_from_datasource、clog_validate_filename、clog_purge_logfile、clog_view_logfile、filter_sort、clog_get_logfiles、filter、clog_get_regex_array、clog_regex_parser_html、clog_regex_parser、clog_regex_device、clog_regex_datasource、clog_regex_poller、clog_regex_dataquery、clog_regex_rra、clog_regex_graphs、clog_regex_graphtemplates、clog_regex_users、clog_regex_rule | |—database.php #db_connect_real、db_warning_handler、db_close、db_execute、db_execute_prepared、db_fetch_cell、db_fetch_cell_prepared、db_fetch_cell_return、db_fetch_row、db_fetch_row_prepared、db_fetch_row_return、db_fetch_assoc、db_fetch_assoc_prepared、db_fetch_assoc_return、db_fetch_insert_id、db_affected_rows、db_add_column、db_change_column、db_remove_column、db_add_index、db_index_exists、 db_index_matches、db_table_exists、db_cacti_initialized、db_column_exists、db_get_table_column_types、db_update_table、db_format_index_create、db_table_create、db_get_global_variable、db_get_session_variable、db_begin_transaction、db_commit_transaction、db_rollback_transaction、array_to_sql_or、db_replace、_db_replace、sql_save、db_qstr、db_strip_control_chars、db_get_column_attributes、db_get_columns_length、db_get_column_length、db_check_password_length、db_echo_sql、db_error、db_get_default_database、db_force_remote_cnn、db_create_permissions_array、db_get_permissions、db_has_permissions | |—data_query.php #run_data_query、data_query_remove_disabled_items、query_check_suitable、data_query_remap_indexes、data_query_update_input_method、get_data_query_array、query_script_host、query_debug_timer_start、query_debug_timer_offset、query_debug_timer_stop、query_snmp_host、data_query_format_record、data_query_ctype_print_unicode、data_query_update_host_cache_from_buffer、data_query_rewrite_indexes、rewrite_snmp_enum_value、data_query_index、data_query_field_list、encode_data_query_index、decode_data_query_index、update_data_query_cache、update_graph_data_query_cache、update_data_source_data_query_cache、get_formatted_data_query_indexes、get_formatted_data_query_index、calculate_or_set_index_order、get_ordered_index_type_list、update_data_query_sort_cache、update_data_query_sort_cache_by_host、get_best_data_query_index_type、get_script_query_path、verify_index_order、update_snmp_index_order、api_data_query_errors、add_orphan_support | |—dsdebug.php #dsdebug_debug、log_dsdebug_statistics、dsdebug_error_handler、dsdebug_poller_output、dsdebug_poller_bottom、dsdebug_run_repair | |—dsstats.php #get_rrdfile_names、dsstats_debug、dsstats_find_log_bad_maxvalues、dsstats_get_and_store_ds_avgpeak_values、dsstats_write_buffer、dsstats_obtain_data_source_avgpeak_values、log_dsstats_statistics、dsstats_error_handler、dsstats_poller_output、dsstats_boost_bottom、dsstats_memory_limit、dsstats_poller_bottom、dsstats_rrdtool_init、dsstats_rrdtool_execute、dsstats_rrdtool_close | |—export.php #graph_template_to_xml、data_template_to_xml、data_input_method_to_xml、cdef_to_xml、vdef_to_xml、gprint_preset_to_xml、data_source_profile_to_xml、host_template_to_xml、data_query_to_xml、resolve_dependencies、get_item_xml、xml_character_encode | |—functions.php #title_trim、filter_value、save_user_settings、set_user_setting、user_setting_exists、clear_user_setting、read_default_user_setting、read_user_setting、set_config_option、config_value_exists、read_default_config_option、read_config_option、get_selected_theme、is_valid_theme、form_input_validate、check_changed、get_format_message_instance、get_message_level、is_error_message、get_message_max_type、raise_message、display_output_messages、display_custom_error_message、clear_messages、kill_session_var、force_session_data、array_rekey、cacti_log_file、tail_file、determine_display_log_entry、update_host_status、is_hexadecimal、strip_domain、is_mac_address、is_hex_string、prepare_validate_result、strip_alpha、is_valid_pathname、get_full_script_path、get_data_source_item_name、get_data_source_path、stri_replace、clean_up_lines、clean_up_name、clean_up_file_name、clean_up_path、get_data_source_title、get_device_name、get_color、get_graph_title、get_username、get_execution_user、generate_data_source_path、generate_graph_best_cf、get_rrd_cfs、generate_graph_def_name、generate_data_input_field_sequences、move_graph_group、get_graph_group、get_graph_parent、get_item、get_sequence、move_item_down、move_item_up、exec_into_array、get_web_browser、get_guest_account、get_template_account、draw_login_status、draw_navigation_text、resolve_navigation_variables、get_associated_rras、get_nearest_timespan、get_browser_query_string、get_current_page、get_hash_graph_template、get_hash_data_template、get_hash_data_input、get_hash_cdef、get_hash_gprint、get_hash_vdef、get_hash_data_source_profile、get_hash_host_template、get_hash_data_query、get_hash_version、generate_hash、debug_log_insert_section_start、debug_log_insert_section_end、debug_log_insert、debug_log_clear、debug_log_return、sanitize_search_string、sanitize_uri、is_base64_encoded、sanitize_unserialize_selected_items、cacti_escapeshellcmd、cacti_escapeshellarg、set_page_refresh、bottom_footer、top_header、top_graph_header、general_header、admin_email、send_mail、mailer、record_mailer_error、add_email_details、parse_email_details、split_emaildetail、create_emailtext、ping_mail_server、email_test、get_dns_from_ip、poller_maintenance、clog_admin、clog_authorized、update_system_mibs、cacti_debug_backtrace、calculate_percentiles、get_timeinstate、get_uptime、get_daysfromtime、padleft、get_classic_tabimage、cacti_oid_numeric_format、IgnoreErrorHandler、CactiErrorHandler、CactiShutdownHandler、enable_device_debug、disable_device_debug、is_device_debug_enabled、get_url_type、get_default_contextoption、repair_system_data_input_methods、is_ipaddress、date_time_format、get_source_timestamp、format_cacti_version、format_cacti_version_text、get_cacti_version、get_cacti_db_version、get_cacti_db_version_raw、get_cacti_version_text、get_cacti_cli_version、cacti_version_compare、is_install_needed、is_cacti_develop、is_cacti_release、version_to_decimal、cacti_gethostinfo、cacti_gethostbyname、get_nonsystem_data_input、get_rrdtool_version、get_installed_rrdtool_version、get_md5_hash、get_md5_include_js、get_md5_include_css、is_resource_writable、get_validated_theme、get_validated_language、get_running_user、get_debug_prefix、cacti_pton、cacti_ntop、cacti_ntoc、cacti_ptoa、cacti_sizeof、cacti_count、is_function_enabled、is_page_ajax、raise_ajax_permission_denied、cacti_session_start、cacti_session_close、cacti_session_destroy、cacti_cookie_set、cacti_cookie_logout、cacti_cookie_session_set、cacti_cookie_session_logout | |—graphs.php #get_graph_template_details | |—graph_variables.php #nth_percentile、rrdtool_function_stats、nth_percentile_fetch_statistics、cacti_stats_calc、bandwidth_summation、is_graphable_item、variable_nth_percentile、variable_bandwidth_summation | |—html.php #html_start_box、html_end_box、html_graph_template_multiselect、html_graph_area、html_graph_thumbnail_area、graph_drilldown_icons、html_nav_bar、html_header_sort、html_header_sort_checkbox、html_header、html_section_header、html_header_checkbox、html_create_list、html_escape_request_var、html_escape、html_split_string、draw_graph_items_list、is_menu_pick_active、draw_menu、draw_actions_dropdown、DrawMatrixHeaderItem、form_area、is_console_page、html_show_tabs_left、html_graph_tabs_right、html_host_filter、html_site_filter、html_spikekill_actions、html_spikekill_setting、html_spikekill_menu_item、html_spikekill_menu、html_spikekill_js、html_common_header、html_auth_header、html_auth_footer | |—html_filter.php #CactiTableFilter类 | |—html_form.php #draw_nontemplated_fields_graph、draw_nontemplated_fields_graph_item、draw_nontemplated_fields_data_source、draw_nontemplated_fields_data_source_item、draw_nontemplated_fields_custom_data、draw_custom_data_row | |—html_graph.php #initialize_realtime_step_and_window、set_default_graph_action、html_graph_validate_preview_request_vars、html_graph_preview_filter、html_graph_new_graphs、html_graph_custom_data | |—html_reports.php #reports_item_dnd、reports_form_save、reports_form_actions、reports_send、reports_item_movedown、reports_item_moveup、reports_item_remove、reports_item_edit、reports_edit、display_reports_items、get_reports_page、is_reports_admin、reports、reports_html_account_exists、reports_html_report_disable、set_reports_item_var、set_reports_item_var | |—html_tree.php #inject_form_variables、form_alternate_row_color、form_alternate_row、form_selectable_ecell、form_selectable_cell、form_checkbox_cell、form_end_row、form_confim_buttons、html_boolean、html_boolean_friendly、get_checkbox_style、set_default_action、unset_request_var、isset_request_var、isempty_request_var、set_request_var、get_request_var、get_request_var_request、get_filter_request_var、get_nfilter_request_var、get_request_var_post、validate_store_request_vars、update_order_string、get_order_string、remove_column_from_order_string、get_order_string_page、validate_is_regex、load_current_session_value、get_colored_device_status、get_current_graph_start、get_current_graph_end、display_tooltip、get_page_list | |—html_validate.php #input_validate_input_equals、input_validate_input_number、input_validate_input_regex、html_log_input_error、die_html_input_error | |—import.php #import_xml_data、get_public_key、import_package、xml_to_graph_template、xml_to_data_template、xml_to_data_query、xml_to_gprint_preset、xml_to_data_source_profile、xml_to_host_template、xml_to_cdef、xml_to_vdef、xml_to_data_input_method、compare_data、hash_to_friendly_name、resolve_hash_to_id、parse_xml_hash、check_hash_type、check_hash_version、get_version_index、xml_character_decode、import_display_results、xml_to_array、import_is_base64_encoded | |—index.php | |—installer.php #Installer类、InstallerButton类 | |—ldap.php #cacti_ldap_auth、cacti_ldap_search_dn、cacti_ldap_search_cn、LdapError类、Ldap类 | |—mib_cache.php #MibCache类 | |—ping.php #Net_Ping类 | |—plugins.php #do_hook、do_hook_function、api_user_realm_auth、api_plugin_hook、api_plugin_hook_function、api_plugin_run_plugin_hook、api_plugin_run_plugin_hook_function、api_plugin_hook_is_remote_collect、api_plugin_get_dependencies、api_plugin_minimum_version、api_plugin_installed、api_plugin_remote_capabilities、api_plugin_has_capability、api_plugin_status_run、api_plugin_db_table_create、api_plugin_db_changes_remove、api_plugin_db_add_column、api_plugin_check_dependencies、api_plugin_can_install、api_plugin_install、api_plugin_uninstall、api_plugin_check_config、api_plugin_enable、api_plugin_is_enabled、api_plugin_disable、api_plugin_disable_all、api_plugin_movedown、api_plugin_register_hook、api_plugin_remove_hooks、api_plugin_enable_hooks、api_plugin_disable_hooks、api_plugin_disable_hooks_all、api_plugin_register_realm、api_plugin_load_realms、api_plugin_user_realm_auth、plugin_config_arrays、plugin_draw_navigation_text、plugin_is_compatible、plugin_load_info_defaults、plugin_load_info_file | |—poller.php #exec_poll、exec_poll_php、exec_background、file_escaped、file_exists_2gb、update_reindex_cache、poller_update_poller_reindex_from_buffer、process_poller_output、update_resource_cache、cache_in_path、update_db_from_path、resource_cache_out、md5sum_path、poller_push_to_remote_db_connect、poller_connect_to_remote、replicate_out、replicate_in、replicate_out_table、poller_push_reindex_only_data_to_main、poller_push_reindex_only_data_to_main、poller_push_reindex_data_to_poller、replicate_table_to_poller、poller_recovery_flush_boost、poller_push_data_to_main、poller_push_table、should_ignore_from_replication、get_remote_poller_ids_from_graphs、get_remote_poller_ids_from_data_sources、get_remote_poller_ids_from_devices、register_process_start、register_process、unregister_process、heartbeat_process、timeout_kill_registered_processes | |—reports.php #duplicate_reports、reports_add_graphs、reports_date_time_format、reports_interval_start、utime_add、reports_log、generate_report、reports_load_format_file、reports_tree_has_graphs、reports_generate_html、expand_branch、reports_graph_image、reports_expand_tree、necturally_sort_graphs、reports_graph_area、png2jpeg、png2gif、reports_get_format_files、reports_poller_bottom、reports_graphs_action_array、reports_graphs_action_prepare、reports_graphs_action_execute | |—rrd.php #escape_command、rrdtool_set_language、rrdtool_reset_language、rrd_init、__rrd_init、__rrd_proxy_init、rrd_close、__rrd_close、__rrd_proxy_close、encrypt、decrypt、rrdtool_execute、__rrd_execute、rrdtool_trim_output、__rrd_proxy_execute、rrdtool_function_interface_speed、rrdtool_function_create、rrdtool_function_update、rrdtool_function_tune、rrdtool_function_fetch、rrd_function_process_graph_options、rrdtool_function_graph(这是一个超大型函数)、rrdtool_escape_string、rrdtool_function_xport、rrdtool_function_format_graph_date、rrdtool_function_theme_font_options、rrdtool_set_font、rrdtool_function_set_font、rrd_substitute_host_query_data、rrdtool_function_get_resstep、rrdtool_function_info、rrdtool_function_contains_cf、rrdtool_cacti_compare、rrdtool_info2html、rrdtool_tune、rrd_check、rrd_repair、rrd_datasource_add、rrd_rra_delete、rrd_rra_clone、rrd_append_ds、rrd_append_compute_ds、rrd_append_cdp_prep_ds、rrd_append_value、rrd_delete_rra、rrd_copy_rra、rrdtool_parse_error、rrdtool_create_error_image、 | |—snmp.php #cacti_snmp_session、cacti_snmp_get、cacti_snmp_get_raw、cacti_snmp_getnext、cacti_get_snmpv3_auth、cacti_snmp_session_walk、cacti_snmp_session_get、cacti_snmp_session_getnext、cacti_snmp_walk、format_snmp_string、snmp_escape_string、snmp_get_method、cacti_snmp_options_sanitize | |—snmpagent.php #snmpagent_enabled、snmpagent_cacti_stats_update、snmpagent_global_settings_update、snmpagent_api_device_new、snmpagent_data_source_action_bottom、snmpagent_graphs_action_bottom、snmpagent_device_action_bottom、snmpagent_poller_exiting、snmpagent_poller_bottom、snmpagent_get_pluginslist、snmpagent_cache_install、snmpagent_cache_uninstall、snmpagent_cache_initialized、snmpagent_cache_rebuilt、snmpagent_cache_init、snmpagent_read、snmpagent_notification | |—sort.php #usort_data_query_index、usort_numeric、usort_alphabetic、usort_natural、sort_by_subkey | |—spikekill.php #spikekill类 | |—template.php #push_out_data_source_custom_data、push_out_data_source_templates、push_out_data_source_item、push_out_data_source、change_data_template、push_out_graph、push_out_graph_input、push_out_graph_item、update_graph_data_source_output_type、parse_graph_template_id、resequence_graphs、retemplate_graphs、change_graph_template、graph_to_graph_template、data_source_to_data_template、create_complete_graph_from_template、create_graph_custom_data_compatible、create_save_graph、data_source_exists、verify_data_input、verify_data_input_whitelist、graph_template_whitelist_check | |—time.php #get_timespan、month_shift、check_month_boundaries、shift_right_boundary、shift_time | |—timespan_settings.php #initialize_timespan、process_html_variables、process_user_input、set_preset_timespan、finalize_timespan、set_timeshift | |—utility.php #update_replication_crc、repopulate_poller_cache、update_poller_cache_from_query、update_poller_cache、push_out_data_input_method、poller_update_poller_cache_from_buffer、push_out_host、data_input_whitelist_check、utilities_get_mysql_recommendations、utilities_php_modules、memory_bytes、memory_readable、utilities_get_system_memory、utility_php_sort_extensions、utility_php_extensions、utility_php_verify_extensions、utility_php_recommends、utility_php_verify_recommends、utility_php_set_recommends_text、utility_php_optionals、utility_php_verify_optionals、utility_php_set_installed | |—variables.php #update_data_source_title_cache_from_template、update_data_source_title_cache_from_query、update_data_source_title_cache_from_host、update_data_source_title_cache、update_graph_title_cache_from_template、update_graph_title_cache_from_query、update_graph_title_cache_from_host、update_graph_title_cache、null_out_substitutions、expand_title、substitute_script_query_path、substitute_host_data、substitute_snmp_query_data、substitute_data_input_data | |—vdef.php #get_vdef_item_name、get_vdef、preset_vdef_form_list、preset_vdef_item_form_list | |—xml.php #xml2array、get_children、rrdxport2array、get_rrd_children | |—locales #这是翻译目录 | |—LC_MESSAGES | |—po | |—build_gettext.sh | |—build_mo.sh | |—index.php | |—log | |—mibs #这是snmp的mib库文件 | |—plugins #这是cacti插件目录 | |—resource #这是cacti自带的模板文件存放目录,.xml文件 | |—rra #未知目录 | +—scripts #cacti中脚本script功能用到的一些自带的脚本 | |—3com_cable_modem.pl | |—cacti_user_stats.php | |—diskfree.pl | |—diskfree.sh | |—index.php | |—linux_memory.pl | |—loadavg.pl | |—loadavg_multi.pl | |—ping.pl | |—query_host_cpu.php | |—query_host_partitions.php | |—query_unix_partitions.pl | |—sql.php | |—ss_count_oids.php | |—ss_cpoller.php | |—ss_fping.php | |—ss_gexport.php | |—ss_host_cpu.php | |—ss_host_disk.php | |—ss_hstats.php | |—ss_net_snmp_disk_bytes.php | |—ss_net_snmp_disk_io.php | |—ss_poller.php | |—ss_sql.php | |—ss_webseer.php | |—unix_processes.pl | |—unix_tcp_connections.pl | |—unix_users.pl | |—weatherbug.pl | |—webhits.pl | +—tests #测试目录 | +—standards | | |—ruleset.xml #PHP_CodeSniffe*的配置文件
| |
| +—tools
| |—check_all_pages.sh
| |—check_cli_version.sh
| |—check_install_code.php
|
|—.gitignore #git配置文件的一种,忽略上传的文件类型
|—.mdl_style.rb
|—.mdlrc
|—.travis.yml
|
|—about.php #cacti的关于页面
|—aggregate_graphs.php #add_tree_names_to_actions_array、form_save、form_actions、item、graph_edit、aggregate_make_sql_where、aggregate_format_text、aggregate_graph、purge_old_graphs
|—aggregate_items.php #form_save、item_movedown、item_moveup、item_remove、item_edit
|—aggregate_templates.php #aggregate_form_save、aggregate_get_graph_items、aggregate_form_actions、aggregate_template_edit、aggregate_template
|—auth_2fa.php #auth.php的一个登陆分支
|—auth_changepassword.php #修改密码页面
|—auth_login.php #登陆页
|—auth_profile.php
|—automation_devices.php
|—automation_graph_rules.php
|—automation_networks.php
|—automation_snmp.php
|—automation_templates.php
|—automation_tree_rules.php
|—boost_rrdupdate.php
|—cacti.sql #整个cacti的所有数据库设计
|—cdef.php
|—clog.php
|—clog_user.php
|—cmd.php
|—cmd_realtime.php
|—color.php
|—color_templates.php
|—color_templates_items.php
|—data_debug.php
|—data_queries.php
|—data_source_profiles.php
|—data_sources.php
|—data_templates.php
|—gprint_presets.php
|—graph.php
|—graph_image.php
|—graph_json.php
|—graph_realtime.php
|—graph_templates.php
|—graph_templates_inputs.php
|—graph_templates_items.php
|—graph_view.php
|—graph_xport.php
|—graphs.php
|—graphs_items.php
|—graphs_new.php
|—host.php
|—host_templates.php
|—index.php
|—link.php
|—links.php
|—logout.php
|—managers.php
|—permission_denied.php
|—plugins.php
|—poller.php
|—poller_automation.php
|—poller_boost.php
|—poller_commands.php
|—poller_dsstats.php
|—poller_maintenance.php
|—poller_realtime.php
|—poller_recovery.php
|—poller_reports.php
|—poller_spikekill.php
|—pollers.php
|—remote_agent.php
|—reports_admin.php
|—reports_user.php
|—rrdcleaner.php
|—script_server.php
|—settings.php
|—sites.php
|—snmpagent_mibcache.php
|—snmpagent_mibcachechild.php
|—snmpagent_persist.php
|—spikekill.php
|—templates_export.php
|—templates_import.php
|—tree.php
|—user_admin.php
|—user_domains.php
|—user_group_admin.php
|—utilities.php
|—vdef.php

标签