1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206
|
# Plugin Hook API Reference
The following table shows all known Cacti plugin hooks and a brief description
of their function.
| hook | hook | hook |
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [add_graph_template_to_host](Plugin-Hook-API-Ref.md#add_graph_template_to_host) | [api_device_new](Plugin-Hook-API-Ref.md#api_device_new) | [api_device_save](Plugin-Hook-API-Ref.md#api_device_save) |
| [auth_alternate_realms](Plugin-Hook-API-Ref.md#auth_alternate_realms) | [auth_profile_reset](Plugin-Hook-API-Ref.md#auth_profile_reset) | [auth_profile_reset_value](Plugin-Hook-API-Ref.md#auth_profile_reset_value) |
| [auth_profile_run_action](Plugin-Hook-API-Ref.md#auth_profile_run_action) | [auth_profile_save](Plugin-Hook-API-Ref.md#auth_profile_save) | [auth_profile_tabs](Plugin-Hook-API-Ref.md#auth_profile_tabs) |
| [auth_profile_update_data](Plugin-Hook-API-Ref.md#auth_profile_update_data) | [boost_poller_bottom](Plugin-Hook-API-Ref.md#boost_poller_bottom) | [bottom_footer](Plugin-Hook-API-Ref.md#bottom_footer) |
| [cacti_stats_update](Plugin-Hook-API-Ref.md#cacti_stats_update) | [change_password_title](Plugin-Hook-API-Ref.md#change_password_title) | [clog_regex_array](Plugin-Hook-API-Ref.md#clog_regex_array) |
| [config_arrays](Plugin-Hook-API-Ref.md#config_arrays) | [config_form](Plugin-Hook-API-Ref.md#config_form) | [config_insert](Plugin-Hook-API-Ref.md#config_insert) |
| [config_settings](Plugin-Hook-API-Ref.md#config_settings) | [console_after](Plugin-Hook-API-Ref.md#console_after) | [console_before](Plugin-Hook-API-Ref.md#console_before) |
| [copy_user](Plugin-Hook-API-Ref.md#copy_user) | [create_complete_graph_from_template](Plugin-Hook-API-Ref.md#create_complete_graph_from_template) | [custom_denied](Plugin-Hook-API-Ref.md#custom_denied) |
| [custom_login](Plugin-Hook-API-Ref.md#custom_login) | [custom_logout_message](Plugin-Hook-API-Ref.md#custom_logout_message) | [custom_password](Plugin-Hook-API-Ref.md#custom_password) |
| [custom_version_info](Plugin-Hook-API-Ref.md#custom_version_info) | [data_input_sql_where](Plugin-Hook-API-Ref.md#data_input_sql_where) | [data_source_action_array](Plugin-Hook-API-Ref.md#data_source_action_array) |
| [data_source_action_bottom](Plugin-Hook-API-Ref.md#data_source_action_bottom) | [data_source_action_execute](Plugin-Hook-API-Ref.md#data_source_action_execute) | [data_source_action_prepare](Plugin-Hook-API-Ref.md#data_source_action_prepare) |
| [data_source_edit_bottom](Plugin-Hook-API-Ref.md#data_source_edit_bottom) | [data_source_edit_top](Plugin-Hook-API-Ref.md#data_source_edit_top) | [data_source_remove](Plugin-Hook-API-Ref.md#data_source_remove) |
| [data_source_to_poller_items](Plugin-Hook-API-Ref.md#data_source_to_poller_items) | [data_sources_table](Plugin-Hook-API-Ref.md#data_sources_table) | [device_action_array](Plugin-Hook-API-Ref.md#device_action_array) |
| [device_action_bottom](Plugin-Hook-API-Ref.md#device_action_bottom) | [device_action_execute](Plugin-Hook-API-Ref.md#device_action_execute) | [device_action_prepare](Plugin-Hook-API-Ref.md#device_action_prepare) |
| [device_display_text](Plugin-Hook-API-Ref.md#device_display_text) | [device_edit_pre_bottom](Plugin-Hook-API-Ref.md#device_edit_pre_bottom) | [device_edit_top_links](Plugin-Hook-API-Ref.md#device_edit_top_links) |
| [device_filter_end](Plugin-Hook-API-Ref.md#device_filter_end) | [device_filter_start](Plugin-Hook-API-Ref.md#device_filter_start) | [device_filters](Plugin-Hook-API-Ref.md#device_filters) |
| [device_remove](Plugin-Hook-API-Ref.md#device_remove) | [device_sql_where](Plugin-Hook-API-Ref.md#device_sql_where) | [device_table_bottom](Plugin-Hook-API-Ref.md#device_table_bottom) |
| [device_table_replace](Plugin-Hook-API-Ref.md#device_table_replace) | [device_template_change](Plugin-Hook-API-Ref.md#device_template_change) | [device_template_edit](Plugin-Hook-API-Ref.md#device_template_edit) |
| [device_template_top](Plugin-Hook-API-Ref.md#device_template_top) | [draw_navigation_text](Plugin-Hook-API-Ref.md#draw_navigation_text) | [export_action](Plugin-Hook-API-Ref.md#export_action) |
| [fgc_contextoption](Plugin-Hook-API-Ref.md#fgc_contextoption) | [get_friendly_name](Plugin-Hook-API-Ref.md#get_friendly_name) | [global_settings_update](Plugin-Hook-API-Ref.md#global_settings_update) |
| [graph](Plugin-Hook-API-Ref.md#graph) | [graph_buttons](Plugin-Hook-API-Ref.md#graph_buttons) | [graph_edit_after](Plugin-Hook-API-Ref.md#graph_edit_after) |
| [graph_image](Plugin-Hook-API-Ref.md#graph_image) | [graph_items_remove](Plugin-Hook-API-Ref.md#graph_items_remove) | [graph_tree_page_buttons](Plugin-Hook-API-Ref.md#graph_tree_page_buttons) |
| [graphs_action_array](Plugin-Hook-API-Ref.md#graphs_action_array) | [graphs_action_bottom](Plugin-Hook-API-Ref.md#graphs_action_bottom) | [graphs_action_execute](Plugin-Hook-API-Ref.md#graphs_action_execute) |
| [graphs_action_prepare](Plugin-Hook-API-Ref.md#graphs_action_prepare) | [graphs_item_array](Plugin-Hook-API-Ref.md#graphs_item_array) | [graphs_new_top_links](Plugin-Hook-API-Ref.md#graphs_new_top_links) |
| [graphs_remove](Plugin-Hook-API-Ref.md#graphs_remove) | [graphs_sql_where](Plugin-Hook-API-Ref.md#graphs_sql_where) | [hmib_get_cpu](Plugin-Hook-API-Ref.md#hmib_get_cpu) |
| [hmib_get_cpu_indexes](Plugin-Hook-API-Ref.md#hmib_get_cpu_indexes) | [hmib_get_disk](Plugin-Hook-API-Ref.md#hmib_get_disk) | [host_edit_bottom](Plugin-Hook-API-Ref.md#host_edit_bottom) |
| [host_edit_top](Plugin-Hook-API-Ref.md#host_edit_top) | [host_save](Plugin-Hook-API-Ref.md#host_save) | [import_action](Plugin-Hook-API-Ref.md#import_action) |
| [is_console_page](Plugin-Hook-API-Ref.md#is_console_page) | [login_after](Plugin-Hook-API-Ref.md#login_after) | [login_before](Plugin-Hook-API-Ref.md#login_before) |
| [login_options_navigate](Plugin-Hook-API-Ref.md#login_options_navigate) | [login_process](Plugin-Hook-API-Ref.md#login_process) | [login_realms](Plugin-Hook-API-Ref.md#login_realms) |
| [login_title](Plugin-Hook-API-Ref.md#login_title) | [logout_post_session_destroy](Plugin-Hook-API-Ref.md#logout_post_session_destroy) | [logout_pre_session_destroy](Plugin-Hook-API-Ref.md#logout_pre_session_destroy) |
| [nav_login_after](Plugin-Hook-API-Ref.md#nav_login_after) | [nav_login_before](Plugin-Hook-API-Ref.md#nav_login_before) | [page_bottom](Plugin-Hook-API-Ref.md#page_bottom) |
| [page_buttons](Plugin-Hook-API-Ref.md#page_buttons) | [page_head](Plugin-Hook-API-Ref.md#page_head) | [page_title](Plugin-Hook-API-Ref.md#page_title) |
| [poller_bottom](Plugin-Hook-API-Ref.md#poller_bottom) | [poller_command_args](Plugin-Hook-API-Ref.md#poller_command_args) | [poller_exiting](Plugin-Hook-API-Ref.md#poller_exiting) |
| [poller_finishing](Plugin-Hook-API-Ref.md#poller_finishing) | [poller_output](Plugin-Hook-API-Ref.md#poller_output) | [poller_remote_maint](Plugin-Hook-API-Ref.md#poller_remote_maint) |
| [poller_top](Plugin-Hook-API-Ref.md#poller_top) | [remote_agent](Plugin-Hook-API-Ref.md#remote_agent) | [replicate_in](Plugin-Hook-API-Ref.md#replicate_in) |
| [replicate_out](Plugin-Hook-API-Ref.md#replicate_out) | [report_filters](Plugin-Hook-API-Ref.md#report_filters) | [resolve_dependencies](Plugin-Hook-API-Ref.md#resolve_dependencies) |
| [rrd_graph_graph_options](Plugin-Hook-API-Ref.md#rrd_graph_graph_options) | [run_data_query](Plugin-Hook-API-Ref.md#run_data_query) | [snmpagent_cache_install](Plugin-Hook-API-Ref.md#snmpagent_cache_install) |
| [substitute_host_data](Plugin-Hook-API-Ref.md#substitute_host_data) | [top_graph_header](Plugin-Hook-API-Ref.md#top_graph_header) | [top_graph_header_tabs](Plugin-Hook-API-Ref.md#top_graph_header_tabs) |
| [top_graph_jquery_function](Plugin-Hook-API-Ref.md#top_graph_jquery_function) | [top_graph_refresh](Plugin-Hook-API-Ref.md#top_graph_refresh) | [top_header](Plugin-Hook-API-Ref.md#top_header) |
| [tree_after](Plugin-Hook-API-Ref.md#tree_after) | [tree_view_page_end](Plugin-Hook-API-Ref.md#tree_view_page_end) | [ugroup_tabs](Plugin-Hook-API-Ref.md#ugroup_tabs) |
| [update_data_source_title_cache](Plugin-Hook-API-Ref.md#update_data_source_title_cache) | [user_admin_action](Plugin-Hook-API-Ref.md#user_admin_action) | [user_admin_edit](Plugin-Hook-API-Ref.md#user_admin_edit) |
| [user_admin_run_action](Plugin-Hook-API-Ref.md#user_admin_run_action) | [user_admin_setup_sql_save](Plugin-Hook-API-Ref.md#user_admin_setup_sql_save) | [user_admin_tab](Plugin-Hook-API-Ref.md#user_admin_tab) |
| [user_admin_user_save](Plugin-Hook-API-Ref.md#user_admin_user_save) | [user_group_admin_action](Plugin-Hook-API-Ref.md#user_group_admin_action) | [user_group_admin_edit](Plugin-Hook-API-Ref.md#user_group_admin_edit) |
| [user_group_admin_save](Plugin-Hook-API-Ref.md#user_group_admin_save) | [user_group_admin_setup_sql_save](Plugin-Hook-API-Ref.md#user_group_admin_setup_sql_save) | [user_group_admin_run_action] (Plugin-Hook-API-Ref.md#user_group_admin_run_action) |
| [user_group_admin_tab] (Plugin-Hook-API-Ref.md#user_group_admin_tab) | [user_group_remove] (Plugin-Hook-API-Ref.md#user_group_remove) | [user_remove](Plugin-Hook-API-Ref.md#user_remove) |
| [utilities_action](Plugin-Hook-API-Ref.md#utilities_action) | [utilities_array](Plugin-Hook-API-Ref.md#utilities_array) | [utilities_list](Plugin-Hook-API-Ref.md#utilities_list) |
| [valid_host_fields](Plugin-Hook-API-Ref.md#valid_host_fields) |
## add_graph_template_to_host
Allows you to perform additional operations when adding a graph template to
host. The parameters passed are `host_id` and `graph_template_id`.
| 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 |
## api_device_new
This hooks allows you to perform additional operation at the end of
api_device_save function. Unlike the api_device_save hook, the device ID is
already defined here.
| file | introduced | retired |
| ------------------ | :--------- | :------ |
| lib/api_device.php | 1.0.0 |
## api_device_save
This hook allows you to perform additional operation at the end of
api_device_save function. Unlike the api_device_new hook, the device ID is might
not be defined here.
This hook allows you to alter the contents to the device table with custom
fields. When used properly, it allows you to extend the host table with your
plugins custom fields.
| file | introduced | retired |
| ------------------ | :--------- | :------ |
| lib/api_device.php | 1.0.0 |
## auth_alternate_realms
This hook allows you to handle user login check alternate plugin defined
authentication realms.
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| include/auth.php | 1.0.0 |
## auth_profile_reset
Allows you to reset plugins all user settings
| file | introduced | retired |
| ---------------- | :---------- | :------ |
| auth_profile.php | 1.2.0-beta3 |
## auth_profile_reset_value
Allows you to reset plugins single user settings
| file | introduced | retired |
| ---------------- | :---------- | :------ |
| auth_profile.php | 1.2.0-beta3 |
## auth_profile_run_action
Allows you to draw plugins user settings form
| file | introduced | retired |
| ---------------- | :---------- | :------ |
| auth_profile.php | 1.2.0-beta3 |
## auth_profile_save
Allows you to save plugins all user settings
| file | introduced | retired |
| ---------------- | :---------- | :------ |
| auth_profile.php | 1.2.0-beta3 |
## auth_profile_tabs
Allows you to draw plugins user setting tabs
| file | introduced | retired |
| ---------------- | :---------- | :------ |
| auth_profile.php | 1.2.0-beta3 |
## auth_profile_update_data
Allows you to update plugins single user setting
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| auth_profile.php | 1.2.4 |
## boost_poller_bottom
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| poller_boost.php | 1.0.0 |
## bottom_footer
Allows you to override the rendering of the bottom_footer html snippet.
| file | introduced | retired |
| ------------------------- | :--------- | :------ |
| include/bottom_footer.php | 0.8.7i | 1.1.38 |
## cacti_stats_update
| file | introduced | retired |
| ---------- | :--------- | :------ |
| poller.php | 1.0.0 |
## change_password_title
| file | introduced | retired |
| ----------------------- | :---------- | :------ |
| auth_changepassword.php | 1.2.0-beta1 |
## clog_regex_array
Allows you to enhance the Logs display with additional information or links.
| file | introduced | retired |
| ------------------- | :--------- | :------ |
| lib/clog_webapi.php | 1.1.34 |
## config_arrays
Allows your plug-in to define custom array elements to be used throughout cacti.
Things like dropdown arrays and the like.
| file | introduced | retired |
| ------------------------- | :--------- | :------ |
| include/global_arrays.php | 1.0.0 |
## config_form
Allows you to define form object to represent data to be stored in your tables.
In the case of MacTrack, there is a table called `mac_track_sites` and in order
to drive the UI and allow for the user to provide input and save a site, you
must provide the Cacti form engine a form array to allow for the form to be
presented and contents to be saved.
| file | introduced | retired |
| ----------------------- | :--------- | :------ |
| include/global_form.php | 1.0.0 |
## config_insert
This is a general purpose hook used for connecting to other database, or
sourcing common includes that would otherwise not be sourced.
| file | introduced | retired |
| ------------------ | :--------- | :------ |
| include/global.php | 1.0.0 |
## config_settings
Allows you to extend the Cacti settings page to allow for custom tabs and global
settings within them.
| file | introduced | retired |
| --------------------------- | :--------- | :------ |
| include/global_settings.php | 1.0.0 |
## console_after
Allows you to add text after the default message on the console page
| file | introduced | retired |
| --------- | :--------- | :------ |
| index.php | 1.0.0 |
## console_before
Allows you to add text before the default message on the console page. For
instance, the Update plug-in will display a message here if there are new
versions of plugins.
| file | introduced | retired |
| --------- | :--------- | :------ |
| index.php | 1.0.0 |
## copy_user
Allows a plugin to take part in the Copy User actions. This is important a
plugin maintains user settings.
| file | introduced | retired |
| ------------ | :--------- | :------ |
| lib/auth.php | 1.0.0 |
## create_complete_graph_from_template
Allows you to perform additional operations when adding new graph to device from
graph template.
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| lib/template.php | 1.0.0 |
## custom_denied
Allows you to override the rendering of the permission denied interface.
| file | introduced | retired |
| --------------------- | :--------- | :------ |
| permission_denied.php | 1.2.2 |
| auth_login.php | 1.2.12 |
## custom_login
Allows you to override the rendering of the auth_login.php page.
| file | introduced | retired |
| -------------- | :--------- | :------ |
| auth_login.php | 1.0.0 |
## custom_logout_message
Allows you to override the rendering of the logout.php page.
| file | introduced | retired |
| ---------- | :--------- | :------ |
| logout.php | 1.0.0 |
## custom_password
Allows you to override the rendering of the auth_changepassword.php page.
| 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.
| file | introduced | retired |
| ------------- | :--------- | :------ |
| utilities.php | 1.0.0 |
## data_input_sql_where
| file | introduced | retired |
| -------------- | :--------- | :------ |
| data_input.php | 1.0.0 |
## data_source_action_array
Allows you to define custom dropdown actions from within the data sources page.
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| data_sources.php | 1.0.0 |
## data_source_action_bottom
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| data_sources.php | 1.0.0 |
## data_source_action_execute
Allows you to define custom actions to be taken upon you dropdown selection.
| 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 dropdown action and then two
follow-up actions to complete the cycle. This is were you actually save the
data.
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| data_sources.php | 1.0.0 |
## data_source_edit_bottom
Allows you to make minor change to the Data Sources page, like add a tabbed
interface.
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| data_sources.php | 1.0.0 |
## data_source_edit_top
Allows you to make minor changes to the Data Sources page, like add a tabbed
interface.
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| data_sources.php | 1.0.0 |
## data_source_remove
This hook is called when the data sources used by a graph are removed. The
parameters are the graphs data sources.
| 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
| file | introduced | retired |
| --------------- | :--------- | :------ |
| lib/utility.php | 1.0.0 |
## data_sources_table
Allows you to change the data displayed on the Data Sources table. THold uses
this to create a link to that datasources threshold
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| data_sources.php | 1.0.0 |
## device_action_array
Allows you to define custom dropdown actions from within the device/host page.
| file | introduced | retired |
| -------- | :--------- | :------ |
| host.php | 1.0.0 |
## device_action_bottom
| file | introduced | retired |
| -------- | :--------- | :------ |
| host.php | 1.0.0 |
## device_action_execute
Allows you to define custom actions to be taken upon you dropdown selection.
| 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 dropdown action and then two follow-up
actions to complete the cycle. This is were you actually save the data.
| file | introduced | retired |
| -------- | :--------- | :------ |
| host.php | 1.0.0 |
## device_display_text
This hook allows you to add custom columns header to the host list page
| file | introduced | retired |
| -------- | :---------- | :------ |
| host.php | 1.3.0 - Dev |
## device_edit_pre_bottom
| 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".
| file | introduced | retired |
| -------- | :--------- | :------ |
| host.php | 1.0.0 |
## device_filter_end
This hook allows you to add custom filter fields before Cacti buildin filter to
the host list page
| file | introduced | retired |
| -------- | :---------- | :------ |
| host.php | 1.3.0 - Dev |
## device_filter_start
This hook allows you to add custom filter fields after Cacti buildin filter to
the host list page
| file | introduced | retired |
| -------- | :---------- | :------ |
| host.php | 1.3.0 - Dev |
## device_filters
| file | introduced | retired |
| -------- | :--------- | :------ |
| host.php | 1.0.0 |
## device_remove
This hook allows you to perform additional actions on devices that have been
selected for deletion. The parameter is an array of deleted device IDs. Note
that at this point, the devices are already deleted from the host table.
| file | introduced | retired |
| ------------------ | :---------- | :------ |
| host.php | 1.0.0 | 1.1.38 |
| lib/api_device.php | 1.2.0-beta1 |
## device_sql_where
| file | introduced | retired |
| -------- | :--------- | :------ |
| host.php | 1.0.0 |
## device_table_bottom
| file | introduced | retired |
| -------- | :--------- | :------ |
| host.php | 1.0.0 |
## device_table_replace
Allows you to override the rendering of the host list page
| file | introduced | retired |
| -------- | :---------- | :------ |
| host.php | 1.3.0 - Dev |
## device_template_change
Allows you to add template items such a threshold upon a
device template change
| file | introduced | retired |
| ----------------- | :---------- | :------ |
| lib/ap_device.php | 1.2.25 |
## device_template_edit
| file | introduced | retired |
| ------------------ | :--------- | :------ |
| host_templates.php | 1.0.0 |
## device_template_top
| file | introduced | retired |
| ------------------ | :--------- | :------ |
| host_templates.php | 1.0.0 |
## draw_navigation_text
Just below the Cacti "Console", and "Graphs" tabs, cacti provides a Navigation
bar that allows you to move backward in a selection tree. Although it is not
foolproof, this hook allows you to populate and navigate that tree.
| file | introduced | retired |
| ----------------- | :--------- | :------ |
| lib/functions.php | 1.0.0 |
## export_action
| file | introduced | retired |
| -------------- | :---------- | :------ |
| lib/export.php | 1.2.0-beta1 |
## fgc_contextoption
| file | introduced | retired |
| ----------------- | :--------- | :------ |
| lib/functions.php | 1.1.28 |
## get_friendly_name
| file | introduced | retired |
| -------------- | :---------- | :------ |
| lib/import.php | 1.2.0-beta1 |
## global_settings_update
| file | introduced | retired |
| ------------ | :--------- | :------ |
| settings.php | 1.0.0 |
## graph
This hook is called at the top of graph.php page
| file | introduced | retired |
| --------- | :--------- | :------ |
| graph.php | 1.0.0 |
## graph_buttons
You know about the zoom button right? Well this allows you to add any additional
custom button to the right of a graph.
| file | introduced | retired |
| --------- | :--------- | :------ |
| graph.php | 1.0.0 |
## graph_edit_after
| file | introduced | retired |
| ---------- | :---------- | :------ |
| graphs.php | 1.2.0-beta1 |
## graph_image
This hooks allows displaying of alternative graphics in place of a graph image.
This hook can no output text, only modify the image, as it is only called when a
graph is required to be outputted.
| file | introduced | retired |
| --------------- | :--------- | :------ |
| graph_image.php | 1.0.0 |
| graph_json.php | 1.0.0 |
## graph_items_remove
This hook is called when when the data source is deleted, and the option to
remove all graph items tied to the data source is selected.
| 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.
| file | introduced | retired |
| ----------------- | :--------- | :------ |
| lib/html_tree.php | 0.8.7i |
## graphs_action_array
Similar to the host actions and host, prepare and execute hooks. It allows you
to have custom dropdown actions within the graph management interface.
| file | introduced | retired |
| ---------- | :--------- | :------ |
| graphs.php | 1.0.0 |
## graphs_action_bottom
| file | introduced | retired |
| ---------- | :--------- | :------ |
| graphs.php | 1.0.0 |
## graphs_action_execute
| file | introduced | retired |
| ---------- | :--------- | :------ |
| graphs.php | 1.0.0 |
## graphs_action_prepare
| file | introduced | retired |
| ---------- | :--------- | :------ |
| graphs.php | 1.0.0 |
## graphs_item_array
| 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.
| 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.
| 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
This hooks allows you to add additional where clauses to the select statement
used to display graphs on the graphs.php page.
| file | introduced | retired |
| ---------- | :--------- | :------ |
| graphs.php | 1.0.0 |
## hmib_get_cpu
| file | introduced | retired |
| ----------------------- | :--------- | :------ |
| scripts/ss_host_cpu.php | 1.0.0 |
## hmib_get_cpu_indexes
| file | introduced | retired |
| ----------------------- | :--------- | :------ |
| scripts/ss_host_cpu.php | 1.0.0 |
## hmib_get_disk
| 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.
| 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.
| file | introduced | retired |
| -------- | :--------- | :------ |
| host.php | 1.0.0 |
## host_save
| file | introduced | retired |
| -------- | :--------- | :------ |
| host.php | 1.0.0 |
## import_action
| file | introduced | retired |
| -------------- | :---------- | :------ |
| lib/import.php | 1.2.0-beta1 |
## is_console_page
| file | introduced | retired |
| ------------ | :--------- | :------ |
| lib/html.php | 1.0.0 |
## login_after
This allows you to display text or html after the login form.
| 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.
| file | introduced | retired |
| -------------- | :--------- | :------ |
| auth_login.php | 1.0.0 |
## login_options_navigate
Used to support alternate login realm types.
| file | introduced | retired |
| ----------------------- | :--------- | :------ |
| auth_changepassword.php | 1.0.0 |
| auth_login.php | 1.0.0 |
## login_process
Used to authenticate the user logging in to a custom plugin defined realm.
| file | introduced | retired |
| -------------- | :--------- | :------ |
| auth_login.php | 1.0.0 |
## login_realms
Used to defined additional custom plugin defined authentication realms. The
parameter passed is an array of existing authentication realms.
| file | introduced | retired |
| -------------- | :--------- | :------ |
| auth_login.php | 1.0.0 |
## login_title
Allows the plugin to set/modify that page title.
| 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.
| 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.
| file | introduced | retired |
| ---------- | :--------- | :------ |
| logout.php | 1.0.0 |
## nav_login_after
This pair of hooks (`nav_login_before` and `nav_login_after`) allows you to add
custom HTML to the navigation bar, before and after the "Logged in as " text.
| file | introduced | retired |
| ----------------- | :--------- | :------ |
| lib/functions.php | 1.0.0 |
## nav_login_before
This pair of hooks (`nav_login_before` and `nav_login_after`) allows you to add
custom HTML to the navigation bar, before and after the "Logged in as " text.
| 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.
| file | introduced | retired |
| ------------------------- | :--------- | :------ |
| include/bottom_footer.php | 1.0.0 |
## page_buttons
Allows you to add custom buttons and HTML to the top of the graph.php page,
above the "Viewing graph" row.
| file | introduced | retired |
| --------- | :--------- | :------ |
| graph.php | 1.0.0 |
## page_head
This hook allows you to add custom HTML tags to the page `<head>` tag.
| 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
Allows the plugin to set/modify the page title
| 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
This hook allows you to launch other polling activities once Cacti has complete
it's polling activities. Things like MacTrack, Boost, THold, and others use this
hook to launch their respective poller.
| file | introduced | retired |
| ---------- | :--------- | :------ |
| poller.php | 1.0.0 |
## poller_command_args
Using this hook, your plugin can pass additional command line arguments to the
poller.
| file | introduced | retired |
| ---------- | :--------- | :------ |
| poller.php | 0.8.7i | 1.2.8 |
## poller_exiting
| file | introduced | retired |
| ---------- | :--------- | :------ |
| poller.php | 1.0.0 |
## poller_finishing
| file | introduced | retired |
| ---------- | :--------- | :------ |
| poller.php | 1.0.0 |
## poller_output
This hook was designed specifically for the boost plug-in. However, it has found
new life in many plugins making them much faster now. What this hook allows you
to do is intercept the contents of the `poller_output` table before the data is
deleted. This allows for things like threshold checking and other interesting
actions such as checking for up/down events and the like. Previously, plugins
were reliant on using things like `rrdtool fetch` to perform these actions. Now
they can leverage the pollers output directly.
| file | introduced | retired |
| -------------- | :--------- | :------ |
| lib/poller.php | 1.0.0 |
## poller_remote_maint
This hook will fire for plugins that need to perform remote maintenance. It will
only fire on the Remote Data Collectors.
| file | introduced | retired |
| ---------------------- | :--------- | :------ |
| poller_maintenance.php | 1.2.23 |
## poller_top
This hook allows you to launch processes concurrently with the Cacti poller for
things like THolds fast poller for example.
| file | introduced | retired |
| ---------- | :--------- | :------ |
| poller.php | 1.0.0 |
## remote_agent
| file | introduced | retired |
| ---------------- | :--------- | :------ |
| remote_agent.php | 1.0.0 |
## replicate_in
| file | introduced | retired |
| -------------- | :--------- | :------ |
| lib/poller.php | 1.0.0 |
## replicate_out
| file | introduced | retired |
| ------------------ | :--------- | :------ |
| lib/api_device.php | |
| lib/poller.php | 1.0.0 |
## resolve_dependencies
| 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.
| file | introduced | retired |
| ----------- | :--------- | :------ |
| lib/rrd.php | 1.0.0 |
## run_data_query
This hook allows your plugin to perform additional operations after a data query
update was triggered.
| file | introduced | retired |
| ------------------ | :--------- | :------ |
| lib/data_query.php | 1.0.0 |
## snmpagent_cache_install
| 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.
| file | introduced | retired |
| ----------------- | :--------- | :------ |
| lib/variables.php | 1.0.0 | 1.1.5 |
## top_graph_header
Allows you to override the rendering of the top_graph_header.php include.
| file | introduced | retired |
| ---------------------------- | :--------- | :------ |
| include/top_graph_header.php | 0.8.7i | 1.1.38 |
## top_graph_header_tabs
This hook is used to add tab's to Cacti's user interface.
| file | introduced | retired |
| ------------ | :--------- | :------ |
| lib/html.php | 1.0.0 |
## top_graph_jquery_function
| 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 plug-in page that
calls the graph header)
| file | introduced | retired |
| ----------------------------------------- | :--------- | :------ |
| include/global_session.php | 1.0.0 |
| include/themes/sunrise/global_session.php | 1.1.11 | 1.1.38 |
## top_header
This hooks enables you to output custom HTML on top the the graph view page, if
navigation tabs are not rendered. Allows you to override the rendering of the
top_header.php include.
| 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.
| file | introduced | retired |
| ----------------- | :--------- | :------ |
| lib/html_tree.php | 1.0.0 |
## tree_view_page_end
This hook allows you to add additional HTML at the bottom of the graph tree view
page, irrespective of the leaf selection.
| file | introduced | retired |
| ----------------- | :--------- | :------ |
| graph.php | 1.0.0 |
| lib/html_tree.php | 1.0.0 |
## ugroup_tabs
| file | introduced | retired |
| -------------------- | :--------- | :------ |
| user_group_admin.php | 1.0.0 |
## update_data_source_title_cache
This hook is called after the data source title cache is updated.
| file | introduced | retired |
| ----------------- | :--------- | :------ |
| lib/variables.php | 1.0.0 |
## user_admin_action
This hook is part of a series of hooks that allow you to add custom user
settings. Consider a plug-in called "abc". In that plug-in, you want to save
custom settings on a per user basis. Therefore, following our unpublished ?
table naming standards, you would create a table called "abc_settings". When you
tab over to the "abc" plug-in, you are provided an "abc settings" on the right
similar to "Graphs". The next series of hooks allow you to present those
settings to the user, enable or disable the users access to that specific "abc
settings" tab and allow an administrator to define customer values for that
plug-in on a per user basis.
| file | introduced | retired |
| -------------- | :--------- | :------ |
| user_admin.php | 1.0.0 |
## user_admin_edit
See the explanation on `user_admin_action`
| file | introduced | retired |
| -------------- | :--------- | :------ |
| user_admin.php | 1.0.0 |
## user_admin_run_action
See the explanation on `user_admin_action`
| file | introduced | retired |
| -------------- | :--------- | :------ |
| user_admin.php | 1.0.0 |
## user_admin_setup_sql_save
See the explanation on `user_admin_action`
| file | introduced | retired |
| -------------- | :--------- | :------ |
| user_admin.php | 1.0.0 |
## user_admin_tab
See the explanation on `user_admin_action`
| file | introduced | retired |
| -------------- | :--------- | :---------- |
| user_admin.php | 0.8.7i |
| utilities.php | 1.0.0 | 1.2.0-beta3 |
## user_admin_user_save
See the explanation on `user_admin_action`
| file | introduced | retired |
| -------------- | :--------- | :------ |
| user_admin.php | 1.0.0 |
## user_group_admin_action
Similar to `user_admin_action`
| file | introduced | retired |
| -------------------- | :--------- | :------ |
| user_group_admin.php | 1.0.0 |
## user_group_admin_edit
See the explanation on `user_admin_action`
| file | introduced | retired |
| -------------------- | :--------- | :------ |
| user_group_admin.php | 1.0.0 |
## user_group_admin_save
See the explanation on `user_admin_action`
| file | introduced | retired |
| -------------------- | :--------- | :------ |
| user_group_admin.php | 1.0.0 |
## user_group_admin_action
| file | introduced | retired |
| -------------------- | :--------- | :------ |
| user_group_admin.php | 1.0.0 |
## user_group_admin_edit
| file | introduced | retired |
| -------------------- | :--------- | :------ |
| user_group_admin.php | 1.0.0 |
## user_group_admin_save
| file | introduced | retired |
| -------------------- | :--------- | :------ |
| user_group_admin.php | 1.0.0 |
## user_group_admin_setup_sql_save
| file | introduced | retired |
| -------------------- | :--------- | :------ |
| user_group_admin.php | 1.0.0 |
## user_remove
Allows the plugin to take part in the user removal process. Important when the
plugin maintains user settings.
| file | introduced | retired |
| -------------- | :--------- | :------ |
| lib/auth.php | 1.0.0 |
| user_admin.php | 1.0.0 |
## utilities_action
This hook set's up the function to be executed from within Cacti's utilities
section.
| file | introduced | retired |
| ------------- | :--------- | :------ |
| utilities.php | 1.0.0 |
## utilities_array
| file | introduced | retired |
| ------------- | :--------- | :------ |
| utilities.php | 1.0.4 |
## utilities_list
This hook allows you to add a custom utilities pick under Cacti's "Utilities"
page.
| file | introduced | retired |
| ------------- | :--------- | :------ |
| utilities.php | 1.0.0 |
## utilities_tab
This hook allows you to add a custom utilities tab under Cacti's "Utilities"
page.
| 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.
| file | introduced | retired |
| ----------------------- | :--------- | :------ |
| include/global_form.php | 1.0.0 |
---
Copyright (c) 2004-2024 The Cacti Group
|