mirror of
https://github.com/Cacti/documentation.git
synced 2026-12-06 15:13:53 +09:00
2271 lines
71 KiB
Markdown
2271 lines
71 KiB
Markdown
# Plugin Hook API Reference
|
||
|
||
Find the hook for the event you need, then inspect the linked core call site
|
||
on this branch for the arguments and how Cacti uses the result. Some hooks
|
||
are dispatched through a helper that constructs the hook name at runtime.
|
||
|
||
Register callbacks during plugin installation. For a value passed through
|
||
`api_plugin_hook_function()`, return the value that subsequent callbacks
|
||
should receive. A caller that renders output can instead consume what the
|
||
callback prints. With `api_plugin_hook()`, check the arguments supplied by
|
||
the dispatcher. See [Creating a plugin](Plugin-Creating-Plugins.md).
|
||
|
||
The tables retain historical file and release information. A **Current
|
||
source** link identifies an active call site in this branch.
|
||
|
||
| Hook | Hook | Hook |
|
||
| --- | --- | --- |
|
||
| [add_graph_template_to_host](#add_graph_template_to_host) | [admin_alert](#admin_alert) | [api_device_new](#api_device_new) |
|
||
| [api_device_save](#api_device_save) | [auth_alternate_realms](#auth_alternate_realms) | [auth_profile_reset](#auth_profile_reset) |
|
||
| [auth_profile_reset_value](#auth_profile_reset_value) | [auth_profile_run_action](#auth_profile_run_action) | [auth_profile_save](#auth_profile_save) |
|
||
| [auth_profile_tabs](#auth_profile_tabs) | [auth_profile_update_data](#auth_profile_update_data) | [boost_poller_bottom](#boost_poller_bottom) |
|
||
| [bottom_footer](#bottom_footer) | [cacti_stats_update](#cacti_stats_update) | [change_password_title](#change_password_title) |
|
||
| [clog_regex_array](#clog_regex_array) | [config_arrays](#config_arrays) | [config_form](#config_form) |
|
||
| [config_insert](#config_insert) | [config_settings](#config_settings) | [console_after](#console_after) |
|
||
| [console_before](#console_before) | [copy_user](#copy_user) | [create_complete_graph_from_template](#create_complete_graph_from_template) |
|
||
| [custom_denied](#custom_denied) | [custom_login](#custom_login) | [custom_logout_message](#custom_logout_message) |
|
||
| [custom_password](#custom_password) | [custom_version_info](#custom_version_info) | [customize_graph](#customize_graph) |
|
||
| [customize_template_details](#customize_template_details) | [data_input_sql_where](#data_input_sql_where) | [data_source_action_array](#data_source_action_array) |
|
||
| [data_source_action_bottom](#data_source_action_bottom) | [data_source_action_execute](#data_source_action_execute) | [data_source_action_prepare](#data_source_action_prepare) |
|
||
| [data_source_edit_bottom](#data_source_edit_bottom) | [data_source_edit_top](#data_source_edit_top) | [data_source_remove](#data_source_remove) |
|
||
| [data_source_to_poller_items](#data_source_to_poller_items) | [data_sources_table](#data_sources_table) | [device_action_array](#device_action_array) |
|
||
| [device_action_bottom](#device_action_bottom) | [device_action_execute](#device_action_execute) | [device_action_prepare](#device_action_prepare) |
|
||
| [device_change_javascript](#device_change_javascript) | [device_display_text](#device_display_text) | [device_edit_pre_bottom](#device_edit_pre_bottom) |
|
||
| [device_edit_top_links](#device_edit_top_links) | [device_filter_end](#device_filter_end) | [device_filter_start](#device_filter_start) |
|
||
| [device_filters](#device_filters) | [device_remove](#device_remove) | [device_sql_where](#device_sql_where) |
|
||
| [device_table_bottom](#device_table_bottom) | [device_table_replace](#device_table_replace) | [device_template_change](#device_template_change) |
|
||
| [device_template_edit](#device_template_edit) | [device_template_top](#device_template_top) | [device_top](#device_top) |
|
||
| [draw_navigation_text](#draw_navigation_text) | [expand_title](#expand_title) | [export_action](#export_action) |
|
||
| [fgc_contextoption](#fgc_contextoption) | [get_friendly_name](#get_friendly_name) | [get_template_account](#get_template_account) |
|
||
| [global_settings_update](#global_settings_update) | [graph](#graph) | [graph_buttons](#graph_buttons) |
|
||
| [graph_buttons_thumbnails](#graph_buttons_thumbnails) | [graph_edit_after](#graph_edit_after) | [graph_image](#graph_image) |
|
||
| [graph_items_remove](#graph_items_remove) | [graph_tree_page_buttons](#graph_tree_page_buttons) | [graphs_action_array](#graphs_action_array) |
|
||
| [graphs_action_bottom](#graphs_action_bottom) | [graphs_action_execute](#graphs_action_execute) | [graphs_action_prepare](#graphs_action_prepare) |
|
||
| [graphs_item_array](#graphs_item_array) | [graphs_new_top_links](#graphs_new_top_links) | [graphs_remove](#graphs_remove) |
|
||
| [graphs_sql_where](#graphs_sql_where) | [help_page](#help_page) | [hmib_get_cpu](#hmib_get_cpu) |
|
||
| [hmib_get_cpu_indexes](#hmib_get_cpu_indexes) | [hmib_get_disk](#hmib_get_disk) | [host_edit_bottom](#host_edit_bottom) |
|
||
| [host_edit_top](#host_edit_top) | [host_save](#host_save) | [import_action](#import_action) |
|
||
| [is_console_page](#is_console_page) | [login_after](#login_after) | [login_before](#login_before) |
|
||
| [login_options_navigate](#login_options_navigate) | [login_process](#login_process) | [login_realms](#login_realms) |
|
||
| [login_title](#login_title) | [logout_post_session_destroy](#logout_post_session_destroy) | [logout_pre_session_destroy](#logout_pre_session_destroy) |
|
||
| [nav_login_after](#nav_login_after) | [nav_login_before](#nav_login_before) | [page_bottom](#page_bottom) |
|
||
| [page_buttons](#page_buttons) | [page_head](#page_head) | [page_title](#page_title) |
|
||
| [poller_bottom](#poller_bottom) | [poller_command_args](#poller_command_args) | [poller_exiting](#poller_exiting) |
|
||
| [poller_finishing](#poller_finishing) | [poller_output](#poller_output) | [poller_remote_maint](#poller_remote_maint) |
|
||
| [poller_top](#poller_top) | [remote_agent](#remote_agent) | [replicate_in](#replicate_in) |
|
||
| [replicate_out](#replicate_out) | [resolve_dependencies](#resolve_dependencies) | [rrd_graph_graph_options](#rrd_graph_graph_options) |
|
||
| [run_data_query](#run_data_query) | [settings_bottom](#settings_bottom) | [snmpagent_cache_install](#snmpagent_cache_install) |
|
||
| [substitute_host_data](#substitute_host_data) | [top_graph_header](#top_graph_header) | [top_graph_header_tabs](#top_graph_header_tabs) |
|
||
| [top_graph_jquery_function](#top_graph_jquery_function) | [top_graph_refresh](#top_graph_refresh) | [top_header](#top_header) |
|
||
| [tree_after](#tree_after) | [tree_view_page_end](#tree_view_page_end) | [ugroup_tabs](#ugroup_tabs) |
|
||
| [update_data_source_title_cache](#update_data_source_title_cache) | [user_admin_action](#user_admin_action) | [user_admin_edit](#user_admin_edit) |
|
||
| [user_admin_run_action](#user_admin_run_action) | [user_admin_setup_sql_save](#user_admin_setup_sql_save) | [user_admin_tab](#user_admin_tab) |
|
||
| [user_admin_user_save](#user_admin_user_save) | [user_group_admin_action](#user_group_admin_action) | [user_group_admin_edit](#user_group_admin_edit) |
|
||
| [user_group_admin_run_action](#user_group_admin_run_action) | [user_group_admin_save](#user_group_admin_save) | [user_group_admin_setup_sql_save](#user_group_admin_setup_sql_save) |
|
||
| [user_group_admin_tab](#user_group_admin_tab) | [user_group_remove](#user_group_remove) | [user_remove](#user_remove) |
|
||
| [utilities_action](#utilities_action) | [utilities_array](#utilities_array) | [utilities_list](#utilities_list) |
|
||
| [utilities_tab](#utilities_tab) | [valid_host_fields](#valid_host_fields) | |
|
||
|
||
## add_graph_template_to_host
|
||
|
||
Runs when Cacti adds a graph template to a device. The callback receives the
|
||
device ID in `host_id` and the template ID in `graph_template_id`.
|
||
|
||
**Current source**
|
||
[host.php][add_graph_template_to_host-source].
|
||
|
||
[add_graph_template_to_host-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L757>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------------------- | :--------- | :------ |
|
||
| cli/add_graph_template.php | 1.0.0 |
|
||
| cli/host_update_template.php | 1.0.0 |
|
||
| host.php | 1.0.0 |
|
||
| lib/api_device.php | 1.0.0 |
|
||
|
||
## admin_alert
|
||
|
||
Allows a plugin to deliver an administrator alert instead of the email that
|
||
`admin_email()` would send. The hook receives an array with `contract_version`,
|
||
`status` (`unhandled`), `event_id`, `occurred_at`, `collector_id`, `subject`
|
||
and `message`. A plugin that handles the alert returns the array with `status`
|
||
set to `accepted` or `already_accepted`. Any other result, a missing handler or
|
||
an exception falls back to email.
|
||
|
||
**Current source**
|
||
[lib/functions.php][admin_alert-source].
|
||
|
||
[admin_alert-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/functions.php#L5829>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/functions.php | 1.2.32 |
|
||
|
||
## api_device_new
|
||
|
||
Runs after Cacti saves a newly created device and assigns its ID. The callback
|
||
receives the saved device fields.
|
||
|
||
**Current source**
|
||
[lib/api_device.php][api_device_new-source].
|
||
|
||
[api_device_new-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/api_device.php#L1241>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------ | :--------- | :------ |
|
||
| lib/api_device.php | 1.0.0 |
|
||
|
||
## api_device_save
|
||
|
||
Receives device fields immediately before Cacti writes the host record. Return
|
||
the fields to save. A new device does not yet have an assigned ID at this
|
||
point.
|
||
|
||
**Current source**
|
||
[lib/api_device.php][api_device_save-source].
|
||
|
||
[api_device_save-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/api_device.php#L1075>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------ | :--------- | :------ |
|
||
| lib/api_device.php | 1.0.0 |
|
||
|
||
## auth_alternate_realms
|
||
|
||
Runs during the authentication bootstrap so plugins can handle their own
|
||
authentication realms.
|
||
|
||
**Current source**
|
||
[include/auth.php][auth_alternate_realms-source].
|
||
|
||
[auth_alternate_realms-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/include/auth.php#L69>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| include/auth.php | 1.0.0 |
|
||
|
||
## auth_profile_reset
|
||
|
||
Runs when the user resets profile settings. Reset the plugin’s saved user
|
||
settings here.
|
||
|
||
**Current source**
|
||
[auth_profile.php][auth_profile_reset-source].
|
||
|
||
[auth_profile_reset-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_profile.php#L172>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :---------- | :------ |
|
||
| auth_profile.php | 1.2.0-beta3 |
|
||
|
||
## auth_profile_reset_value
|
||
|
||
Receives the name of one profile setting to reset.
|
||
|
||
**Current source**
|
||
[auth_profile.php][auth_profile_reset_value-source].
|
||
|
||
[auth_profile_reset_value-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_profile.php#L224>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :---------- | :------ |
|
||
| auth_profile.php | 1.2.0-beta3 |
|
||
|
||
## auth_profile_run_action
|
||
|
||
Receives the selected tab when Cacti processes an action on the profile page.
|
||
|
||
**Current source**
|
||
[auth_profile.php][auth_profile_run_action-source].
|
||
|
||
[auth_profile_run_action-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_profile.php#L113>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :---------- | :------ |
|
||
| auth_profile.php | 1.2.0-beta3 |
|
||
|
||
## auth_profile_save
|
||
|
||
Runs when Cacti saves the user profile. Save the plugin’s user settings here.
|
||
|
||
**Current source**
|
||
[auth_profile.php][auth_profile_save-source].
|
||
|
||
[auth_profile_save-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_profile.php#L361>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :---------- | :------ |
|
||
| auth_profile.php | 1.2.0-beta3 |
|
||
|
||
## auth_profile_tabs
|
||
|
||
Receives the profile tab definitions. Return the definitions with the plugin’s
|
||
tab included.
|
||
|
||
**Current source**
|
||
[auth_profile.php][auth_profile_tabs-source].
|
||
|
||
[auth_profile_tabs-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_profile.php#L86>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :---------- | :------ |
|
||
| auth_profile.php | 1.2.0-beta3 |
|
||
|
||
## auth_profile_update_data
|
||
|
||
Receives the current tab when Cacti updates user profile data.
|
||
|
||
**Current source**
|
||
[auth_profile.php][auth_profile_update_data-source].
|
||
|
||
[auth_profile_update_data-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_profile.php#L63>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| auth_profile.php | 1.2.4 |
|
||
|
||
## boost_poller_bottom
|
||
|
||
Runs at the end of the Boost poller’s processing cycle. Register here for
|
||
post-processing specific to Boost.
|
||
|
||
**Current source**
|
||
[poller_boost.php][boost_poller_bottom-source].
|
||
|
||
[boost_poller_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/poller_boost.php#L326>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| poller_boost.php | 1.0.0 |
|
||
|
||
## bottom_footer
|
||
|
||
Historical hook for customizing the page footer. See the file and version
|
||
history below.
|
||
|
||
| file | introduced | retired |
|
||
| ------------------------- | :--------- | :------ |
|
||
| include/bottom_footer.php | 0.8.7i | 1.1.38 |
|
||
|
||
## cacti_stats_update
|
||
|
||
Receives the poller performance data when Cacti records its polling statistics.
|
||
|
||
**Current source**
|
||
[poller.php][cacti_stats_update-source].
|
||
|
||
[cacti_stats_update-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/poller.php#L1246>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| poller.php | 1.0.0 |
|
||
|
||
## change_password_title
|
||
|
||
Receives the browser title for the password change page. Return the title to
|
||
display.
|
||
|
||
**Current source**
|
||
[auth_changepassword.php][change_password_title-source].
|
||
|
||
[change_password_title-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_changepassword.php#L336>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------------- | :---------- | :------ |
|
||
| auth_changepassword.php | 1.2.0-beta1 |
|
||
|
||
## clog_regex_array
|
||
|
||
Receives the expressions used to recognize references in log messages. Return
|
||
the array with any additional patterns.
|
||
|
||
**Current source**
|
||
[lib/clog_webapi.php][clog_regex_array-source].
|
||
|
||
[clog_regex_array-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/clog_webapi.php#L776>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------- | :--------- | :------ |
|
||
| lib/clog_webapi.php | 1.1.34 |
|
||
|
||
## config_arrays
|
||
|
||
Define shared arrays, such as menu entries, that the plugin uses across Cacti
|
||
pages.
|
||
|
||
**Current source**
|
||
[include/global_arrays.php][config_arrays-source].
|
||
|
||
[config_arrays-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/include/global_arrays.php#L2955>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------------- | :--------- | :------ |
|
||
| include/global_arrays.php | 1.0.0 |
|
||
|
||
## config_form
|
||
|
||
Define form field arrays for use with Cacti’s form helpers.
|
||
|
||
**Current source**
|
||
[include/global_form.php][config_form-source].
|
||
|
||
[config_form-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/include/global_form.php#L2371>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------------- | :--------- | :------ |
|
||
| include/global_form.php | 1.0.0 |
|
||
|
||
## config_insert
|
||
|
||
Runs during Cacti initialization so a plugin can load shared definitions or
|
||
initialize a connection.
|
||
|
||
**Current source**
|
||
[include/global.php][config_insert-source].
|
||
|
||
[config_insert-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/include/global.php#L678>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------ | :--------- | :------ |
|
||
| include/global.php | 1.0.0 |
|
||
|
||
## config_settings
|
||
|
||
Register plugin settings and the tabs on which administrators can edit them.
|
||
|
||
**Current source**
|
||
[include/global_settings.php][config_settings-source].
|
||
|
||
[config_settings-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/include/global_settings.php#L3051>
|
||
|
||
| file | introduced | retired |
|
||
| --------------------------- | :--------- | :------ |
|
||
| include/global_settings.php | 1.0.0 |
|
||
|
||
## console_after
|
||
|
||
Adds content after the default console message.
|
||
|
||
**Current source**
|
||
[index.php][console_after-source].
|
||
|
||
[console_after-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/index.php#L117>
|
||
|
||
| file | introduced | retired |
|
||
| --------- | :--------- | :------ |
|
||
| index.php | 1.0.0 |
|
||
|
||
## console_before
|
||
|
||
Adds content before the default console message.
|
||
|
||
**Current source**
|
||
[index.php][console_before-source].
|
||
|
||
[console_before-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/index.php#L28>
|
||
|
||
| file | introduced | retired |
|
||
| --------- | :--------- | :------ |
|
||
| index.php | 1.0.0 |
|
||
|
||
## copy_user
|
||
|
||
Receives the source account ID in `template_id` and the destination account ID
|
||
in `new_id`. Use them to copy plugin-owned profile settings.
|
||
|
||
**Current source**
|
||
[lib/auth.php][copy_user-source].
|
||
|
||
[copy_user-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/auth.php#L548>
|
||
|
||
| file | introduced | retired |
|
||
| ------------ | :--------- | :------ |
|
||
| lib/auth.php | 1.0.0 |
|
||
|
||
## create_complete_graph_from_template
|
||
|
||
Runs when Cacti creates a device graph from a graph template.
|
||
|
||
**Current source**
|
||
[lib/template.php][create_complete_graph_from_template-source].
|
||
|
||
[create_complete_graph_from_template-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/template.php#L2003>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| lib/template.php | 1.0.0 |
|
||
|
||
## custom_denied
|
||
|
||
Allows you to override the rendering of the permission denied interface.
|
||
|
||
**Current source**
|
||
[permission_denied.php][custom_denied-source].
|
||
|
||
[custom_denied-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/permission_denied.php#L37>
|
||
|
||
| file | introduced | retired |
|
||
| --------------------- | :--------- | :------ |
|
||
| permission_denied.php | 1.2.2 |
|
||
| include/auth.php | 1.2.12 |
|
||
|
||
## custom_login
|
||
|
||
Allows you to override the rendering of the auth_login.php page.
|
||
|
||
**Current source**
|
||
[auth_login.php][custom_login-source].
|
||
|
||
[custom_login-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_login.php#L308>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| auth_login.php | 1.0.0 |
|
||
|
||
## custom_logout_message
|
||
|
||
Allows you to override the rendering of the logout.php page.
|
||
|
||
**Current source**
|
||
[logout.php][custom_logout_message-source].
|
||
|
||
[custom_logout_message-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/logout.php#L52>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| logout.php | 1.0.0 |
|
||
|
||
## custom_password
|
||
|
||
Allows you to override the rendering of the auth_changepassword.php page.
|
||
|
||
**Current source**
|
||
[auth_changepassword.php][custom_password-source].
|
||
|
||
[custom_password-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_changepassword.php#L244>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------------- | :--------- | :------ |
|
||
| auth_changepassword.php | 1.0.0 |
|
||
|
||
## custom_version_info
|
||
|
||
Allows your plugin to display additional information on the Cacti tech support
|
||
page.
|
||
|
||
**Current source**
|
||
[utilities.php][custom_version_info-source].
|
||
|
||
[custom_version_info-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/utilities.php#L294>
|
||
|
||
| file | introduced | retired |
|
||
| ------------- | :--------- | :------ |
|
||
| utilities.php | 1.0.0 |
|
||
|
||
## customize_graph
|
||
|
||
Receives the graph record when the graph list displays a graph without a
|
||
template. Return the record to use.
|
||
|
||
**Current source**
|
||
[graph_view.php][customize_graph-source].
|
||
|
||
[customize_graph-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graph_view.php#L1066>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| graph_view.php | 1.2.17 |
|
||
| graphs.php | 1.2.17 |
|
||
|
||
## customize_template_details
|
||
|
||
Receives template details for an untemplated graph in the graph list. Return
|
||
the details to display.
|
||
|
||
**Current source**
|
||
[graph_view.php][customize_template_details-source].
|
||
|
||
[customize_template_details-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graph_view.php#L1065>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| graph_view.php | 1.2.17 |
|
||
| graphs.php | 1.2.17 |
|
||
|
||
## data_input_sql_where
|
||
|
||
Receives the filter used to list data input methods. Return the filter to apply
|
||
to the count and list queries.
|
||
|
||
**Current source**
|
||
[data_input.php][data_input_sql_where-source].
|
||
|
||
[data_input_sql_where-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/data_input.php#L922>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| data_input.php | 1.0.0 |
|
||
|
||
## data_source_action_array
|
||
|
||
Receives the available bulk data source actions. Return the list with any
|
||
additional actions.
|
||
|
||
**Current source**
|
||
[data_sources.php][data_source_action_array-source].
|
||
|
||
[data_source_action_array-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/data_sources.php#L44>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| data_sources.php | 1.0.0 |
|
||
|
||
## data_source_action_bottom
|
||
|
||
Receives the action and the selected items when Cacti builds the bulk data
|
||
source action form.
|
||
|
||
**Current source**
|
||
[data_sources.php][data_source_action_bottom-source].
|
||
|
||
[data_source_action_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/data_sources.php#L492>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| data_sources.php | 1.0.0 |
|
||
|
||
## data_source_action_execute
|
||
|
||
Receives the selected action when Cacti executes a custom bulk data source
|
||
operation.
|
||
|
||
**Current source**
|
||
[data_sources.php][data_source_action_execute-source].
|
||
|
||
[data_source_action_execute-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/data_sources.php#L485>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| data_sources.php | 1.0.0 |
|
||
|
||
## data_source_action_prepare
|
||
|
||
This is the final component to creating a custom action within the data
|
||
sources. In Cacti's form engine, you must provide the drop-down action and then
|
||
two follow-up actions to complete the cycle. This is where you actually save
|
||
the data.
|
||
|
||
**Current source**
|
||
[data_sources.php][data_source_action_prepare-source].
|
||
|
||
[data_source_action_prepare-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/data_sources.php#L607>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| data_sources.php | 1.0.0 |
|
||
|
||
## data_source_edit_bottom
|
||
|
||
Adds content near the bottom of the data source editor.
|
||
|
||
**Current source**
|
||
[data_sources.php][data_source_edit_bottom-source].
|
||
|
||
[data_source_edit_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/data_sources.php#L1406>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| data_sources.php | 1.0.0 |
|
||
|
||
## data_source_edit_top
|
||
|
||
Adds content near the top of the data source editor.
|
||
|
||
**Current source**
|
||
[data_sources.php][data_source_edit_top-source].
|
||
|
||
[data_source_edit_top-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/data_sources.php#L959>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| data_sources.php | 1.0.0 |
|
||
|
||
## data_source_remove
|
||
|
||
Receives an array of local data source IDs when Cacti removes data sources.
|
||
|
||
**Current source**
|
||
[lib/api_data_source.php][data_source_remove-source].
|
||
|
||
[data_source_remove-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/api_data_source.php#L79>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------------- | :---------- | :------ |
|
||
| data_sources.php | 1.0.0 | 1.1.38 |
|
||
| graphs.php | 1.0.0 | 1.1.38 |
|
||
| host.php | 1.0.0 | 1.1.38 |
|
||
| lib/api_data_source.php | 1.2.0-beta1 |
|
||
|
||
## data_source_to_poller_items
|
||
|
||
Receives the data source, data input definition, and poller items. Return the
|
||
array with any additional entries in `poller_items`.
|
||
|
||
**Current source**
|
||
[lib/utility.php][data_source_to_poller_items-source].
|
||
|
||
[data_source_to_poller_items-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/utility.php#L597>
|
||
|
||
| file | introduced | retired |
|
||
| --------------- | :--------- | :------ |
|
||
| lib/utility.php | 1.0.0 |
|
||
|
||
## data_sources_table
|
||
|
||
Receives the data source being rendered in the list. A plugin can add
|
||
information or a link for that data source.
|
||
|
||
**Current source**
|
||
[data_sources.php][data_sources_table-source].
|
||
|
||
[data_sources_table-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/data_sources.php#L1908>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| data_sources.php | 1.0.0 |
|
||
|
||
## device_action_array
|
||
|
||
Receives the available bulk device actions. Return the list with any additional
|
||
actions.
|
||
|
||
**Current source**
|
||
[host.php][device_action_array-source].
|
||
|
||
[device_action_array-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L51>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## device_action_bottom
|
||
|
||
Receives the action and the selected items when Cacti builds the bulk device
|
||
action form.
|
||
|
||
**Current source**
|
||
[host.php][device_action_bottom-source].
|
||
|
||
[device_action_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L410>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## device_action_execute
|
||
|
||
Receives the action selected for a custom bulk device operation.
|
||
|
||
**Current source**
|
||
[host.php][device_action_execute-source].
|
||
|
||
[device_action_execute-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L403>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## device_action_prepare
|
||
|
||
This is the final component to creating a custom action within the devices. In
|
||
Cacti's form engine, you must provide the drop-down action and then two
|
||
follow-up actions to complete the cycle. This is where you actually save the
|
||
data.
|
||
|
||
**Current source**
|
||
[host.php][device_action_prepare-source].
|
||
|
||
[device_action_prepare-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L600>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## device_change_javascript
|
||
|
||
Adds JavaScript to the device settings page.
|
||
|
||
**Current source**
|
||
[host.php][device_change_javascript-source].
|
||
|
||
[device_change_javascript-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L1216>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.2.31 |
|
||
|
||
## device_display_text
|
||
|
||
Receives the column definitions for the device list. Return the definitions to
|
||
display.
|
||
|
||
**Current source**
|
||
[host.php][device_display_text-source].
|
||
|
||
[device_display_text-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L2002>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :---------- | :------ |
|
||
| host.php | 1.2.17 |
|
||
|
||
## device_edit_pre_bottom
|
||
|
||
Runs near the bottom of the device edit form. Use it to render additional form
|
||
content.
|
||
|
||
**Current source**
|
||
[host.php][device_edit_pre_bottom-source].
|
||
|
||
[device_edit_pre_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L1128>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## device_edit_top_links
|
||
|
||
This hook allows you to add custom actions to the host edit page, below the
|
||
"Create graphs for this Host".
|
||
|
||
**Current source**
|
||
[host.php][device_edit_top_links-source].
|
||
|
||
[device_edit_top_links-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L834>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## device_filter_end
|
||
|
||
This hook allows you to add custom filter fields before Cacti's built-in filter
|
||
to the host list page.
|
||
|
||
**Current source**
|
||
[host.php][device_filter_end-source].
|
||
|
||
[device_filter_end-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L1870>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :---------- | :------ |
|
||
| host.php | 1.2.17 |
|
||
|
||
## device_filter_start
|
||
|
||
This hook allows you to add custom filter fields after Cacti's built-in filter
|
||
to the host list page.
|
||
|
||
**Current source**
|
||
[host.php][device_filter_start-source].
|
||
|
||
[device_filter_start-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L1740>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :---------- | :------ |
|
||
| host.php | 1.2.17 |
|
||
|
||
## device_filters
|
||
|
||
Receives the list of device filter definitions. Return the definitions to use
|
||
for the Devices page.
|
||
|
||
**Current source**
|
||
[host.php][device_filters-source].
|
||
|
||
[device_filters-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L1596>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## device_remove
|
||
|
||
Receives an array of device IDs after Cacti deletes their host records.
|
||
|
||
**Current source**
|
||
[lib/api_device.php][device_remove-source].
|
||
|
||
[device_remove-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/api_device.php#L54>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------ | :---------- | :------ |
|
||
| host.php | 1.0.0 | 1.1.38 |
|
||
| lib/api_device.php | 1.2.0-beta1 |
|
||
|
||
## device_sql_where
|
||
|
||
Receives the query filter used for the device list. Return the filter the page
|
||
should use.
|
||
|
||
**Current source**
|
||
[host.php][device_sql_where-source].
|
||
|
||
[device_sql_where-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L1673>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## device_table_bottom
|
||
|
||
Runs at the bottom of the device list. Use it to add content in that part of
|
||
the page.
|
||
|
||
**Current source**
|
||
[host.php][device_table_bottom-source].
|
||
|
||
[device_table_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L2081>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## device_table_replace
|
||
|
||
Renders device rows when a plugin changes the column count and the list
|
||
contains devices. The callback receives the host records.
|
||
|
||
**Current source**
|
||
[host.php][device_table_replace-source].
|
||
|
||
[device_table_replace-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L2017>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :---------- | :------ |
|
||
| host.php | 1.2.17 |
|
||
|
||
## device_template_change
|
||
|
||
Allows you to add template items such as a threshold upon a device template
|
||
change.
|
||
|
||
**Current source**
|
||
[lib/api_device.php][device_template_change-source].
|
||
|
||
[device_template_change-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/api_device.php#L1458>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------ | :---------- | :------ |
|
||
| lib/api_device.php | 1.2.25 |
|
||
|
||
## device_template_edit
|
||
|
||
Runs while Cacti renders the device template editor.
|
||
|
||
**Current source**
|
||
[host_templates.php][device_template_edit-source].
|
||
|
||
[device_template_edit-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host_templates.php#L652>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------ | :--------- | :------ |
|
||
| host_templates.php | 1.0.0 |
|
||
|
||
## device_template_top
|
||
|
||
Runs at the top of the device template page.
|
||
|
||
**Current source**
|
||
[host_templates.php][device_template_top-source].
|
||
|
||
[device_template_top-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host_templates.php#L43>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------ | :--------- | :------ |
|
||
| host_templates.php | 1.0.0 |
|
||
|
||
## device_top
|
||
|
||
Runs at the top of the Devices page before Cacti processes the requested
|
||
action.
|
||
|
||
**Current source**
|
||
[host.php][device_top-source].
|
||
|
||
[device_top-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L56>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.2.27 |
|
||
|
||
## draw_navigation_text
|
||
|
||
Receives the navigation definitions. Return the array with entries for plugin
|
||
pages so Cacti can build their breadcrumb trail.
|
||
|
||
**Current source**
|
||
[lib/functions.php][draw_navigation_text-source].
|
||
|
||
[draw_navigation_text-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/functions.php#L4559>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/functions.php | 1.0.0 |
|
||
|
||
## expand_title
|
||
|
||
Allows you to change the expanded title of a data source or graph. The
|
||
parameter is an array with `host_id`, `snmp_query_id`, `snmp_index` and
|
||
`title`. The returned `title` is used.
|
||
|
||
**Current source**
|
||
[lib/variables.php][expand_title-source].
|
||
|
||
[expand_title-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/variables.php#L331>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/variables.php | 1.2.3 |
|
||
|
||
## export_action
|
||
|
||
Receives the export parameters for a plugin-defined item. Return the array with
|
||
its exported XML in `xml_text`.
|
||
|
||
**Current source**
|
||
[lib/export.php][export_action-source].
|
||
|
||
[export_action-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/export.php#L1219>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :---------- | :------ |
|
||
| lib/export.php | 1.2.0-beta1 |
|
||
|
||
## fgc_contextoption
|
||
|
||
Receives the stream context options Cacti has assembled for an HTTP request.
|
||
Return the options to use.
|
||
|
||
**Current source**
|
||
[lib/functions.php][fgc_contextoption-source].
|
||
|
||
[fgc_contextoption-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/functions.php#L7740>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/functions.php | 1.1.28 |
|
||
|
||
## get_friendly_name
|
||
|
||
Runs when the importer requests a display name for an additional object type.
|
||
The input includes the current name prefix.
|
||
|
||
**Current source**
|
||
[lib/import.php][get_friendly_name-source].
|
||
|
||
[get_friendly_name-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/import.php#L2926>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :---------- | :------ |
|
||
| lib/import.php | 1.2.0-beta1 |
|
||
|
||
## get_template_account
|
||
|
||
Allows a plugin to select the template account for a user. The parameter is the
|
||
user name or ID. If the plugin returns the value it was given, Cacti uses the
|
||
account from the `user_template` setting.
|
||
|
||
**Current source**
|
||
[lib/functions.php][get_template_account-source].
|
||
|
||
[get_template_account-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/functions.php#L3741>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/functions.php | 1.2.20 |
|
||
|
||
## global_settings_update
|
||
|
||
Runs when Cacti saves global settings. Use it to refresh plugin state derived
|
||
from those settings.
|
||
|
||
**Current source**
|
||
[settings.php][global_settings_update-source].
|
||
|
||
[global_settings_update-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/settings.php#L258>
|
||
|
||
| file | introduced | retired |
|
||
| ------------ | :--------- | :------ |
|
||
| settings.php | 1.0.0 |
|
||
|
||
## graph
|
||
|
||
Runs at the top of the graph page.
|
||
|
||
**Current source**
|
||
[graph.php][graph-source].
|
||
|
||
[graph-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graph.php#L44>
|
||
|
||
| file | introduced | retired |
|
||
| --------- | :--------- | :------ |
|
||
| graph.php | 1.0.0 |
|
||
|
||
## graph_buttons
|
||
|
||
Adds controls to a graph view. Inspect the hook arguments for the local graph
|
||
ID and view context.
|
||
|
||
**Current source**
|
||
[graph.php][graph_buttons-source].
|
||
|
||
[graph_buttons-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graph.php#L189>
|
||
|
||
| file | introduced | retired |
|
||
| ------------ | :--------- | :------ |
|
||
| graph.php | 1.0.0 |
|
||
| lib/html.php | 1.0.0 |
|
||
|
||
The hook is also fired as `graph_buttons_thumbnails`; see below.
|
||
|
||
## graph_buttons_thumbnails
|
||
|
||
Adds drill-down controls to thumbnail graphs. The dispatcher supplies the graph
|
||
ID, view type, tree ID, and branch ID.
|
||
|
||
**Current source**
|
||
[lib/html.php][graph_buttons_thumbnails-source].
|
||
|
||
[graph_buttons_thumbnails-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/html.php#L437>
|
||
|
||
| file | introduced | retired |
|
||
| ------------ | :--------- | :------ |
|
||
| lib/html.php | 1.0.0 |
|
||
|
||
## graph_edit_after
|
||
|
||
Runs after the graph editor renders. The callback receives the graph ID when
|
||
the request contains one.
|
||
|
||
**Current source**
|
||
[graphs.php][graph_edit_after-source].
|
||
|
||
[graph_edit_after-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graphs.php#L2008>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :---------- | :------ |
|
||
| graphs.php | 1.2.0-beta1 |
|
||
|
||
## graph_image
|
||
|
||
This hook allows displaying of alternative graphics in place of a graph image.
|
||
This hook cannot output text, only modify the image, as it is only called when
|
||
a graph is required to be outputted.
|
||
|
||
**Current source**
|
||
[graph_image.php][graph_image-source].
|
||
|
||
[graph_image-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graph_image.php#L49>
|
||
|
||
| file | introduced | retired |
|
||
| --------------- | :--------- | :------ |
|
||
| graph_image.php | 1.0.0 |
|
||
| graph_json.php | 1.0.0 |
|
||
|
||
## graph_items_remove
|
||
|
||
This hook is called when the data source is deleted, and the option to remove
|
||
all graph items tied to the data source is selected.
|
||
|
||
**Current source**
|
||
[data_sources.php][graph_items_remove-source].
|
||
|
||
[graph_items_remove-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/data_sources.php#L425>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| data_sources.php | 1.0.0 |
|
||
|
||
## graph_tree_page_buttons
|
||
|
||
Allows you to add custom HTML to the graph tree view page, under the timespan
|
||
presets and the graph search box.
|
||
|
||
**Current source**
|
||
[lib/html_tree.php][graph_tree_page_buttons-source].
|
||
|
||
[graph_tree_page_buttons-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/html_tree.php#L1544>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/html_tree.php | 0.8.7i |
|
||
|
||
## graphs_action_array
|
||
|
||
Receives the available bulk graph actions. Return the list with any additional
|
||
actions.
|
||
|
||
**Current source**
|
||
[graphs.php][graphs_action_array-source].
|
||
|
||
[graphs_action_array-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graphs.php#L71>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| graphs.php | 1.0.0 |
|
||
|
||
## graphs_action_bottom
|
||
|
||
Receives the action and the selected items when Cacti builds the bulk graph
|
||
action form.
|
||
|
||
**Current source**
|
||
[graphs.php][graphs_action_bottom-source].
|
||
|
||
[graphs_action_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graphs.php#L923>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| graphs.php | 1.0.0 |
|
||
|
||
## graphs_action_execute
|
||
|
||
Receives the selected action when Cacti dispatches a custom bulk graph action.
|
||
|
||
**Current source**
|
||
[graphs.php][graphs_action_execute-source].
|
||
|
||
[graphs_action_execute-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graphs.php#L918>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| graphs.php | 1.0.0 |
|
||
|
||
## graphs_action_prepare
|
||
|
||
Runs while Cacti prepares the confirmation for a custom bulk graph action. The
|
||
callback receives the selected action data.
|
||
|
||
**Current source**
|
||
[graphs.php][graphs_action_prepare-source].
|
||
|
||
[graphs_action_prepare-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graphs.php#L1437>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| graphs.php | 1.0.0 |
|
||
|
||
## graphs_item_array
|
||
|
||
Receives the list of graph template items used by the editor. Return the list
|
||
to display.
|
||
|
||
**Current source**
|
||
[graphs.php][graphs_item_array-source].
|
||
|
||
[graphs_item_array-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graphs.php#L1511>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :---------- | :------ |
|
||
| graphs.php | 1.2.0-beta1 |
|
||
|
||
## graphs_new_top_links
|
||
|
||
Add a link at the top of the "Create New Graphs" page.
|
||
|
||
**Current source**
|
||
[graphs_new.php][graphs_new_top_links-source].
|
||
|
||
[graphs_new_top_links-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graphs_new.php#L535>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| graphs_new.php | 1.0.0 |
|
||
|
||
## graphs_remove
|
||
|
||
This hook is called after one or more graphs are removed. The parameters are
|
||
the removed graph IDs.
|
||
|
||
**Current source**
|
||
[lib/api_graph.php][graphs_remove-source].
|
||
|
||
[graphs_remove-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/api_graph.php#L139>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :---------- | :------ |
|
||
| data_sources.php | 1.0.0 | 1.1.38 |
|
||
| graphs.php | 1.0.0 | 1.1.38 |
|
||
| host.php | 1.0.0 | 1.1.38 |
|
||
| lib/api_graph.php | 1.2.0-beta1 |
|
||
|
||
## graphs_sql_where
|
||
|
||
Receives the filter used by graph management queries. Return the filter to
|
||
apply.
|
||
|
||
**Current source**
|
||
[graphs.php][graphs_sql_where-source].
|
||
|
||
[graphs_sql_where-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graphs.php#L2356>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| graphs.php | 1.0.0 |
|
||
|
||
## help_page
|
||
|
||
Allows you to add or change entries in the array that maps a page to its help
|
||
file.
|
||
|
||
**Current source**
|
||
[lib/html.php][help_page-source].
|
||
|
||
[help_page-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/html.php#L3117>
|
||
|
||
| file | introduced | retired |
|
||
| ------------ | :--------- | :------ |
|
||
| lib/html.php | 1.2.17 |
|
||
|
||
## hmib_get_cpu
|
||
|
||
Receives the device ID, requested CPU field, and index from the host CPU script
|
||
when it handles a get request.
|
||
|
||
**Current source**
|
||
[scripts/ss_host_cpu.php][hmib_get_cpu-source].
|
||
|
||
[hmib_get_cpu-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/scripts/ss_host_cpu.php#L139>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------------- | :--------- | :------ |
|
||
| scripts/ss_host_cpu.php | 1.0.0 |
|
||
|
||
## hmib_get_cpu_indexes
|
||
|
||
Receives the device ID when the host CPU script requests processor indexes,
|
||
their count, or their query values.
|
||
|
||
**Current source**
|
||
[scripts/ss_host_cpu.php][hmib_get_cpu_indexes-source].
|
||
|
||
[hmib_get_cpu_indexes-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/scripts/ss_host_cpu.php#L84>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------------- | :--------- | :------ |
|
||
| scripts/ss_host_cpu.php | 1.0.0 |
|
||
|
||
## hmib_get_disk
|
||
|
||
Receives the device ID, requested storage field, and index from the host disk
|
||
script when it handles a get request.
|
||
|
||
**Current source**
|
||
[scripts/ss_host_disk.php][hmib_get_disk-source].
|
||
|
||
[hmib_get_disk-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/scripts/ss_host_disk.php#L142>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------------ | :--------- | :------ |
|
||
| scripts/ss_host_disk.php | 1.0.0 |
|
||
|
||
## host_edit_bottom
|
||
|
||
Allows you to make minor changes to the Devices page, like add a tabbed
|
||
interface.
|
||
|
||
**Current source**
|
||
[host.php][host_edit_bottom-source].
|
||
|
||
[host_edit_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L1133>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## host_edit_top
|
||
|
||
Allows you to make minor changes to the Devices page, like add a tabbed
|
||
interface.
|
||
|
||
**Current source**
|
||
[host.php][host_edit_top-source].
|
||
|
||
[host_edit_top-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L791>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## host_save
|
||
|
||
Runs on the device save path. The input contains the saved device ID in
|
||
`host_id`.
|
||
|
||
**Current source**
|
||
[host.php][host_save-source].
|
||
|
||
[host_save-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/host.php#L329>
|
||
|
||
| file | introduced | retired |
|
||
| -------- | :--------- | :------ |
|
||
| host.php | 1.0.0 |
|
||
|
||
## import_action
|
||
|
||
Receives the import parameters for a plugin-defined object. Return the array
|
||
with the entries for `hash_cache`.
|
||
|
||
**Current source**
|
||
[lib/import.php][import_action-source].
|
||
|
||
[import_action-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/import.php#L316>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :---------- | :------ |
|
||
| lib/import.php | 1.2.0-beta1 |
|
||
|
||
## is_console_page
|
||
|
||
Receives a candidate page URL. The caller treats a return value that differs
|
||
from the input as a match for the console.
|
||
|
||
**Current source**
|
||
[lib/html.php][is_console_page-source].
|
||
|
||
[is_console_page-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/html.php#L1692>
|
||
|
||
| file | introduced | retired |
|
||
| ------------ | :--------- | :------ |
|
||
| lib/html.php | 1.0.0 |
|
||
|
||
## login_after
|
||
|
||
This allows you to display text or html after the login form.
|
||
|
||
**Current source**
|
||
[auth_login.php][login_after-source].
|
||
|
||
[login_after-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_login.php#L417>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| auth_login.php | 1.0.0 |
|
||
|
||
## login_before
|
||
|
||
This allows you to display text or html before the login form. Combined with
|
||
the above hook, you could draw a box, etc., around the form, change its
|
||
background color, etc., to slightly customize the login page.
|
||
|
||
**Current source**
|
||
[auth_login.php][login_before-source].
|
||
|
||
[login_before-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_login.php#L330>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| auth_login.php | 1.0.0 |
|
||
|
||
## login_options_navigate
|
||
|
||
Used to support alternate login realm types.
|
||
|
||
**Current source**
|
||
[lib/auth.php][login_options_navigate-source].
|
||
|
||
[login_options_navigate-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/auth.php#L5078>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------------- | :--------- | :------ |
|
||
| lib/auth.php | 1.0.0 |
|
||
|
||
## login_process
|
||
|
||
Used to authenticate the user logging in to a custom plugin defined realm.
|
||
|
||
**Current source**
|
||
[lib/auth.php][login_process-source].
|
||
|
||
[login_process-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/auth.php#L3863>
|
||
|
||
| file | introduced | retired |
|
||
| ------------ | :--------- | :------ |
|
||
| lib/auth.php | 1.0.0 |
|
||
|
||
## login_realms
|
||
|
||
Used to define additional custom plugin defined authentication realms. The
|
||
parameter passed is an array of existing authentication realms.
|
||
|
||
**Current source**
|
||
[auth_login.php][login_realms-source].
|
||
|
||
[login_realms-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_login.php#L364>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| auth_login.php | 1.0.0 |
|
||
|
||
## login_title
|
||
|
||
Allows the plugin to set/modify that page title.
|
||
|
||
**Current source**
|
||
[auth_login.php][login_title-source].
|
||
|
||
[login_title-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/auth_login.php#L318>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| auth_login.php | 1.0.0 |
|
||
|
||
## logout_post_session_destroy
|
||
|
||
This pair of hooks (`logout_pre_session_destroy` and
|
||
`logout_post_session_destroy`) allows you to preserve some session variables
|
||
that would otherwise get unset when `session_destroy()` is called.
|
||
|
||
**Current source**
|
||
[logout.php][logout_post_session_destroy-source].
|
||
|
||
[logout_post_session_destroy-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/logout.php#L49>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| logout.php | 1.0.0 |
|
||
|
||
## logout_pre_session_destroy
|
||
|
||
This pair of hooks (`logout_pre_session_destroy` and
|
||
`logout_post_session_destroy`) allows you to preserve some session variables
|
||
that would otherwise get unset when `session_destroy()` is called.
|
||
|
||
**Current source**
|
||
[logout.php][logout_pre_session_destroy-source].
|
||
|
||
[logout_pre_session_destroy-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/logout.php#L32>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| logout.php | 1.0.0 |
|
||
|
||
## nav_login_after
|
||
|
||
Adds navigation content after the signed-in user label.
|
||
|
||
**Current source**
|
||
[lib/functions.php][nav_login_after-source].
|
||
|
||
[nav_login_after-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/functions.php#L4517>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/functions.php | 1.0.0 |
|
||
|
||
## nav_login_before
|
||
|
||
Adds navigation content before the signed-in user label.
|
||
|
||
**Current source**
|
||
[lib/functions.php][nav_login_before-source].
|
||
|
||
[nav_login_before-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/functions.php#L4508>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/functions.php | 1.0.0 |
|
||
|
||
## page_bottom
|
||
|
||
This hook allows you to add custom HTML to the bottom of the page, after the
|
||
main layout table.
|
||
|
||
**Current source**
|
||
[include/bottom_footer.php][page_bottom-source].
|
||
|
||
[page_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/include/bottom_footer.php#L27>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------------- | :--------- | :------ |
|
||
| include/bottom_footer.php | 1.0.0 |
|
||
|
||
## page_buttons
|
||
|
||
Adds controls above the graph on the graph view page. Inspect the supplied
|
||
graph ID and view context before rendering a control.
|
||
|
||
**Current source**
|
||
[graph.php][page_buttons-source].
|
||
|
||
[page_buttons-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graph.php#L89>
|
||
|
||
| file | introduced | retired |
|
||
| --------- | :--------- | :------ |
|
||
| graph.php | 1.0.0 |
|
||
|
||
## page_head
|
||
|
||
Adds elements to the HTML head of a Cacti page.
|
||
|
||
**Current source**
|
||
[lib/html.php][page_head-source].
|
||
|
||
[page_head-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/html.php#L2826>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------------------ | :--------- | :------ |
|
||
| graph_realtime.php | 1.0.0 | 1.1.33 |
|
||
| include/top_general_header.php | 1.0.0 | 1.1.33 |
|
||
| include/top_graph_header.php | 1.0.0 | 1.1.33 |
|
||
| include/top_header.php | 1.0.0 | 1.1.33 |
|
||
| lib/html.php | 1.1.34 |
|
||
|
||
## page_title
|
||
|
||
Receives the page title. Return the title to display.
|
||
|
||
**Current source**
|
||
[include/top_graph_header.php][page_title-source].
|
||
|
||
[page_title-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/include/top_graph_header.php#L28>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------------------ | :--------- | :------ |
|
||
| include/top_general_header.php | 1.0.0 |
|
||
| include/top_graph_header.php | 1.0.0 |
|
||
| include/top_header.php | 1.0.0 |
|
||
|
||
## poller_bottom
|
||
|
||
Runs near the end of the poller cycle. Plugins use it to launch their own
|
||
polling work. On remote collectors Cacti checks the `remote_poller` capability
|
||
for this hook.
|
||
|
||
**Current source**
|
||
[poller.php][poller_bottom-source].
|
||
|
||
[poller_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/poller.php#L897>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| poller.php | 1.0.0 |
|
||
|
||
## poller_command_args
|
||
|
||
Historical hook for adding command-line arguments to the poller.
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| poller.php | 0.8.7i | 1.2.8 |
|
||
|
||
## poller_exiting
|
||
|
||
Runs on the timeout path when the poller exceeds its maximum runtime. Use it
|
||
for timeout handling.
|
||
|
||
**Current source**
|
||
[poller.php][poller_exiting-source].
|
||
|
||
[poller_exiting-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/poller.php#L829>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| poller.php | 1.0.0 |
|
||
|
||
## poller_finishing
|
||
|
||
Runs once when the poller observes that all scheduled poller processes have
|
||
finished. Cacti then processes any remaining output on the main collector.
|
||
|
||
**Current source**
|
||
[poller.php][poller_finishing-source].
|
||
|
||
[poller_finishing-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/poller.php#L792>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| poller.php | 1.0.0 |
|
||
|
||
## poller_output
|
||
|
||
Receives a batch of RRD update data during poller output processing. A plugin
|
||
can use the values for threshold checks. On a remote collector this hook uses
|
||
the `remote_collect` capability.
|
||
|
||
**Current source**
|
||
[lib/poller.php][poller_output-source].
|
||
|
||
[poller_output-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/poller.php#L1055>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| lib/poller.php | 1.0.0 |
|
||
|
||
## poller_remote_maint
|
||
|
||
Runs on a remote data collector during poller maintenance.
|
||
|
||
**Current source**
|
||
[poller_maintenance.php][poller_remote_maint-source].
|
||
|
||
[poller_remote_maint-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/poller_maintenance.php#L127>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------------- | :--------- | :------ |
|
||
| poller_maintenance.php | 1.2.23 |
|
||
|
||
## poller_top
|
||
|
||
Runs at the start of polling. On a remote collector Cacti checks the
|
||
`remote_collect` capability.
|
||
|
||
**Current source**
|
||
[poller.php][poller_top-source].
|
||
|
||
[poller_top-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/poller.php#L215>
|
||
|
||
| file | introduced | retired |
|
||
| ---------- | :--------- | :------ |
|
||
| poller.php | 1.0.0 |
|
||
|
||
## remote_agent
|
||
|
||
Receives an action the remote agent did not handle internally. Return a truthy
|
||
value when the plugin handled the request.
|
||
|
||
**Current source**
|
||
[remote_agent.php][remote_agent-source].
|
||
|
||
[remote_agent-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/remote_agent.php#L107>
|
||
|
||
| file | introduced | retired |
|
||
| ---------------- | :--------- | :------ |
|
||
| remote_agent.php | 1.0.0 |
|
||
|
||
## replicate_in
|
||
|
||
Historical hook for receiving replicated data. See the retirement version
|
||
below.
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| lib/poller.php | 1.0.0 | 1.2.20 |
|
||
|
||
## replicate_out
|
||
|
||
Receives the target collector ID, connection, and replication class when Cacti
|
||
replicates data to a remote collector.
|
||
|
||
**Current source**
|
||
[lib/api_device.php][replicate_out-source].
|
||
|
||
[replicate_out-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/api_device.php#L911>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------ | :--------- | :------ |
|
||
| lib/api_device.php | |
|
||
| lib/poller.php | 1.0.0 |
|
||
|
||
## resolve_dependencies
|
||
|
||
Receives the export dependency parameters. Return the array with the
|
||
dependencies in `dep_array`.
|
||
|
||
**Current source**
|
||
[lib/export.php][resolve_dependencies-source].
|
||
|
||
[resolve_dependencies-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/export.php#L1148>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :---------- | :------ |
|
||
| lib/export.php | 1.2.0-beta1 |
|
||
|
||
## rrd_graph_graph_options
|
||
|
||
This hook allows you to specify additional options or change parameters
|
||
regarding graph image rendering. Some of the parameters will be passed to
|
||
RRDtool.
|
||
|
||
**Current source**
|
||
[lib/rrd.php][rrd_graph_graph_options-source].
|
||
|
||
[rrd_graph_graph_options-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/rrd.php#L3489>
|
||
|
||
| file | introduced | retired |
|
||
| ----------- | :--------- | :------ |
|
||
| lib/rrd.php | 1.0.0 |
|
||
|
||
## run_data_query
|
||
|
||
Runs when Cacti processes a data query. The arguments identify the device and
|
||
the data query.
|
||
|
||
**Current source**
|
||
[lib/data_query.php][run_data_query-source].
|
||
|
||
[run_data_query-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/data_query.php#L103>
|
||
|
||
| file | introduced | retired |
|
||
| ------------------ | :--------- | :------ |
|
||
| lib/data_query.php | 1.0.0 |
|
||
|
||
## settings_bottom
|
||
|
||
Adds content at the bottom of the Settings page.
|
||
|
||
**Current source**
|
||
[settings.php][settings_bottom-source].
|
||
|
||
[settings_bottom-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/settings.php#L1299>
|
||
|
||
| file | introduced | retired |
|
||
| ------------ | :--------- | :------ |
|
||
| settings.php | 1.2.25 |
|
||
|
||
## snmpagent_cache_install
|
||
|
||
Runs when Cacti installs the SNMP agent cache. Plugins that expose SNMP data
|
||
can initialize their entries here.
|
||
|
||
**Current source**
|
||
[lib/snmpagent.php][snmpagent_cache_install-source].
|
||
|
||
[snmpagent_cache_install-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/snmpagent.php#L706>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/snmpagent.php | 1.0.0 |
|
||
|
||
## substitute_host_data
|
||
|
||
This allows you to add to the substitution variables that Cacti can parse.
|
||
|
||
**Current source**
|
||
[lib/variables.php][substitute_host_data-source].
|
||
|
||
[substitute_host_data-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/variables.php#L463>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/variables.php | 1.0.0 |
|
||
|
||
## top_graph_header
|
||
|
||
Historical hook for customizing the graph header. See the file and version
|
||
history below.
|
||
|
||
| file | introduced | retired |
|
||
| ---------------------------- | :--------- | :------ |
|
||
| include/top_graph_header.php | 0.8.7i | 1.1.38 |
|
||
|
||
## top_graph_header_tabs
|
||
|
||
Adds tabs to the Cacti navigation bar. Register a callback that checks the
|
||
visitor’s realm before emitting the tab link.
|
||
|
||
**Current source**
|
||
[lib/html.php][top_graph_header_tabs-source].
|
||
|
||
[top_graph_header_tabs-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/html.php#L1771>
|
||
|
||
| file | introduced | retired |
|
||
| ------------ | :--------- | :------ |
|
||
| lib/html.php | 1.0.0 |
|
||
|
||
## top_graph_jquery_function
|
||
|
||
The graph tree prints the callback result inside its JavaScript initialization
|
||
code.
|
||
|
||
**Current source**
|
||
[lib/html_tree.php][top_graph_jquery_function-source].
|
||
|
||
[top_graph_jquery_function-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/html_tree.php#L361>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/html_tree.php | 1.0.0 |
|
||
|
||
## top_graph_refresh
|
||
|
||
This allows you to change the refresh on the graph (and any plugin page that
|
||
calls the graph header).
|
||
|
||
**Current source**
|
||
[include/global_session.php][top_graph_refresh-source].
|
||
|
||
[top_graph_refresh-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/include/global_session.php#L60>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------------------------------- | :--------- | :------ |
|
||
| include/global_session.php | 1.0.0 |
|
||
| include/themes/sunrise/global_session.php | 1.1.11 | 1.1.38 |
|
||
|
||
## top_header
|
||
|
||
Historical hook for customizing the header. See the file and version history
|
||
below.
|
||
|
||
| file | introduced | retired |
|
||
| ------------------------------ | :--------- | :------ |
|
||
| include/top_general_header.php | 1.0.0 | 1.1.38 |
|
||
| include/top_header.php | 0.8.7i | 1.1.38 |
|
||
|
||
## tree_after
|
||
|
||
This hook allows you to add additional HTML at the bottom of the graph tree
|
||
view page. The HTML is rendered only if a valid graph tree leaf is selected.
|
||
|
||
**Current source**
|
||
[lib/html_tree.php][tree_after-source].
|
||
|
||
[tree_after-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/html_tree.php#L1666>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/html_tree.php | 1.0.0 |
|
||
|
||
## tree_view_page_end
|
||
|
||
Adds content at the end of the graph tree page, including when no leaf is
|
||
selected.
|
||
|
||
**Current source**
|
||
[graph.php][tree_view_page_end-source].
|
||
|
||
[tree_view_page_end-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/graph.php#L208>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| graph.php | 1.0.0 |
|
||
| lib/html_tree.php | 1.0.0 |
|
||
|
||
## ugroup_tabs
|
||
|
||
Historical hook for adding tabs to the user group editor.
|
||
|
||
| file | introduced | retired |
|
||
| -------------------- | :--------- | :------ |
|
||
| user_group_admin.php | 1.0.0 | 1.2.17 |
|
||
|
||
## update_data_source_title_cache
|
||
|
||
Receives the local data source ID after Cacti refreshes the title cache.
|
||
|
||
**Current source**
|
||
[lib/variables.php][update_data_source_title_cache-source].
|
||
|
||
[update_data_source_title_cache-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/variables.php#L130>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------- | :--------- | :------ |
|
||
| lib/variables.php | 1.0.0 |
|
||
|
||
## user_admin_action
|
||
|
||
Receives the requested user administration action. Return a truthy value when
|
||
the plugin has handled it.
|
||
|
||
**Current source**
|
||
[user_admin.php][user_admin_action-source].
|
||
|
||
[user_admin_action-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_admin.php#L80>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| user_admin.php | 1.0.0 |
|
||
|
||
## user_admin_edit
|
||
|
||
Receives the user ID while Cacti renders the editor, or zero for a new user.
|
||
|
||
**Current source**
|
||
[user_admin.php][user_admin_edit-source].
|
||
|
||
[user_admin_edit-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_admin.php#L2009>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| user_admin.php | 1.0.0 |
|
||
|
||
## user_admin_run_action
|
||
|
||
Receives the selected user administration tab. Return a truthy value when the
|
||
plugin has rendered the tab.
|
||
|
||
**Current source**
|
||
[user_admin.php][user_admin_run_action-source].
|
||
|
||
[user_admin_run_action-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_admin.php#L2169>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| user_admin.php | 1.0.0 |
|
||
|
||
## user_admin_setup_sql_save
|
||
|
||
Receives the fields prepared for the user record. Return the fields to save.
|
||
|
||
**Current source**
|
||
[user_admin.php][user_admin_setup_sql_save-source].
|
||
|
||
[user_admin_setup_sql_save-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_admin.php#L665>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| user_admin.php | 1.0.0 |
|
||
|
||
## user_admin_tab
|
||
|
||
Adds a tab to the user editor.
|
||
|
||
**Current source**
|
||
[user_admin.php][user_admin_tab-source].
|
||
|
||
[user_admin_tab-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_admin.php#L2002>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :---------- |
|
||
| user_admin.php | 0.8.7i |
|
||
| utilities.php | 1.0.0 | 1.2.0-beta3 |
|
||
|
||
## user_admin_user_save
|
||
|
||
Runs when Cacti saves a user account. Use it to save plugin-owned user
|
||
settings.
|
||
|
||
**Current source**
|
||
[user_admin.php][user_admin_user_save-source].
|
||
|
||
[user_admin_user_save-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_admin.php#L755>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| user_admin.php | 1.0.0 |
|
||
|
||
## user_group_admin_action
|
||
|
||
Receives the requested group administration action. Return a truthy value when
|
||
the plugin has handled it.
|
||
|
||
**Current source**
|
||
[user_group_admin.php][user_group_admin_action-source].
|
||
|
||
[user_group_admin_action-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_group_admin.php#L180>
|
||
|
||
| file | introduced | retired |
|
||
| -------------------- | :--------- | :------ |
|
||
| user_group_admin.php | 1.0.0 |
|
||
|
||
## user_group_admin_edit
|
||
|
||
Receives the group ID while Cacti renders the editor, or zero for a new group.
|
||
|
||
**Current source**
|
||
[user_group_admin.php][user_group_admin_edit-source].
|
||
|
||
[user_group_admin_edit-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_group_admin.php#L1902>
|
||
|
||
| file | introduced | retired |
|
||
| -------------------- | :--------- | :------ |
|
||
| user_group_admin.php | 1.0.0 |
|
||
|
||
## user_group_admin_run_action
|
||
|
||
Receives the selected group administration tab. Return a truthy value when the
|
||
plugin has rendered the tab.
|
||
|
||
**Current source**
|
||
[user_group_admin.php][user_group_admin_run_action-source].
|
||
|
||
[user_group_admin_run_action-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_group_admin.php#L1971>
|
||
|
||
| file | introduced | retired |
|
||
| -------------------- | :--------- | :------ |
|
||
| user_group_admin.php | 1.2.17 |
|
||
|
||
## user_group_admin_save
|
||
|
||
Runs when Cacti saves a user group. Use it to save plugin-owned group settings.
|
||
|
||
**Current source**
|
||
[user_group_admin.php][user_group_admin_save-source].
|
||
|
||
[user_group_admin_save-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_group_admin.php#L686>
|
||
|
||
| file | introduced | retired |
|
||
| -------------------- | :--------- | :------ |
|
||
| user_group_admin.php | 1.0.0 |
|
||
|
||
## user_group_admin_setup_sql_save
|
||
|
||
Receives the fields prepared for the group record. Return the fields to save.
|
||
|
||
**Current source**
|
||
[user_group_admin.php][user_group_admin_setup_sql_save-source].
|
||
|
||
[user_group_admin_setup_sql_save-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_group_admin.php#L631>
|
||
|
||
| file | introduced | retired |
|
||
| -------------------- | :--------- | :------ |
|
||
| user_group_admin.php | 1.0.0 |
|
||
|
||
## user_group_admin_tab
|
||
|
||
Adds a tab to the group editor.
|
||
|
||
**Current source**
|
||
[user_group_admin.php][user_group_admin_tab-source].
|
||
|
||
[user_group_admin_tab-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_group_admin.php#L1895>
|
||
|
||
| file | introduced | retired |
|
||
| -------------------- | :--------- | :------ |
|
||
| user_group_admin.php | 1.2.17 |
|
||
|
||
## user_group_remove
|
||
|
||
Receives the ID of the group being removed.
|
||
|
||
**Current source**
|
||
[user_group_admin.php][user_group_remove-source].
|
||
|
||
[user_group_remove-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/user_group_admin.php#L472>
|
||
|
||
| file | introduced | retired |
|
||
| -------------------- | :--------- | :------ |
|
||
| user_group_admin.php | 1.2.17 |
|
||
|
||
## user_remove
|
||
|
||
Receives the ID of the user being removed.
|
||
|
||
**Current source**
|
||
[lib/auth.php][user_remove-source].
|
||
|
||
[user_remove-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/lib/auth.php#L594>
|
||
|
||
| file | introduced | retired |
|
||
| -------------- | :--------- | :------ |
|
||
| lib/auth.php | 1.0.0 |
|
||
| user_admin.php | 1.0.0 | 1.2.20 |
|
||
|
||
## utilities_action
|
||
|
||
Receives the requested System Utilities action. Return a truthy value if the
|
||
plugin handled it.
|
||
|
||
**Current source**
|
||
[utilities.php][utilities_action-source].
|
||
|
||
[utilities_action-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/utilities.php#L129>
|
||
|
||
| file | introduced | retired |
|
||
| ------------- | :--------- | :------ |
|
||
| utilities.php | 1.0.0 |
|
||
|
||
## utilities_array
|
||
|
||
Runs before System Utilities renders its list. Plugins can add entries to the
|
||
global `$utilities` array.
|
||
|
||
**Current source**
|
||
[utilities.php][utilities_array-source].
|
||
|
||
[utilities_array-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/utilities.php#L2452>
|
||
|
||
| file | introduced | retired |
|
||
| ------------- | :--------- | :------ |
|
||
| utilities.php | 1.0.4 |
|
||
|
||
## utilities_list
|
||
|
||
Adds entries to the System Utilities page.
|
||
|
||
**Current source**
|
||
[utilities.php][utilities_list-source].
|
||
|
||
[utilities_list-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/utilities.php#L2486>
|
||
|
||
| file | introduced | retired |
|
||
| ------------- | :--------- | :------ |
|
||
| utilities.php | 1.0.0 |
|
||
|
||
## utilities_tab
|
||
|
||
Adds a tab to System Utilities.
|
||
|
||
**Current source**
|
||
[utilities.php][utilities_tab-source].
|
||
|
||
[utilities_tab-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/utilities.php#L212>
|
||
|
||
| file | introduced | retired |
|
||
| ------------- | :---------- | :------ |
|
||
| utilities.php | 1.2.0-beta3 |
|
||
|
||
## valid_host_fields
|
||
|
||
Allows your plugin to define additional variables that will be used in
|
||
substitute_host_data.
|
||
|
||
Pretty sure that this hook allows you to define custom replacement values in
|
||
graphs.
|
||
|
||
**Current source**
|
||
[include/global_form.php][valid_host_fields-source].
|
||
|
||
[valid_host_fields-source]:
|
||
<https://github.com/Cacti/cacti/blob/06bcf95c3857bcd5c95719d4b33aa579774b38aa/include/global_form.php#L26>
|
||
|
||
| file | introduced | retired |
|
||
| ----------------------- | :--------- | :------ |
|
||
| include/global_form.php | 1.0.0 |
|
||
|
||
---
|
||
|
||
Copyright (c) 2004-2026 The Cacti Group
|