diff --git a/Aggregate-Templates.md b/Aggregate-Templates.md index 11e77ce..f1ed3c1 100644 --- a/Aggregate-Templates.md +++ b/Aggregate-Templates.md @@ -15,7 +15,7 @@ then select `Create Aggregate from Template` from the Cacti Actions drop-down. Once you have created your **Aggregate Graphs**, they behave like any other Cacti Graph. They can be a part of a Tree, zoomed, etc. They have an added -bonus - you can add and remove **Graphs** from aggregate in a very controlled +bonus - you can add and remove **Graphs** from aggregates in a very controlled way, reducing the effort to maintain them during their life-cycle. If you wish to change settings for **Graphs** managed by the **Aggregate @@ -26,13 +26,13 @@ settings. See [Aggregate Graphs](Aggregates.md) for membership and propagation. ## Aggregate Template Interface -The images below shows an Aggregate Template for Traffic. +The images below show an Aggregate Template for Traffic. ![Aggregate Templates](images/aggregate-templates.png) When you edit the **Aggregate Template**, you are presented with an interface -that allows you to define the Graph Canvas as well as it's formatting. You -should experiment until you find the mechanism that works best to suite your +that allows you to define the Graph Canvas as well as its formatting. You +should experiment until you find the mechanism that works best to suit your needs. The `Aggregate Template` `Prefix` setting allows you to provide a pattern to be @@ -41,7 +41,7 @@ references can be used in the `Prefix` section in order to uniquely identify the **Graph Item**. There are several `Graph Type` transformations that deal with how `AREA`, -`LINEX` and `STACK` items are handled in the resulting **Aggeregate Graph**, +`LINEX` and `STACK` items are handled in the resulting **Aggregate Graph**, they include: - **Keep Graph Types** - No transformation will occur. All `AREA`, `LINE`, and @@ -128,7 +128,7 @@ options here, only let you know that you can override them in your resulting ## Summary There are several combinations of options that you can use when working with an -**Aggregate Template**. Some of these options will results in horrible and +**Aggregate Template**. Some of these options will result in horrible and unexpected outcomes, so you will have to experiment until you come up with a desirable **Aggregate Template**. diff --git a/Automation-Networks.md b/Automation-Networks.md index 62ee0bc..ea183f2 100644 --- a/Automation-Networks.md +++ b/Automation-Networks.md @@ -16,7 +16,7 @@ Other important options are | Option | Description | | -------------------------- | ------------------------------------------------------------------------------------------ | | Schedule Type | How often you want to scan this subnet for devices | -| Discovery Threads | How many proccessess to spawn during the scan | +| Discovery Threads | How many processes to spawn during the scan | | Run Limit | to prevent the scan from running indefinitely | | Automatically Add to Cacti | If a device is SNMP reachable and matches a rule from this subnet the device will be added | | Enable NetBIOS | Attempt to resolve the hostname by netbios | @@ -26,13 +26,13 @@ save. ![Automation Networks Edit General](images/automation-networks-edit1.png) -Ensure that if you have a SNMP rule for this part of the network to select the -SNMP option set this will tie the network to the SNMP rules +Ensure that if you have an SNMP rule for this part of the network, you select +the SNMP option set. This will tie the network to the SNMP rules. ![Automation Networks Edit General](images/automation-reachability-settings.png) -To begin the scanner click on the bottom right drop down and select "Discover -Now" this will start the discovery +To begin the scan, click on the bottom right drop down and select "Discover +Now". This will start the discovery. ![Automation Networks](images/automation-networks.png) diff --git a/Boost.md b/Boost.md index b2c13c9..bfbf9cd 100644 --- a/Boost.md +++ b/Boost.md @@ -2,11 +2,11 @@ ## Summary -Cacti Performance Settings, formally known as `boost` are available to support +Cacti Performance Settings, formerly known as `boost` are available to support very large Cacti installations, and are required for supporting the multiple **Data Collector** architecture that Cacti affords. -Designed years ago, Boosts intent was to reduce the the main data collectors +Designed years ago, Boost's intent was to reduce the main data collector's cycle time by caching writes to disk, and those writes would be handled by an out of band process currently known as `poller_boost.php`. @@ -15,7 +15,7 @@ there was previously no way to write all that data every 5 minutes. So, the buffering helped with maintaining a consistent run-time, and minimizing the user experience disruption from all that blocking Disk I/O. -In the modern Data Center, where we find an abundance of NVMe, Flash, and SSD's, +In the modern Data Center, where we find an abundance of NVMe, Flash, and SSDs, the impact of all that I/O has been reduced. However, Boost now serves as a way to extend the life of your Flash media and therefore increase the availability of your Cacti server over its lifetime. @@ -24,7 +24,7 @@ The Boost function in Cacti has several features that can be enabled or disabled on demand by the Cacti Administrator. They include: - **On Demand RRD Updates** - Required in ALL multiple **Data Collector** - installs and control the mass update of RRDfiles through periodic dumping of + installs and controls the mass update of RRDfiles through periodic dumping of Cacti's Boost cache. - **Image Caching** - caches PNG and SVG representations of the Cacti **Graphs** to reduce the overall CPU utilization of the Cacti server infrastructure. @@ -33,7 +33,7 @@ on demand by the Cacti Administrator. They include: In its initial design the Boost process leveraged MySQL Memory Tables to increase overall performance, and to reduce writing data to disk. This is still -a valid case however, with improvements in InnoDB performance over the years +a valid case; however, with improvements in InnoDB performance over the years combined with Flash storage, the need for using MySQL Memory Tables has diminished. In some cases, for example when using MariaDB Galera, or MySQL Master/Slave replication, it can not be used. @@ -60,8 +60,8 @@ important. That will be explained in more detail later on in this chapter. ## Checking how your system is configured -To see how your system is configured, you can goto -`Console > Utilityes > System Utilities > View Boost Status` option, when you go +To see how your system is configured, you can go to +`Console > Utilities > System Utilities > View Boost Status` option, when you go there, you will see an image similar to that below. ![Boost Status Screen](images/boost-status1.png) @@ -79,7 +79,7 @@ Additionally, you can tell - The average 'Bytes/Record' is 62 - We have unlimited Records that can be stored there -From that Data, we know if we were to use a Memory Table, at present it's width +From that Data, we know if we were to use a Memory Table, at present its width could be say 100 Bytes and we could cut memory use by 80%. We can also estimate from this interface, how large our `max_heap_table_size` @@ -103,10 +103,10 @@ image below, you can setup Boost. ![Boost Settings Screen](images/boost-settings.png) -As an exercise, lets look at a fictitious setup and determine what the -`max_heap_table_size` should be. Let's say, for example, that your Cacti systems -**Poller Cache** contains 200k rows, and the maximum length of any rows output -is 20 bytes, about the size of a 64bit counter value. +As an exercise, let's look at a fictitious setup and determine what the +`max_heap_table_size` should be. Let's say, for example, that your Cacti +system's **Poller Cache** contains 200k rows, and the maximum length of any +row's output is 20 bytes, about the size of a 64bit counter value. If you are running scripts, ones that return very long results, like the MySQL statistics plugin, you should consider carefully the next step. @@ -119,7 +119,7 @@ column, even though the column type is `varchar()`. By default it's `varchar(512)`. Therefore, if your system only needs 50 bytes, you will have 90% waste in your `poller_output_boost` table. -The next step would me to modify the structure of your `poller_output` and +The next step would be to modify the structure of your `poller_output` and `poller_output_boost` tables. You would do this by doing the following: ```sql @@ -132,7 +132,7 @@ ALTER TABLE poller_output_boost, ENGINE=memory; ``` -As previously mentioned, its also important that the `poller_output` table uses +As previously mentioned, it's also important that the `poller_output` table uses the memory engine, which is how Cacti creates it by default, to eliminate any disk I/O related to poller updates. @@ -140,7 +140,7 @@ Now, you need to determine how many polling cycles will fit into your `poller_output_boost` table. In this case, when sizing the `poller_output_boost` table, you take the output column width and add 34 bytes per record. So, in this case, each data source result to be stored in the `poller_output_boost` table -would take 84bytes. +would take 84 bytes. Then, with the Maximum Heap Table size in hand, and let's say the default is 16MBytes for the largest table (the MySQL default), you can calculate the number @@ -179,9 +179,9 @@ Then, save the file, and restart MySQL. Once this is done, you are ready to ## Flushing the Boost Cache -If you are planning on system maintenance if you are using MEMORY storage in +If you are planning on system maintenance, and you are using MEMORY storage in MySQL or MariaDB, you should flush your Boost Cache before your system is taken -offline for maintenance. To do this, you simply login to the Cacti system as +offline for maintenance. To do this, you simply log in to the Cacti system as root, and flush the Cache using the commands below ```console @@ -193,7 +193,7 @@ This operation will take several minutes to complete, at which time there will be additional records in the `poller_output_boost` table. So, it might be better that after the `poller_boost.php` process is complete, to modify the `poller_output_boost` table to InnoDB before reboot, and then convert it back to -memory after they system maintenance is complete. +memory after the system maintenance is complete. --- diff --git a/CDEFs.md b/CDEFs.md index 43bef85..87c8aa2 100644 --- a/CDEFs.md +++ b/CDEFs.md @@ -3,7 +3,7 @@ ## Background CDEF's in Cacti are a one to one analog to CDEF's in RRDtool. Cacti -simply provides and interface to create and manage them. Once the +simply provides an interface to create and manage them. Once the CDEF's are created in Cacti they can be imported and exported globally. CDEF's are mathematical formulas that either modify the numeric data from @@ -38,15 +38,15 @@ like the CURRENT_DATA_SOURCE which means that when you Add a **Graph Item** to either a **Graph Template** or **Graph**, you can select a CDEF. The **Data Source** associated with that **Graph Items** is the CURRENT_DATA_SOURCE. -After that, you may see a numeric number, followed by a math operator. That the -simplest form of a CDEF. If you have drag & drop enabled, you can re-order the +After that, you may see a numeric number, followed by a math operator. That is +the simplest form of a CDEF. If you have drag & drop enabled, you can re-order the CDEF items using drag & drop. Otherwise you will see arrows that allow you to move the CDEF Items up and down. ![CDEFs Edit](images/cdefs-edit1.png) When editing a CDEF, the first decision is what Type of Data you want to put on -the Stack, you options as shown in the image below. They include: +the Stack, your options as shown in the image below. They include: Name | Description --- | --- @@ -90,8 +90,8 @@ RRDtool for performing Graphical manipulation of Data. This list of CDEF functions is long and it's best to refer directly to the [RRDtool Manual](https://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html) for meanings -and examples of their use. Cacti supports all of them, if you find one that is not -supported, open an [Issue on Github](https://github.com/Cacti/cacti/issues). +and examples of their use. Cacti supports all of them; if you find one that is not +supported, open an [Issue on GitHub](https://github.com/Cacti/cacti/issues). --- Copyright (c) 2004-2026 The Cacti Group diff --git a/Cacti-Log.md b/Cacti-Log.md index 7b96535..a205bb7 100644 --- a/Cacti-Log.md +++ b/Cacti-Log.md @@ -15,7 +15,7 @@ Output or Standard Error log. If you have the Administrative level access, you may additionally purge information from the logs. As a Cacti Administrator, you have the ability to filter out some message types -from users for example, one message type that people like to filter out is +from users, for example, one message type that people like to filter out is "AUTH" messages that tell you who is logging into the Cacti Web Site. You can edit these removal rules from the Cacti Settings page. @@ -30,13 +30,13 @@ WARNINGS are yellow, and ERRORS are red. But there are other types of messages that highlight differently. Generally, you can filter for these message types. The filters include: -- **File** - The Cacti Log file to view. They are suffixed by a data when they were rotated +- **File** - The Cacti Log file to view. They are suffixed by a date when they were rotated using the following pattern: YYYY-MM-DD. - **Tail Lines** - The number of lines to view from the selected Cacti Log. - **Types** - The message types to view. These will be explained below. - **Display** - The order to display the Log lines, either *Newest First* or *Oldest First*. - **Refresh** - How often to Auto-refresh the interface. -- **Search** - A perl compatible Regular Expression to search the log with. +- **Search** - A Perl compatible Regular Expression to search the log with. A second drop-down selects whether to show lines that `Matches` or `Does Not Match` the expression. @@ -52,22 +52,22 @@ The Cacti Log **Types** include the following: - **Errors++** - Anything of each **ERROR**, **DEBUG**, and **SQL** - **Debug** - Anything that includes the word **DEBUG** - **SQL Calls** - Anything that includes the word **SQL** -- **AutoM8** - Anything that includes the word **AUTOM8**. These message come from +- **AutoM8** - Anything that includes the word **AUTOM8**. These messages come from Cacti automation of Devices, Graphs, and Trees - **Non Stats** - Anything that does not include the word **STATS**. - **Boost** - Anything that contains the word **BOOST**. -- **Device Up/Down** - Any device Up/Down notification including t - hose that come from *Thold* or *Monitor* Plugins. +- **Device Up/Down** - Any device Up/Down notification including + those that come from *Thold* or *Monitor* Plugins. - **Recaches** - Any Device Recache Events. -- **Threshold** - If the *Thold* plugins is installed, - any of it's threshold breach and restoration events. +- **Threshold** - If the *Thold* plugin is installed, + any of its threshold breach and restoration events. ## Differences between User and Administrative Views As previously mentioned, the Cacti log has two permission levels, the User Permission level will not include the *Purge* button, and can have some information hidden from public view -whereas the Administrative view includes all Log messages and a *Purge** button. +whereas the Administrative view includes all Log messages and a *Purge* button. --- Copyright (c) 2004-2026 The Cacti Group diff --git a/Cacti-SSL-Configuration.md b/Cacti-SSL-Configuration.md index de6a198..2863af3 100644 --- a/Cacti-SSL-Configuration.md +++ b/Cacti-SSL-Configuration.md @@ -1,7 +1,7 @@ # Configuring and enabling SSL for Cacti with a self signed certificate Enabling SSL for Cacti is mostly done at the webserver level. An example SSL -config for Http is as follows: +config for HTTP is as follows: ```bash yum install -y mod_ssl -y @@ -29,7 +29,7 @@ systemctl restart httpd ``` After configuring the web server to accept https, you can enable https in the -GUI +GUI. --- diff --git a/Colors.md b/Colors.md index 0ae90e7..df2e723 100644 --- a/Colors.md +++ b/Colors.md @@ -1,12 +1,12 @@ # Colors -Colors in Cacti come in two types and used to maintain a list of colors that can -be used in Cacti for **Graph Templates** and **Graphs**. +Colors in Cacti come in two types and are used to maintain a list of colors that +can be used in Cacti for **Graph Templates** and **Graphs**. The first type are the legacy Cacti colors imported from earlier versions of Cacti. Starting with Cacti 1.0, Cacti started to support the concept of *Named Colors* which come from a well known dictionary of well defined colors. *Named -Colors* are read only in Cacti. While the legacy Cacti colors can be named as +Colors* are read only in Cacti, while the legacy Cacti colors can be named as the Cacti administrator desires. The image below shows a list of Cacti *Named Colors*. You can see that there is @@ -26,7 +26,7 @@ Color hex value. Below, you can see the color picker that allows you to visually find the appealing color. You can also use hex values that were previously supported in -earlier Cacti version. +earlier Cacti versions. ![Colors Color Edit](images/colors-edit2.png) diff --git a/Command-Line-Scripts.md b/Command-Line-Scripts.md index 5a35bc8..f565c8d 100644 --- a/Command-Line-Scripts.md +++ b/Command-Line-Scripts.md @@ -1,7 +1,7 @@ # Command Line Scripts (CLI) Cacti supports a number of command line scripts. You will find them in the -`./cli` directory. The CLI scripts fall into multiple categories, they include: +`./cli` directory. The CLI scripts fall into multiple categories; they include: - **Automation** - Utilities to help automate adding objects to Cacti - **Maintenance** - Utilities to help keep Cacti healthy @@ -10,7 +10,7 @@ Cacti supports a number of command line scripts. You will find them in the components - **Install/Upgrade** - Utilities to help with installing and upgrading Cacti -In the table below, each of the CLI scripts are categories and explained +In the table below, each of the CLI scripts is categorized and explained briefly. ## Automation Scripts @@ -23,17 +23,17 @@ briefly. | add_graph_template.php | Automation | Allows adding a Graph Template to Cacti. | | add_graphs.php | Automation | Allows adding a Graph to Cacti. | | add_perms.php | Automation | Allows adding permissions to Cacti. | -| add_tree.php | Automation | Allows adding tree's tree branches and objects to Cacti Trees. | +| add_tree.php | Automation | Allows adding trees, tree branches and objects to Cacti Trees. | | apply_automation_rules.php | Automation | Executes Cacti automation rules for devices selected by id, hostname or description. | | remove_device.php | Automation | Allows removing Devices selected by id, IP address or description. | | plugin_manage.php | Automation | Allows installing, enabling, disabling and uninstalling plugins. | -| copy_user.php | Maintenance | Allows creating new users from Templates | +| copy_user.php | Automation | Allows creating new users from Templates | ## Maintenance Scripts | Script | Category | Description | | ------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| input_whitelist.php | Maintenance | To to onboard new Data Input Methods when using Cacti in a high security environment where new Data Input Methods must always be vetted before enabling for general use. | +| input_whitelist.php | Maintenance | To onboard new Data Input Methods when using Cacti in a high security environment where new Data Input Methods must always be vetted before enabling for general use. | | poller_graphs_reapply_names.php | Maintenance | Allows selecting re-running of Cacti's suggested values engine for Graphs | | poller_reindex_hosts.php | Maintenance | Batch method to re-index Cacti Devices | | analyze_database.php | Maintenance | Analyzes all Cacti tables rebuilding their index cardinality. Important to run after having added large numbers of Devices and Graphs to Cacti. | @@ -57,7 +57,7 @@ briefly. | audit_graph_template_inputs.php | Repair | Reports Graph Template input integrity findings without changing the database. | | push_out_hosts.php | Repair | Deprecated. Use `rebuild_poller_cache.php`. | | rebuild_poller_cache.php | Repair | Batch process to re-populate Cacti's poller cache. NOTE: This script can run for a very long time on large systems. | -| repair_database.php | Repair | Utility to look for common problems with old Cacti databases where objects were removed while still in use. Also rapairs all tables after a system crash. | +| repair_database.php | Repair | Utility to look for common problems with old Cacti databases where objects were removed while still in use. Also repairs all tables after a system crash. | | repair_graphs.php | Repair | Utility to repair Cacti Graphs whose structure is damaged due to legacy Cacti behavior. | | repair_templates.php | Repair | Utility to repair Cacti Templates whose structure was damaged due to legacy Cacti behavior. | @@ -65,10 +65,10 @@ briefly. | Script | Category | Description | | ------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| audit_database.php | Repair/Migration | Script to audit your Cacti schema, and repair any tables that don't match the stock Cacti schema. It will also upgrade the Cacti schema and run plugin upgrade functions. This is a good migration tool to move database from old versions of Cacti. | +| audit_database.php | Repair/Migration | Script to audit your Cacti schema, and repair any tables that don't match the stock Cacti schema. It will also upgrade the Cacti schema and run plugin upgrade functions. This is a good migration tool to move databases from old versions of Cacti. | | convert_tables.php | Repair/Migration | Convert all tables from their current form to the Cacti preferred table type, collation and charset | | fix_mediumint.php | Repair/Migration | Increases the size of key Cacti columns for systems with over a million Graphs that have been in service for years. | -| splice_rrd.php | Migration | Utility that allows two RRDfiles to be merged, and also assists with resampling an old RRDfile to a new RRA configuration, for example moving a Cacti system from 5 minute polling to 1 minute polling. | +| splice_rrd.php | Repair/Migration | Utility that allows two RRDfiles to be merged, and also assists with resampling an old RRDfile to a new RRA configuration, for example moving a Cacti system from 5 minute polling to 1 minute polling. | ## Install/Upgrade Scripts @@ -79,11 +79,11 @@ briefly. | install_cacti.php | Install/Upgrade | Script to install Cacti from a raw schema. Used primarily by distribution maintainers. | | md5sum.php | Install/Upgrade | Utility to verify the MD5SUM of a file. | | sqltable_to_php.php | Install/Upgrade | Utility for Plugin Developers to create an object for creating tables in plugins. | -| structure_rra_paths.php | Install/Upgrade | Utility to convert a system from a flat directory path to a heirarchial one. Important for certain file systems that don't perform well when there are tens or hundreds of thousands of files in a single directory. | +| structure_rra_paths.php | Install/Upgrade | Utility to convert a system from a flat directory path to a hierarchical one. Important for certain file systems that don't perform well when there are tens or hundreds of thousands of files in a single directory. | | upgrade_database.php | Install/Upgrade | Utility to upgrade a Cacti database from a point in time to the current release. Or even rerun the database upgrade from a point in the past to catch up with changes. This script should be used in conjunction with the `audit_database.php --repair --upgrade` option. | > **NOTE**: Package maintainers may wish to utilize the CLI methods of -> install_cacti.php and upgrade_database.php to perform in place installations +> install_cacti.php and upgrade_database.php to perform in-place installations > and upgrades. In the sub-sections below, we will demonstrate the use of a few of these CLI @@ -91,12 +91,12 @@ scripts. > **Caution**: In the following examples, several numbers are shown as output > from various scripts. They will vary between different installations. So don't -> bother, if your numbers will vary. +> bother if your numbers will vary. ## Rebuild Poller Cache -The poller cache holds all commands that cacti will issue during the polling -process in an internal format. It is possible, to review the current contents of +The poller cache holds all commands that Cacti will issue during the polling +process in an internal format. It is possible to review the current contents of the poller cache by visiting `System Utilities`, `View Poller Cache`. It is possible to apply filters to this view; it will show up like @@ -117,10 +117,10 @@ Localhost - mtaReceivedVolume SNMP Version: 1, Community: somesecret, OID: .1. RRD: /var/www/html/cacti/rra/localhost_mtareceivedvolume_49.rrd ``` -There are several circumstances, that may result in the poller cache being out +There are several circumstances that may result in the poller cache being out of sync. An example would be a change of the name of a script used in a `Data Input Method`. This change is _not_ automatically propagated to the poller -cache. It is required, to run `php -q rebuild_poller_cache.php` manually. +cache. It is required to run `php -q rebuild_poller_cache.php` manually. Calling the script with the parameter `--help` yields @@ -147,7 +147,7 @@ System Controlled: ``` -Debug mode lists the data sources items that are worked upon. +Debug mode lists the data source items that are worked upon. ```console shell>php -q rebuild_poller_cache.php -d @@ -172,11 +172,11 @@ shell> > **Caution** > > Rebuilding the poller cache interferes with the poller operation. Make sure -> that the poller is not running and will not start during a rebuild operation +> that the poller is not running and will not start during a rebuild operation. ## Re-Index Hosts -Re-Indexing is required only for SNMP/Script Data Queries. Remember, that when +Re-Indexing is required only for SNMP/Script Data Queries. Remember that when applying a Data Query to a Host, a `Re-Index Method` has to be chosen. This reindex method governs the automatic re-indexing based on specific events. @@ -186,22 +186,23 @@ reindex method governs the automatic re-indexing based on specific events. | --------------------- | ------------------------------------------------------------------ | | Uptime Goes Backwards | Refers to a system reboot | | Index Count Changed | Refers to a change of the number of indexed items | -| Verify All Fields | All index fields of the according XML file are checked for changes | +| Verify All Fields | All index fields of the corresponding XML file are checked for changes | If the method is set to `Uptime Goes Backwards`, Cacti will detect if the target has been rebooted by querying sysUptime (.1.3.6.1.2.1.1.3.0). If the current value for the uptime is lower than the previous one (uptime goes backwards), a -reboot is assumed and a re-index is performed +reboot is assumed and a re-index is performed. -If the method is set to `Index Count Change`, e.g. the number of interfaces, -without checking sysUptime. It is of particular interest in cases, where indexed +If the method is set to `Index Count Changed`, Cacti checks the number of +indexed items, e.g. the number of interfaces, without checking sysUptime. It +is of particular interest in cases where indexed entries may change without the need of a reboot. As modern operating systems seldom require reboots for system configuration changes, you may want to -consider this setting for many cases (e.g. creating of a new filesystem without -a reboot). The index to be considered is defined by the according XML file. +consider this setting for many cases (e.g. creating a new filesystem without +a reboot). The index to be considered is defined by the corresponding XML file. If the method is set to `Verify All Fields`, all indexes of the data source are -checked for changes. This is of particular interest e.g. in cases, where the +checked for changes. This is of particular interest e.g. in cases where the index is non-numeric (e.g. a MAC address). It should be noted that in the 1.0 and 1.1 releases, this method was found to be broken and has been corrected since 1.2. @@ -255,7 +256,7 @@ DEBUG: Data query number '3' host: '15' SNMP Query Id: '1' starting DEBUG: Data query number '3' host: '15' SNMP Query Id: '1' ending ``` -It is possible, to select a host based on its host description using +It is possible to select a host based on its host description using `--host-descr=[host description]`. It is allowed to apply an SQL filter expression for the description like `--host-descr=some%descr`. Use this parameter in conjunction with either `--id=[host id]` or `--qid=[data query id]` or both: @@ -271,18 +272,18 @@ DEBUG: Data query number '1' host: '2' SNMP Query Id: '1' ending > **Caution** > > Re-Indexing interferes with the poller operation. Make sure that the poller is -> not running and will not start during a reindex operation +> not running and will not start during a reindex operation. ## Empty Poller Output Table During normal poller operation, all retrieved results are intermediately stored -in the table named poller_output After execution of cmd.php or Spine, this table -holds all results. The poller.php finally issues all rrdtool update operations. -Thus, after polling has completed, the table should be empty. +in the table named poller_output. After execution of cmd.php or Spine, this +table holds all results. The poller.php finally issues all rrdtool update +operations. Thus, after polling has completed, the table should be empty. -Conditions may arise, where the table is not (completely) emptied. The most -often known issue is lack of php memory. In those cases, the table is bigger -than the php memory size, thus not all items are handled correctly. If that +Conditions may arise where the table is not (completely) emptied. The most +often known issue is lack of PHP memory. In those cases, the table is bigger +than the PHP memory size, thus not all items are handled correctly. If that issue occurs, you may save all pending updates _after increasing PHP memory appropriately_ by running this very script. Calling the script with the parameter `--help` yields @@ -306,7 +307,7 @@ There were 0, RRD updates made this pass shell> ``` -In case, you hit the poller process or if the table was really not fully +In case you hit the poller process or if the table was really not fully processed, you may find ```console @@ -336,14 +337,15 @@ There were 21, RRD updates made this pass shell> ``` -If logging level verbosity was switched to `DEBUG` you may find additional debug -messages that usually show up in `cacti.log` +If logging level verbosity was switched to `DEBUG`, you may find additional +debug messages that usually show up in `cacti.log`. ## Reapply Suggested Names to Graphs For a general understanding of suggested names used with data queries, please -see ?. Be aware, that changes to the `Suggested Names` section of a data query -will not automatically be propagated to all existing graphs. This is, where +see [Data Queries](Data-Queries.md#associated-graph-templates). Be aware that +changes to the `Suggested Names` section of a data query +will not automatically be propagated to all existing graphs. This is where poller_graphs_reapply_names.php drops in. Calling the script with the parameter `--help` yields @@ -365,7 +367,7 @@ Optional: ``` -Assume a situation, where the suggested names where changed for the standard +Assume a situation where the suggested names were changed for the standard data query named `SNMP - Get Mounted Partitions`. In this case, you will want to rework all graphs for this data query only. A verbose run will yield @@ -387,13 +389,13 @@ DEBUG: Graph Name 'Localhost - Used Space - /boot' starting DEBUG: Graph Rename Done for Graph 'Localhost - Used Space - /boot' ``` -Notice the miss-spelling of the word “Space”. The `--filter` option (also +Notice the misspelling of the word “Space”. The `--filter` option (also accepted as `-s`) is not case sensitive. ## Copy Local Cacti Users For use and understanding the limitation of this script, it is of importance to -read [User Management](User-Management.md) +read [User Management](User-Management.md). Calling the script with the parameter `--help` yields @@ -419,7 +421,7 @@ Copying User... User copied... ``` -Find the results of this program call at User Management +Find the results of this program call at User Management. | User Name\*\* | Full Name | Enabled | Realm | Default Graph Policy | Last Login | | ------------- | ------------- | ------- | ----- | -------------------- | --------------------------------- | @@ -430,7 +432,7 @@ Find the results of this program call at User Management ## Add a New Device While it is an easy task to add a new device from the panels, this would be a -tedious task for creating dozens of hundreds of devices in one turn. This is, +tedious task for creating dozens or hundreds of devices in one turn. This is where the script `add_device.php` comes in. First, let's have a look at the whole list of features it provides. Calling the script with the parameter `--help` yields @@ -486,8 +488,8 @@ List Options: --quiet - batch mode value return ``` -Wow, that's quite a lot of options. To better understand it's use, let's first -stick to the listing options +Wow, that's quite a lot of options. To better understand its use, let's first +stick to the listing options. ### List all Host Templates @@ -521,13 +523,13 @@ Known communities are: (community) snmp-get ``` -Of course, your list will vary +Of course, your list will vary. ### Create a New Device Now, let's set up the most basic command to add a new device. The description shall be `"Device Add Test"`, the ip will be given as a FQDN, -`router.mydomain.com`. As a SNMP enabled device, surely a community string has +`router.mydomain.com`. As an SNMP-enabled device, surely a community string has to be provided; in this case given as `public`. In total, this makes the following command @@ -551,13 +553,13 @@ next steps. ## Associate a Data Query to an existing Host It is recommended to maintain data query associations by maintaining host -templates. Each time, a data query is added to a host template, it will +templates. Each time a data query is added to a host template, it will be automatically associated with all hosts related to that very host template. The data query will be executed as well; this way the snmp cache will be filled with all values related to that query. Nevertheless, it is sometimes suitable to manually associate a certain data -query with a single host only without changing any host template. This is, where +query with a single host only without changing any host template. This is where the script `add_data_query.php` comes in. First, let's have a look at the whole list of features it provides. Calling the script with the parameter `--help` yields @@ -630,11 +632,11 @@ find non-zero values for the data query status column, e.g. _Success [41 Items, ## Associate a Graph Template to an existing Host It is recommended to maintain graph template associations by maintaining host -templates. Each time, a graph template is added to a host template, it will +templates. Each time a graph template is added to a host template, it will be automatically associated with all hosts related to that very host template. Nevertheless, it is sometimes suitable to manually associate a certain graph -template with a single host only without changing any host template. This is, +template with a single host only without changing any host template. This is where the script `add_graph_template.php` comes in. First, let's have a look at the whole list of features it provides. Calling the script with the parameter `--help` yields @@ -698,9 +700,9 @@ Success: Graph Template associated for host: (11: router) - graph-template: (7: ## Add a New Graph -You won't stop now as you've just created a device from cli. Surely, the task of -setting up graphs is the next step. This is done using `add_graphs.php`. Calling -the script with the parameter `--help` yields +You won't stop now as you've just created a device from the CLI. Surely, the +task of setting up graphs is the next step. This is done using `add_graphs.php`. +Calling the script with the parameter `--help` yields ```console shell>php -q add_graphs.php @@ -757,7 +759,7 @@ ones: > **Caution** > -> When running this cli script, caution must be taken to avoid typos. Sometimes, +> When running this CLI script, caution must be taken to avoid typos. Sometimes, > list options take an ending “s”, where the option for graph creation comes > without “s”. Error messages are not issued to indicate this typo; instead you > will see the general help screen. @@ -814,7 +816,7 @@ Known Graph Templates:(id, name) ### List Options for Associated Data Queries -First task is to find all id's for available data queries. +First task is to find all ids for available data queries. ```console shell>php -q add_graphs.php --host-id=2 --list-snmp-queries @@ -891,7 +893,7 @@ graph are determined. ### Add Non-Indexed Graphs We will create a graph for `ucd/net - CPU Usage`. Above, we've identified the -graph template it to be `4`. In total, that makes up for the following command +graph template id to be `4`. In total, that makes up for the following command ```console shell>php -q add_graphs.php --host-id=11 --graph-type=cg --graph-template-id=4 @@ -910,7 +912,7 @@ to the list of Associated Graph Templates. ### Add Indexed Graphs -First, let's sum up the id's of all resources required for this task: +First, let's sum up the ids of all resources required for this task: ###### Table 20-2. Parameters required for an Interface Traffic Graph @@ -944,11 +946,11 @@ different Re-Index Method by entering the optional parameter `--reindex-method`. ## Add Items to a Tree -Now, that we've created some nice graphs, they should be put the graph trees. -This is done using `add_tree.php`. As you will notice soon, it is possible to -even add header items, hosts and graphs to a tree as well as adding a new tree -itself. But let us first see the help output. Calling the script with the -parameter `--help` yields +Now that we've created some nice graphs, they should be put into the graph +trees. This is done using `add_tree.php`. As you will notice soon, it is +possible to even add header items, hosts and graphs to a tree as well as adding +a new tree itself. But let us first see the help output. Calling the script with +the parameter `--help` yields ```console shell>php -q add_tree.php --help @@ -1017,7 +1019,7 @@ id sort method name ### List Nodes -Listing all existed node of a given tree is done by +Listing all existing nodes of a given tree is done by ```console shell>php -q add_tree.php --list-nodes --tree-id=1 @@ -1074,7 +1076,7 @@ as expected. ### Add a new Header Node to a Tree -Now, that a new tree has been created, you may want to add a new header to that +Now that a new tree has been created, you may want to add a new header to that very tree. Use ```console @@ -1119,9 +1121,9 @@ shell>php -q add_tree.php --type=node --node-type=host --tree-id=6 --parent-node Added Node node-id: (24) ``` -Both example come without a `--host-group-style` option. For those cases, -`Graph Template` host group style is default. Here's an example for providing a -host group option of `Data Query Index` instead +Both examples come without a `--host-group-style` option. For those cases, +`Graph Template` host group style is the default. Here's an example for +providing a host group option of `Data Query Index` instead ```console shell>php -q add_tree.php --type=node --node-type=host --tree-id=6 --parent-node=22 --host-id=1 --host-group-style=2 @@ -1223,7 +1225,7 @@ Known Graph Templates:(id, name) ### List Graphs for given Hosts where permissions can be set -To be able to add a permissions to a specific Graph, the id of that very graph +To be able to add permissions to a specific Graph, the id of that very graph is required. Thus, a `--list-graphs --host-id=[id]` option was implemented ```console @@ -1253,7 +1255,7 @@ will add graph permissions for a given host. This is done using the parameter shell>php -q add_perms.php --user-id=4 --item-type=host --item-id=1 ``` -`--user-id=4` must specify an existing users. Else, an error message will be +`--user-id=4` must specify an existing user. Else, an error message will be printed. As `--item-type=host` is given, `--item-id=1` must specify a valid host. Again, if no host with this specific id exists, an error message will be printed. No output is produced on successful operations. @@ -1265,7 +1267,7 @@ parameter `--item-type=tree` as follows shell>php -q add_perms.php --user-id=4 --item-type=tree --item-id=1 ``` -`--user-id=4` must specify an existing users. Else, an error message will be +`--user-id=4` must specify an existing user. Else, an error message will be printed. As `--item-type=tree` is given, `--item-id=1` must specify a valid tree (the Default Tree in this case). Again, if no tree with this specific id exists, an error message will be printed. No output is produced on successful @@ -1278,8 +1280,8 @@ Adding graph permissions for a given graph template is done using the parameter shell>php -q add_perms.php --user-id=4 --item-type=graph_template --item-id=25 ``` -`--user-id=4` must specify an existing users. Else, an error message will be -printed. As `--item-type=graph_template` is given, `--item-id=1` must specify a +`--user-id=4` must specify an existing user. Else, an error message will be +printed. As `--item-type=graph_template` is given, `--item-id=25` must specify a valid graph_template (the Interface - Traffic (bytes/sec) in this case). Again, if no graph template with this specific id exists, an error message will be printed. No output is produced on successful operations. @@ -1291,9 +1293,9 @@ parameter `--item-type=graph` as follows shell>php -q add_perms.php --user-id=4 --item-type=graph --item-id=8 ``` -`--user-id=4` must specify an existing users. Else, an error message will be -printed. As `--item-type=graph` is given, `--item-id=1` must specify a valid -graph. Again, if no graph template with this specific id exists, an error +`--user-id=4` must specify an existing user. Else, an error message will be +printed. As `--item-type=graph` is given, `--item-id=8` must specify a valid +graph. Again, if no graph with this specific id exists, an error message will be printed. No output is produced on successful operations. --- diff --git a/Contributing-Translations.md b/Contributing-Translations.md index ddd075c..cdca1a0 100644 --- a/Contributing-Translations.md +++ b/Contributing-Translations.md @@ -105,7 +105,7 @@ characters, on a test installation. The PO Editor will create both a PO and MO file every time you save the file. The final name of the file will have to be changed to Cacti's standard naming. For example, Poedit saves the file from the example above as `fr_FR.po`, but -Cacti will need these files name in hyphenated format, so: `fr_FR.po`, becomes +Cacti will need these file names in hyphenated format, so: `fr_FR.po`, becomes `fr-FR.po`. Make that note especially if you are starting a new language. ## Considerations diff --git a/Contributing.md b/Contributing.md index 5bee363..88242d2 100644 --- a/Contributing.md +++ b/Contributing.md @@ -7,8 +7,8 @@ how to create a pull request. Pull requests are how we accept submissions from the community for Code and Documentation. Pull requests are always created against the **develop** branch, unless -otherwise instructed. Detailed guide on how to create Pull Requests on GitHub -under [Standards-Patch-Creation](Standards-Patch-Creation.md) section. +otherwise instructed. A detailed guide on how to create Pull Requests on GitHub +is in the [Standards-Patch-Creation](Standards-Patch-Creation.md) section. ## Code Contributions @@ -37,7 +37,7 @@ You can view all the repositories of code that Cacti publicly shares on GitHub at this [link](https://github.com/Cacti), or to go specifically to the [Cacti source code](https://github.com/Cacti/cacti), [issue tracker](https://github.com/Cacti/cacti/issues), and [internal -Wiki](https://github.com/Cacti/cacti/wiki) +Wiki](https://github.com/Cacti/cacti/wiki). ## Documentation Contributions @@ -48,7 +48,7 @@ Request to it. Unlike the various standards for coding depending on the type of code you are attempting to contribute, there is only one set of [Documentation Standards](Standards-Documentation.md) at this time. Please try to ensure that -your code confirms to this, as there are strict checks in place which will fail +your code conforms to this, as there are strict checks in place which will fail your submission if it fails these standards. --- diff --git a/Data-Collectors.md b/Data-Collectors.md index bde785c..c37294f 100644 --- a/Data-Collectors.md +++ b/Data-Collectors.md @@ -3,7 +3,7 @@ ## Data Collector Background Cacti can support from one to many **Data Collectors**. There are two types -of **Data Collectors** they are: +of **Data Collectors**. They are: - **Main Data Collector** - This is essentially your core Cacti server and database. The **Main Data Collector** is also referred to as @@ -13,8 +13,8 @@ of **Data Collectors** they are: firewall or security policies. The **Remote Data Collectors** are also referred to as **Remote Pollers**. -Due to the design of the Cacti **Remote Data Collector**, somone at the -remote site, can actually login to that **Data Collector** and interact +Due to the design of the Cacti **Remote Data Collector**, someone at the +remote site can actually login to that **Data Collector** and interact with it as if their **Data Collector** was the **Main Data Collector**. Additionally, if for some reason the **Main Data Collector** becomes unavailable due to a WAN outage for example, the data for the **Devices** @@ -49,7 +49,7 @@ network access; there is no universal two-port firewall rule for a deployment. The image below shows the current online collector (aka pollers). On this page, we can see the current, average, and max data collection times, the **Data Collector** processes and threads used, the number of **Devices** as well -as what those **Devices** are polling. The Actions drop-down allows your to +as what those **Devices** are polling. The Actions drop-down allows you to Enable, Disable, and Delete **Remote Data Collectors**. There is also a `Full Sync` option there. The `Full Sync` option will replicate key Cacti tables to the selected **Remote Data Collectors** for things like authentication, @@ -67,7 +67,7 @@ serves as the master **Data Collector** performing key maintenance operations for the entire system. In the edit page below, you can see what options are available when editing the -**Main Data Collector**. It is important the the hostname used is resolvable +**Main Data Collector**. It is important that the hostname used is resolvable by the **Remote Data Collectors**. ![Data Collectors Edit Main](images/data-collectors-edit-main.png) diff --git a/Data-Debug.md b/Data-Debug.md index 9ea3130..313491c 100644 --- a/Data-Debug.md +++ b/Data-Debug.md @@ -1,14 +1,14 @@ # Data Source Debugging If you are having issues with blank graphs and have done the basic checks such -as permissions the Data source debug tool can help troubleshoot what +as permissions, the Data source debug tool can help troubleshoot what information is coming into Cacti. The debug tool will check the data source, graphs and permissions along incoming data and graph settings, such as step count, to ensure the definition matches the profile of the data source amongst other things. -The tool allows you to run a debug on one or many data source. To request debug +The tool allows you to run a debug on one or many data sources. To request debug information, tick all applicable data sources you require information on, then select 'Run Check' in the actions drop down list. This will put all of the selected data sources into debug mode. @@ -19,7 +19,7 @@ put it into debug mode. ![Data Source Debug](images/data-debug.png) You can see the status of each data source along with all of the checks run -against it. Successful checks show a green checkmark, whilst failed checks shows +against it. Successful checks show a green checkmark, whilst failed checks show a red X. Depending on the issue a recommendation will be provided for a failed check. @@ -33,16 +33,16 @@ for a single page view of the data source and graph details. ![Data Debug Test Details](images/data-debug4.png) -This page also shows what the last values where when last polled. This is also +This page also shows what the last values were when last polled. This is also useful for troubleshooting as if the data comes in out of range of your Data -Source template, or Graph template, this could point you into the right direction. +Source template, or Graph template, this could point you in the right direction. -If the Web Server has write access to Cacti's RRA folder, if the Data Debug finds -and issue that it knows how to correct. It will offer you a link to make that -correction. +If the Web Server has write access to Cacti's RRA folder and the Data Debug +finds an issue that it knows how to correct, it will offer you a link to make +that correction. > **NOTE**: Devices that are down for long periods of time will report as having errors -> since the RRDfiles associated with them will not be updated as expected for with an +> since the RRDfiles associated with them will not be updated as expected for an > available Device. --- diff --git a/Data-Input-Methods.md b/Data-Input-Methods.md index c5e7475..923dc5c 100644 --- a/Data-Input-Methods.md +++ b/Data-Input-Methods.md @@ -5,7 +5,7 @@ upon a mapping controlled by **Data Templates** and their corresponding **Data Sources**. These resulting **Data Templates** and **Data Sources** can then be used to create **Graph Templates** and **Graphs**. -Cacti includes a number of build in **Data Input Methods** for **SNMP** data and +Cacti includes a number of built-in **Data Input Methods** for **SNMP** data and for **Script**, **Script Server** and **SNMP Data Queries**. Outside of the built in **Data Input Methods**, the Cacti Administrator can @@ -13,7 +13,7 @@ create virtually any **Data Input Method** based upon a **Script**, or a PHP **Script Server** script. The **Script** based **Data Input Method** allows Cacti to virtually collect data from anywhere, though the built in **SNMP** and **Script Server** methods provide the greatest scalability in Cacti. Both -**Data Queries**, and PHP **Script Server** topics will be covered in later +**Data Queries** and PHP **Script Server** topics will be covered in later sections of the documentation. ## Creating a Data Input Method @@ -33,11 +33,12 @@ Input String | This field is only used when the Input Type is set to **Script/Co The `Name` specified will be used throughout Cacti to identify the human readable name given to the **Data Input Method**. Careful consideration should -be made to help uniquely identify the **Data Source**. Having very similar -names can lead to confusion when utilizing them as your Cacti system grows. +be made to help uniquely identify the **Data Input Method**. Having very +similar names can lead to confusion when utilizing them as your Cacti system +grows. -Valid options for `Input Type` are **Script/Command**, and **Script Server**. -As mentioned previously, Cacti provides built in **Data Input Methods** for SNMP +Valid options for `Input Type` are **Script/Command** and **Script Server**. +As mentioned previously, Cacti provides built-in **Data Input Methods** for SNMP data gathering and for SNMP, **Script**, and **Script Server** based **Data Queries**. Though present in the Cacti database, they are hidden from user view. @@ -59,7 +60,7 @@ Fields`. The `Input Fields` box is used to define any fields that require information from the user or from various data within the Cacti Database such as the -hostname, ip address, host id, etc. Any input fields referenced to in the input +hostname, ip address, host id, etc. Any input fields referenced in the input string must be defined here. The `Output Fields` box is used to define each field that you expect back from @@ -81,7 +82,7 @@ Name | Description Field/Field Name | You will be presented a drop down list of the unused braced input fields from the command Friendly Name | Enter a more descriptive name for this field Regular Expression Match (Input Only) | Enter a valid regular expression as to how to modify the output -Allow Empty Input (Input Only) | Can the input value of this field blank or not +Allow Empty Input (Input Only) | Can the input value of this field be blank or not Special Type Code (Input Only) | Pull the input data from the Cacti database and don't prompt the user for this input value Update RRDfile (Output Only) | Checked if you intend this output data to be stored in an RRDfile diff --git a/Data-Queries.md b/Data-Queries.md index d932c9c..2f3937a 100644 --- a/Data-Queries.md +++ b/Data-Queries.md @@ -5,7 +5,7 @@ Cacti **Data Queries** are not a replacement for **Data Input Methods** in Cacti. Instead they provide an easy way to extend Data Input methods to interpret multidimensional objects, or list data based upon an index, making the -data easier to graph. The most common use of a \*\*Data Query within Cacti is to +data easier to graph. The most common use of a **Data Query** within Cacti is to retrieve a list of network interfaces via SNMP. If you want to graph the traffic of a network interface, first Cacti must @@ -13,8 +13,8 @@ retrieve a list of interfaces on the host. Second, Cacti can use that information to create the necessary **Graphs** and **Data Sources**. **Data Queries** are only concerned with the first step of the process, that is obtaining a list of network interfaces and not creating the graphs/data sources -for them. While listing network interfaces is a common use for \*\*Data -Queries\*\*, they also have other uses such as listing partitions, processors, +for them. While listing network interfaces is a common use for **Data +Queries**, they also have other uses such as listing partitions, processors, or even cards in a router. One requirement for any **Data Query** in Cacti, is that it has some unique @@ -42,7 +42,7 @@ When you edit an existing Data Query, you will see an interface like the one below. In that interface, you will note that there is an XML file path included. The XML file is a key component of a Cacti **Data Query**. For Script based **Data Queries**, there will also be a script that must be called to gather -information about the **Data Query**, the script name is included in the XML +information about the **Data Query**; the script name is included in the XML file. ![Data Query Edit Interface](images/data-queries-edit1.png) @@ -52,13 +52,13 @@ Method**. In the section below that, you have the `Associated Graph Templates` section which includes all the various **Graph Templates** that can be used for the **Data Query**. -Once a **Data Query** **Graph Template** is in use, it can not longer be removed +Once a **Data Query** **Graph Template** is in use, it can no longer be removed from Cacti. This feature is there to prevent **Graphs** from becoming unrenderable if someone accidentally were to remove the **Graph Template** association. -When you click on any of the `Associated Graph Template` name, you will be taken -to the interface below. +When you click on any of the `Associated Graph Template` names, you will be +taken to the interface below. ![Data Query Associated Graph Template Edit Interface](images/data-queries-edit2.png) @@ -72,17 +72,17 @@ toggle on the checkbox to the right of the XML field Data Source name. Below the `Associated Data Templates`, you will find two sections which are referred to as `Suggested Values` for both the **Data Source** and the **Graph** -names. When creating **Graphs** and their associated **Data Sources** Cacti will -use the first name in the `Suggested Values` pattern that fully replaces all the -tags that are identified by opening and closing vertical bars. So, in the -example above, when creating an Interface Graph, if that Interface does not have -an ifAlias, Cacti will likely use the second `Suggested Value`, unless the +names. When creating **Graphs** and their associated **Data Sources**, Cacti +will use the first name in the `Suggested Values` pattern that fully replaces +all the tags that are identified by opening and closing vertical bars. So, in +the example above, when creating an Interface Graph, if that Interface does not +have an ifAlias, Cacti will likely use the second `Suggested Value`, unless the interface does not have an IP Address, in which case it will use the third `Suggested Value`. -Cacti also allows `Suggested Values`, to replace both **Graph** and **Data -Source** values, as in the case above, the "rrd_maximum" column is replaced by -the Network Interfaces maximum speed, otherwise known as the "ifSpeed" from an +Cacti also allows `Suggested Values` to replace both **Graph** and **Data +Source** values; as in the case above, the "rrd_maximum" column is replaced by +the Network Interface's maximum speed, otherwise known as the "ifSpeed" from an SNMP perspective. All data queries have two parts, the XML file and the definition within Cacti. @@ -132,9 +132,9 @@ Templates box. You will be presented with a few fields to fill in: When you are finished filling in these fields, click the Create button. You will be redirected back to the same page with some additional information to fill in. -Cacti will make a list of each **Data Template** referenced to in your selected +Cacti will make a list of each **Data Template** referenced in your selected **Graph Template** and display them under the `Associated Data Templates` box. -As previously mentioned, for each **Data Source** item listed, you must selected +As previously mentioned, for each **Data Source** item listed, you must select the **Data Query** output field that corresponds with it. _Do not forget to check the checkbox to the right of each selection, or your settings will not be saved._ @@ -184,21 +184,21 @@ query to hosts. | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | name | (Optional) You can enter a "friendly name" for the SNMP Query here. It will not be used by Cacti, and is for identification only. | | description | (Optional) You can enter a description for the SNMP Query here. It will not be used by Cacti, and is for identification only. | -| oid_uptime | If you have another OID that contains ticks (time), say for example a Java VM. Then, you can create a data query that specifies an alternate uptime OID. To implement this for a data query, simply add the oid_uptime XML parameter to your XML file. Then, if you select your re-index method to be Uptime, Cacti will use that OID to detect whether it is time to re-index the host instead of the standard SNMP OID for uptime. | -| oid_index | Every SNMP Query must have an OID that represents the index values for the query when walked. As described above, any data query in Cacti must contain a field that uniquely identifies each row returned by the query. In the example above, the oid_index points to the OID of ifIndex in the interface MIB. Note: Cacti is able to parse unique indexes from the OID itself. While the regular expression used for parsing the value from the OID is defined below, you must still specify an OID that can be walked by Cacti in order to obtain the list of OID's. Any OID defined for one of your input fields should work in this case. The values returned from the snmpwalk walk will be completely disregarded. | +| oid_uptime | If you have another OID that contains ticks (time), say for example a Java VM, then you can create a data query that specifies an alternate uptime OID. To implement this for a data query, simply add the oid_uptime XML parameter to your XML file. Then, if you select your re-index method to be Uptime, Cacti will use that OID to detect whether it is time to re-index the host instead of the standard SNMP OID for uptime. | +| oid_index | Every SNMP Query must have an OID that represents the index values for the query when walked. As described above, any data query in Cacti must contain a field that uniquely identifies each row returned by the query. In the example above, the oid_index points to the OID of ifIndex in the interface MIB. Note: Cacti is able to parse unique indexes from the OID itself. While the regular expression used for parsing the value from the OID is defined below, you must still specify an OID that can be walked by Cacti in order to obtain the list of OIDs. Any OID defined for one of your input fields should work in this case. The values returned from the snmpwalk will be completely disregarded. | | index_type | If set to nonunique, Cacti will allow the Data Query index to be non-unique, and it will not attempt to change the index_order if for some reason, the chosen index field is not unique. | -| oid_index_parse | This field should only be used if you are trying to parse the unique index from the OID itself. If this field is defined, to obtain a list of indexes, Cacti walks the OID provided in the oid_index field above. It then applies the regular expression provided in this field to the list of OID's that are returned. The matched substrings that remain become the list of indexes for this SNMP Query. | +| oid_index_parse | This field should only be used if you are trying to parse the unique index from the OID itself. If this field is defined, to obtain a list of indexes, Cacti walks the OID provided in the oid_index field above. It then applies the regular expression provided in this field to the list of OIDs that are returned. The matched substrings that remain become the list of indexes for this SNMP Query. | | value_index_parse | This field uses regular expressions to restrict the list of data returned from the get or walk method. For example: .1.3.6.1.2.1.2.2.1.8 VALUE/REGEXP:1 will only show the list of up-state interfaces. Tip - When using this field it is also worth using oid_index_parse, example: OID/REGEXP:.\*\.([0-9]+)$ | | oid_num_indexes | An OID that can be queried to determine the total number of available indexes. If specified, this will be used to determine when to automatically re-cache this SNMP Query when it is attached to a device. | | index_order | Cacti will attempt to find the best field to index off of based on whether each row in the query is unique and non-null. If specified, Cacti will perform this check on the fields listed here in the order specified. Only input fields can be specified and multiple fields should be delimited with a colon. | -| index_transient | If set to 'true', this field instructs Cacti not to stop attempting to Graph an index if it disappears from the host cache as a result of a re-index. This setting is for indexes that come and go, for example PPPoE statistics or user statistics which appear when a user log's in, but disappear a few hours after the connection is terminated. | -| index_order_type | For sorting purposes, specify whether the index is numeric or alphanumeric. numeric: The indexes in this SNMP Query are to be sorted numerically (ie. 1,2,3,10,20,31) alphabetic: The indexes in this SNMP Query are to be sorted alphabetically (1,10,2,20,3,31). | +| index_transient | If set to 'true', this field instructs Cacti not to stop attempting to Graph an index if it disappears from the host cache as a result of a re-index. This setting is for indexes that come and go, for example PPPoE statistics or user statistics which appear when a user logs in, but disappear a few hours after the connection is terminated. | +| index_order_type | For sorting purposes, specify whether the index is numeric or alphanumeric. numeric: The indexes in this SNMP Query are to be sorted numerically (i.e. 1,2,3,10,20,31) alphabetic: The indexes in this SNMP Query are to be sorted alphabetically (1,10,2,20,3,31). | | index_title_format | Specify the title format to use when representing an index to the user. Any input field name can be used as a variable if enclosed in pipes (|). The variable `|chosen_order_field|` will be substituted with the field chosen by Cacti to index off of (see index_order above). | ###### Table 12-4. SNMP Query XML Field Settings Reference Each field contained within the SNMP Query must be defined under the field tag -as show in the example above. In addition, each defined field in the SNMP Query +as shown in the example above. In addition, each defined field in the SNMP Query must have a unique name given to it. Do not use spaces or any non-alphanumeric characters, this name must be identifiable within Cacti. @@ -209,9 +209,9 @@ characters, this name must be identifiable within Cacti. | source | When Cacti obtains a list for this field, you need to tell it how to derive its value for each row. value: The 'value' option simply returns the result of the snmpget for each row. **OID/REGEXP** (regexp_match): The **OID/REGEXP** modifier can be used when you need to use a PHP preg-based regular expression to derive the value from the OID. The most common example of this is to retrieve the IP address of an interface, and can be seen in the 'interface.xml' file. **VALUE/REGEXP** (regexp_match): The **VALUE/REGEXP** modifier can be used to parse the value based on a regular expression, returning the first match. index: Simply use the value of the index for this row as the value. If the index is being parsed from the OID using the oid_index_parse field, you must specify index here. Omit the `...` field, then. **OID2HEX/REGEXP** (regexp_match): The **OID2HEX/REGEXP** modifier can be used to parse the OID to extract IPv6 addresses. This is useful for input type fields. It also supports the 'oid_index_parse' expression as well. | | direction | input: Input values are the "known" values that you will use to derive the output values, this is where the "query" part of SNMP query comes in. When you create a graph based on an SNMP query, Cacti will prompt you to choose the input value to base the graph on. output: Output values are "unknown" values that are returned from the script. An SNMP query may return multiple statistics for a single index. For instance, a single interface could return bytes/sec in, errors, packets/sec, etc. A rule of thumb is that input fields contain semi-static data that is not graphable, while the output fields contain the data that will be graphed. | | oid | You must specify the actual OID that corresponds with the field. Each value for this field can be obtained by doing an snmpget on `oid.(each)snmpindex`. | -| oid_rewrite_pattern | You can specify and **OID/REGEXP** string which will be replaced by the oid_rewrite_replacement string if found. | +| oid_rewrite_pattern | You can specify an **OID/REGEXP** string which will be replaced by the oid_rewrite_replacement string if found. | | oid_rewrite_replacement | The string that replaces the text matched by the oid_rewrite_pattern. | -| oid_suffix | The suffix, if specified will be appended to the each oid from the walk or get response, prior to the oid_rewrite_pattern to oid_rewrite_replace regular expression replace. If the method is get, Cacti will issue an snmpget to obtain the resulting data. | +| oid_suffix | The suffix, if specified will be appended to each oid from the walk or get response, prior to the oid_rewrite_pattern to oid_rewrite_replace regular expression replace. If the method is get, Cacti will issue an snmpget to obtain the resulting data. | | rewrite_index | Modifies the snmp values using the rewrite_index expression. | | output_format | Determines the output format of the column values. Options are 'ascii', 'hex'. If not specified, Cacti will allow SNMP to 'guess' the output format. | @@ -247,21 +247,21 @@ characters, this name must be identifiable within Cacti. | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | name | (Optional) You can enter a "friendly name" for the script query here. It will not be used by Cacti, and is for identification only. | | description | (Optional) You can enter a description for the script query here. It will not be used by Cacti, and is for identification only. | -| script_path | Enter the complete path to the script or executable that is going to handle your script query. When in doubt, specify the pull path to all binaries referenced in this path, the query may not execute otherwise. | +| script_path | Enter the complete path to the script or executable that is going to handle your script query. When in doubt, specify the full path to all binaries referenced in this path, the query may not execute otherwise. | | arg_index | Enter the argument that is to be passed to the script to retrieve a list of indexes. | | arg_query | Enter the argument that is to be passed to the script to retrieve a list of values given a field name. | | arg_get | Enter the argument that is to be passed to the script to retrieve a single value given a field name and index value. | | arg_num_indexes | Enter the argument that is to be passed to the script to determine the total number of available indexes. If specified, this will be used to determine when to automatically re-cache this script query when it is attached to a device. | | output_delimeter | Enter the one character delimiter that will be used to separate output values. This is only used when you "query" the script in which case it outputs 'index(delimiter)value'. | | index_order | Cacti will attempt to find the best field to index off of based on whether each row in the query is unique and non-null. If specified, Cacti will perform this check on the fields listed here in the order specified. Only input fields can be specified and multiple fields should be delimited with a colon. | -| index_transient | If set to 'true', this field instructs Cacti not to stop attempting to Graph an index if it disappears from the host cache as a result of a re-index. This setting is for indexes that come and go, for example PPPoE statistics or user statistics which appear when a user log's in, but disappear a few hours after the connection is terminated. | -| index_order_type | For sorting purposes, specify whether the index is numeric or alphanumeric. numeric: The indexes in this script query are to be sorted numerically (ie. 1,2,3,10,20,31) alphabetic: The indexes in this script query are to be sorted alphabetically (1,10,2,20,3,31). | +| index_transient | If set to 'true', this field instructs Cacti not to stop attempting to Graph an index if it disappears from the host cache as a result of a re-index. This setting is for indexes that come and go, for example PPPoE statistics or user statistics which appear when a user logs in, but disappear a few hours after the connection is terminated. | +| index_order_type | For sorting purposes, specify whether the index is numeric or alphanumeric. numeric: The indexes in this script query are to be sorted numerically (i.e. 1,2,3,10,20,31) alphabetic: The indexes in this script query are to be sorted alphabetically (1,10,2,20,3,31). | | index_title_format | Specify the title format to use when representing an index to the user. Any input field name can be used as a variable if enclosed in pipes (|). The variable |chosen_order_field| will be substituted with the field chosen by Cacti to index off of (see index_order above). | ###### Table 12-6. Script Query XML Field Settings Each field contained within the Script Query must be defined under the field tag -as show in the example above. In addition, each defined field in the Script +as shown in the example above. In addition, each defined field in the Script Query must have a unique name given to it. Do not use spaces or any non-alphanumeric characters, this name must be identifiable within Cacti. @@ -312,7 +312,7 @@ non-alphanumeric characters, this name must be identifiable within Cacti. | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | name | (Optional) You can enter a "friendly name" for the script query here. It will not be used by Cacti, and is for identification only. | | description | (Optional) You can enter a description for the script query here. It will not be used by Cacti, and is for identification only. | -| script_path | Enter the complete path to the script or executable that is going to handle your script query. When in doubt, specify the pull path to all binaries referenced in this path, the query may not execute otherwise. | +| script_path | Enter the complete path to the script or executable that is going to handle your script query. When in doubt, specify the full path to all binaries referenced in this path, the query may not execute otherwise. | | script_function | The function within the script in the case where the script can be used for multiple data collection functions. Most script server scripts are associated with only one Data Query, but it's possible to have one script perform the collection for multiple Data Queries. | | arg_prepend | A list of device variables from the host to prepend after the script function when calling the script. This information can be used to identify the device that is being monitored or pass certain device information to the script. | | arg_index | Enter the argument that is to be passed to the script to retrieve a list of indexes. | @@ -321,14 +321,14 @@ non-alphanumeric characters, this name must be identifiable within Cacti. | arg_num_indexes | Enter the argument that is to be passed to the script to determine the total number of available indexes. If specified, this will be used to determine when to automatically re-cache this script query when it is attached to a device. | | output_delimeter | Enter the one character delimiter that will be used to separate output values. This is only used when you "query" the script in which case it outputs 'index(delimiter)value'. | | index_order | Cacti will attempt to find the best field to index off of based on whether each row in the query is unique and non-null. If specified, Cacti will perform this check on the fields listed here in the order specified. Only input fields can be specified and multiple fields should be delimited with a colon. | -| index_transient | If set to 'true', this field instructs Cacti not to stop attempting to Graph an index if it disappears from the host cache as a result of a re-index. This setting is for indexes that come and go, for example PPPoE statistics or user statistics which appear when a user log's in, but disappear a few hours after the connection is terminated. | -| index_order_type | For sorting purposes, specify whether the index is numeric or alphanumeric. numeric: The indexes in this script query are to be sorted numerically (ie. 1,2,3,10,20,31) alphabetic: The indexes in this script query are to be sorted alphabetically (1,10,2,20,3,31). | +| index_transient | If set to 'true', this field instructs Cacti not to stop attempting to Graph an index if it disappears from the host cache as a result of a re-index. This setting is for indexes that come and go, for example PPPoE statistics or user statistics which appear when a user logs in, but disappear a few hours after the connection is terminated. | +| index_order_type | For sorting purposes, specify whether the index is numeric or alphanumeric. numeric: The indexes in this script query are to be sorted numerically (i.e. 1,2,3,10,20,31) alphabetic: The indexes in this script query are to be sorted alphabetically (1,10,2,20,3,31). | | index_title_format | Specify the title format to use when representing an index to the user. Any input field name can be used as a variable if enclosed in pipes (|). The variable |chosen_order_field| will be substituted with the field chosen by Cacti to index off of (see index_order above). | -###### Table 12-6. Script Server XML Field Settings +###### Table 12-8. Script Server XML Field Settings Each field contained within the Script Query must be defined under the field tag -as show in the example above. In addition, each defined field in the Script +as shown in the example above. In addition, each defined field in the Script Query must have a unique name given to it. Do not use spaces or any non-alphanumeric characters, this name must be identifiable within Cacti. diff --git a/Data-Source-Templates.md b/Data-Source-Templates.md index 88ed15c..564200f 100644 --- a/Data-Source-Templates.md +++ b/Data-Source-Templates.md @@ -1,6 +1,6 @@ # Data Source Templates -Data sources serve an important role in Cacti data sources are data points +Data sources serve an important role in Cacti; data sources are data points collected from the devices you monitor in Cacti. Data sources take the data that has been collected by the poller. @@ -10,7 +10,7 @@ The Data source then holds the value to be presented to the graph. The Data source template is then associated with a graph template. These data sources can be for example incoming traffic on an interface. Cacti -allows you to create data source templates to associate to data queries the +allows you to create data source templates to associate to data queries; the template allows you to describe what type of data Cacti should expect. To create a Data source you will need to select the proper data input there are @@ -20,13 +20,13 @@ data (indexed.) You would use Get SNMP data (indexed) for interfaces for example as Cacti would need to query the device to find the interface index. You would use Get SNMP data and put in a single OID for an OID that won't change for example CPU usage -generally does not have an index and the OID won't change +generally does not have an index and the OID won't change. You will also need to tell the template what the data source type is. The most -common ones being Gauge and Counter. These data types come from the RRDtool its -self. Below are the supported data types and their uses. For more information +common ones being Gauge and Counter. These data types come from the RRDtool +itself. Below are the supported data types and their uses. For more information see -[RRD Tool Create Function](https://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html) +[RRDtool Create Function](https://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html) ## GAUGE @@ -47,8 +47,8 @@ accordingly by adding an appropriate value to the result. Available when the configured RRDtool version is 1.5 or later. -DCOUNTER the same as COUNTER, but for quantities expressed as double-precision -floating point number. It could be used to track quantities that increment by +DCOUNTER is the same as COUNTER, but for quantities expressed as +double-precision floating point number. It could be used to track quantities that increment by non-integer numbers, i.e. number of seconds that some routine has taken to run, total weight processed by some technology equipment etc. @@ -71,8 +71,8 @@ like COUNTER but without overflow checks. So if your counter does not reset at Available when the configured RRDtool version is 1.5 or later. -DDERIVE the same as DERIVE, but for quantities expressed as double-precision -floating point number. +DDERIVE is the same as DERIVE, but for quantities expressed as +double-precision floating point number. > **NOTE**: on COUNTER vs DERIVE > @@ -86,7 +86,7 @@ floating point number. > counter resets for a legitimate counter wrap. > > For a 5 minute step and 32-bit counter, the probability of mistaking a counter -> resetfor a legitimate wrap is arguably about 0.8% per 1Mbps of maximum +> reset for a legitimate wrap is arguably about 0.8% per 1Mbps of maximum > bandwidth. Note that this equates to 80% for 100Mbps interfaces, so for high > bandwidth interfaces and a 32bit counter, DERIVE with min=0 is probably > preferable. If you are using a 64bit counter, just about any max setting will @@ -124,8 +124,8 @@ documentation page. ![Data-Source-Templates](images/datasource-template.png) What is also an important setting is the internal data source name. This will -be used to associate the Data source with the Graph template. so be sure to -name is something that is recognizable. +be used to associate the Data source with the Graph template, so be sure to +name it something that is recognizable. ![Data-Source-Templates](images/datasource-template2.png) diff --git a/Data-Sources.md b/Data-Sources.md index 5148d94..de46202 100644 --- a/Data-Sources.md +++ b/Data-Sources.md @@ -1,24 +1,24 @@ # Data Source Management Data sources in Cacti are the points of data that Cacti will collect from a -device. The following are examples of different sources that can be utililised -for graphing, though is just the surface of what is achievable: +device. The following are examples of different sources that can be utilized +for graphing, though that is just the surface of what is achievable: - Monitoring a device via ping will usually count as 1 data source. -- A 24 port switch and you poll the device via snmp and graph all of the ports - then there will be 24 data sources +- If you have a 24 port switch, poll the device via SNMP, and graph all of the + ports, then there will be 24 data sources. -> **Note**: if you add more graphs that base their data on the original **Data +> **Note**: If you add more graphs that base their data on the original **Data > source** that would not count as another **Data Source** since it uses the > already existing source. -For example, if you have a 24 port switch that you create an **In/Out Bits** +For example, if you have a 24 port switch and you create an **In/Out Bits** graph for each interface, and you then add the **In/Out Bits with 95th Percentile** for each interface, you would still only have 24 data sources. -Keeping on top of the amount of data sources you have is important as the more -data sources you have the more resources you will need to allocate to your +Keeping on top of the amount of data sources you have is important, as the more +data sources you have, the more resources you will need to allocate to your server. You can see how many data sources are associated with a single device by going @@ -27,8 +27,8 @@ to management then clicking on devices. ![device datasources](images/device-datasource.png) You can also see the total amount of data sources by checking the poller stats -on the system. Click the log tab and filter by stats and lookout for the below -messege +on the system. Click the log tab and filter by stats and look out for the below +message: ```console 2019/05/24 17:21:11 - SYSTEM STATS: Time:9.5913 Method:spine Processes:2 Threads:2 Hosts:14 HostsPerProcess:7 DataSources:162 RRDsProcessed:117 @@ -40,10 +40,10 @@ This output tells us we have 162 data sources on the system. The amount of data sources on your system has an impact on the amount of storage you will need. You will also need to consider what rate you are polling your -devices. e.g. 1 minute or 5 Minute polls +devices. e.g., 1 minute or 5 minute polls. Here is the approximate amount of storage you can expect to consume per data -source +source: | Polling time | Retention | File size | Polling time | Retention | File size | | -----------: | --------- | --------: | -----------: | --------- | --------: | @@ -51,20 +51,20 @@ source | 30 second | Monthly | 46kb | 30 second | Yearly | 140kb | | 1 minute | Daily | 93kb | 1 minute | Weekly | 45kb | | 1 minute | Monthly | 47kb | 1 minute | Yearly | 140kb | -| 5 minute | Daily | 19b | 5 minute | Weekly | 22kb | +| 5 minute | Daily | 19kb | 5 minute | Weekly | 22kb | | 5 minute | Monthly | 25kb | 5 minute | Yearly | 26kb | ### Viewing all Data sources by device You are able to check the data sources associated to a specific device in the -Console -> Management -> Data sources You can then search based on a device you -may be interested in to view the Data sources in use +Console -> Management -> Data sources. You can then search based on a device you +may be interested in to view the Data sources in use. ![device datasources](images/data-sources-per-device.png) You can also view Orphaned data sources in this view by checking the Orphaned checkbox. Orphaned data sources are where the graph has been deleted but -the data source was not deleted +the data source was not deleted. --- diff --git a/Debugging.md b/Debugging.md index 92b70b9..c483027 100644 --- a/Debugging.md +++ b/Debugging.md @@ -1,6 +1,6 @@ # Debugging -Cacti users sometimes complain about NaN's in their graphs. Unfortunately, there +Cacti users sometimes complain about NaNs in their graphs. Unfortunately, there are several reasons for this result. The following is a step-by-step procedure recommended for debugging. @@ -16,7 +16,7 @@ SPINE: Host[...] DS[....] WARNING: SNMP timeout detected [500 ms], ignoring host For "reasonable" timeouts, this may be related to a snmpbulkwalk issue. To change this, see `Settings`, `Poller` and lower the value for `SNMP Get OID Limit`. Start at a value of 2 and increase it again, if the -poller starts working. (1 or less disables snmpbulkwalk) Some agent's don't have +poller starts working. (1 or less disables snmpbulkwalk) Some agents don't have the horsepower to deliver that many OIDs at a time. Therefore, we can reduce the number for those older/under-powered devices. @@ -32,8 +32,8 @@ su - cactiuser ... (check output) ``` -For SNMP, snmpget the _exact_ OID you're asking for, using same community string -and SNMP version as defined within cacti. For an OID of `.1.3.6.1.4.something`, +For SNMP, snmpget the _exact_ OID you're asking for, using the same community string +and SNMP version as defined within Cacti. For an OID of `.1.3.6.1.4.something`, community string of `very-secret` and version 2 for target host `target-host` this would look like @@ -45,11 +45,11 @@ snmpget -c very-secret -v 2c target-host .1.3.6.1.4.something ## Check Cacti's poller First make sure that crontab always shows poller.php. This program will either -call cmd.php, the PHP based poller _or_ spine, the fast alternative, written in +call cmd.php, the PHP based poller _or_ Spine, the fast alternative, written in C. Define the poller you're using at `Settings`, `Poller`. Spine has to be -implemented separately, it does not come with cacti by default. +implemented separately; it does not come with Cacti by default. -Now, clear `./log/cacti.log` (or rename it to get a fresh start) +Now, clear `./log/cacti.log` (or rename it to get a fresh start). Then, change `Settings`, `General`, `Generic Log Level` to DEBUG for _one_ polling cycle. You may rename this log as well to avoid more stuff added to it with @@ -63,8 +63,8 @@ from the `Devices` menu when editing the host: The URL contains a string like id= ``` -Check, whether the output is as expected. If not, check your script (e.g. -`/full/path/to/perl`). If OK, proceed to next step +Check whether the output is as expected. If not, check your script (e.g. +`/full/path/to/perl`). If OK, proceed to the next step. This procedure may be replaced by running the poller manually for the failing host only. To do so, you need the ``, again. If you're using cmd.php, set @@ -88,7 +88,7 @@ output. ## Check MySQL updating In most cases, this step can be skipped. You may want to return to this step if -the next one fails (e.g. no rrdtool update to be found) +the next one fails (e.g. no rrdtool update to be found). From debug log, find the MySQL update statement for that host concerning table `poller_output`. On very rare occasions, this will fail. Copy that SQL statement @@ -106,7 +106,7 @@ rrdtool update --template ... You should find exactly one update statement for each file. RRDfiles should be created by the poller. If it does not create them, it will -not fill them either. If it does check your `Poller Cache` from Utilities and +not fill them either. If it does, check your `Poller Cache` from Utilities and search for your target. Does the query show up here? ## Check RRDfile ownership @@ -133,17 +133,17 @@ chown cactiuser:cactiuser *.rrd ## Check RRDfile numbers You're perhaps wondering about this step, if the former was OK. But due to data -sources MINIMUM and MAXIMUM definitions, it is possible, that valid updates for +sources MINIMUM and MAXIMUM definitions, it is possible that valid updates for RRDfiles are suppressed, because MINIMUM was not reached or MAXIMUM was exceeded. -Assuming, you've got some valid `rrdtool update` in step 3, perform a +Assuming you've got some valid `rrdtool update` in the log, perform a ```sh rrdtool fetch AVERAGE ``` -and look at the last 10-20 lines. If you find NaN's there, perform +and look at the last 10-20 lines. If you find NaNs there, perform ```sh rrdtool info @@ -157,7 +157,7 @@ ds[loss].max = 1.0000000000e+02 ``` In this example, MINIMUM = 0 and MAXIMUM = 100. For a `ds.[...].type=GAUGE` -verify, that e.g. the number returned by the script does not exceed +verify that e.g. the number returned by the script does not exceed `ds[...].MAX` (same holds for MINIMUM, respectively). If you run into this, not only should you update the data source definition @@ -174,21 +174,21 @@ well. For standard 300 seconds polling intervals (step=300), it is wise to set `minimal_heartbeat` to 600 seconds. If a single update is missing and the next one occurs in less than 600 seconds from the last one, RRDtool will interpolate the missing update. Thus, gaps are "filled" automatically by interpolation. Be -aware of the fact, that this is no "real" data! Again, this must be done in the +aware of the fact that this is no "real" data! Again, this must be done in the Data Template itself and by using `rrdtool tune` for all existing RRDfiles of this type. ## Check `rrdtool graph` statement -Last resort would be to check, that the correct data sources are used. Go to +Last resort would be to check that the correct data sources are used. Go to `Graph Management` and select your Graph. Enable DEBUG Mode to find the whole `rrdtool graph` statement. You should notice the `DEF` statements. They specify -the RRDfile and data source to be used. You may check, that all of them are as +the RRDfile and data source to be used. You may check that all of them are as wanted. ## Miscellaneous -Up to current cacti 0.8.6h, table `poller_output` may increase beyond reasonable +Up to current Cacti 0.8.6h, table `poller_output` may increase beyond reasonable size. This is commonly due to php.ini's memory settings of 8MB default. Change this to @@ -200,26 +200,26 @@ To check this, run the following SQL from MySQL CLI (or phpMyAdmin or the like) select count(*) from poller_output; ``` -If the result is huge, you may get rid of those stuff by +If the result is huge, you may get rid of that stuff by ```sql truncate table poller_output; ``` -As of current SVN code for upcoming cacti 0.9, I saw measures were taken on both +As of current SVN code for upcoming Cacti 0.9, I saw measures were taken on both issues (memory size, truncating poller_output). ## RPM Installation -Most rpm installations will setup the crontab entry now. If you've followed the +Most rpm installations will set up the crontab entry now. If you've followed the installation instructions to the letter (which you should always do ;-) ), you -may now have two poller running. That's not a good thing, though. Most rpm -installations will setup cron in `/etc/cron.d/cacti` +may now have two pollers running. That's not a good thing, though. Most rpm +installations will set up cron in `/etc/cron.d/cacti` Now check all your crontab, especially `/etc/crontab` and crontab of users root and cactiuser. Leave only one poller entry for all of them. Personally, I've -chosen `/etc/cron.d/cacti` to avoid problems when updating RPM's. Most often, -you won't remember this item when updating lots of RPM's, so I felt more secure +chosen `/etc/cron.d/cacti` to avoid problems when updating RPMs. Most often, +you won't remember this item when updating lots of RPMs, so I felt more secure to put it here. And I've made some slight modifications, see ```sh @@ -246,12 +246,12 @@ shell> crontab -e -u cactiuser ## Not NaN, but 0 (zero) values -Pay attention to custom scripts. It is required, that external commands called +Pay attention to custom scripts. It is required that external commands called from there are in the `$PATH` of the cactiuser running the poller. It is -therefor recommended to provide `/full/path/to/external/command` +therefore recommended to provide `/full/path/to/external/command` User "criggie" reported an issue with running smartctl. It was complaining "you -are not root" so a quick `chmod +s` on the script fixed that problem. +are not root," so a quick `chmod +s` on the script fixed that problem. --- Copyright (c) 2004-2026 The Cacti Group diff --git a/Device-Rules.md b/Device-Rules.md index 6485387..5bc0a21 100644 --- a/Device-Rules.md +++ b/Device-Rules.md @@ -2,10 +2,10 @@ This section will describe **Device Rules** in Cacti. -Cacti Automation relies on create device Rules these rules help the automation +Cacti Automation relies on device Rules. These rules help the automation process figure out what type of device is being scanned. Based on the device rule REGEX the automation engine can apply the appropriate template to the -device i.e if there is a REGEX for IOS. The automation engine may pick the +device i.e., if there is a REGEX for IOS, the automation engine may pick the Cisco router template for the device. ![Automation Device Rules](images/automation-device-templates.png) @@ -25,8 +25,8 @@ substring such as `Cisco IOS` if it is present. Apply that match to the system description, not the system name. Avoid assuming that every device from a vendor returns the same description or supports the same measurements. -Using this info automation would apply the appropriate device template you -choose. If you see below we match for a system that matches Linux once a +Using this info, automation would apply the appropriate device template you +choose. If you look below, we match for a system that matches Linux. Once a device is found with the matching description it is assigned the Net-SNMP device template. diff --git a/Device-Templates.md b/Device-Templates.md index aa72e68..4c34949 100644 --- a/Device-Templates.md +++ b/Device-Templates.md @@ -3,8 +3,8 @@ See [Supported Devices in Cacti 1.2](Supported-Devices.md) for the bundled package inventory, generic SNMP coverage and device compatibility limits. -**Device Templates** are Cacti objects that allows you to define classes of -**Devices** that includes from one to many **Graph Templates**, **Data Queries** +**Device Templates** are Cacti objects that allow you to define classes of +**Devices** that include from one to many **Graph Templates**, **Data Queries** and other **Plugin** related object types. **Device Templates** make a common set of **Graph Templates** and **Data @@ -25,11 +25,11 @@ The **Device Templates** main screen looks like the image below: ![Device Templates Page](images/device-templates.png) -From this page, you can see the title of each **Device Template**, it's ID which +From this page, you can see the title of each **Device Template**, its ID which is important for the Cacti CLI scripts. You can see if the **Device Template** can be removed, and the number of **Devices** using the **Device Template**. -Templates that are used by **Devices** can not be removed and therefore if you -attempt to remove one of these Templates, you will receive and error message. +Templates that are used by **Devices** cannot be removed and therefore if you +attempt to remove one of these Templates, you will receive an error message. From the drop down there are three options, they are: @@ -50,7 +50,7 @@ Templates** defined on the system, so there is no way to select one. To add a **Graph Template** or **Data Query** to the **Device Template**, simply select it from the drop down, and press the *Add* button. There is no need to -*Save* afterwards. To removed one of these items, simply press the x glyph to +*Save* afterwards. To remove one of these items, simply press the x glyph to the right of the desired **Graph Template** or **Data Query**. --- diff --git a/Devices.md b/Devices.md index bf60ada..56af2f8 100644 --- a/Devices.md +++ b/Devices.md @@ -24,12 +24,12 @@ Some of the most important information about the device will be required in this window which includes - **Description** - The name that will appear on **Graphs** by default -- **Hostname** - The DNS or IP address of the actual **Device**. IPv6 address insert into brackets (example: [2001:abcd:1234::1]) +- **Hostname** - The DNS or IP address of the actual **Device**. Insert an IPv6 address into brackets (example: [2001:abcd:1234::1]) - **Poller Association** - Defines which **Data Collector** is responsible for pulling information about the **Device** - **Device Template** - Cisco, Net-SNMP, Linux, etc - The Cacti object that holds all the **Graph Templates** and **Data Queries** to be graphed -- **Device Site Association, Location** - Very important to performing Meta +- **Device Site Association, Location** - Very important for performing Meta queries, or for Site level Graph organization on Cacti **Graph Trees** - **Availability/Reachability** - Settings that describe **Device** @@ -67,12 +67,12 @@ They include: - **SNMP Uptime** - Query the SNMP Uptime Instance OID - **Ping and SNMP Uptime** - Ping the device but also check the SNMP Uptime Instance OID -- **Ping** - Either ICMP, TCP at a port, or UDP as a port. Newer version has an additional method TCP Ping Closed. -The device is considered UP even if the tcp ping returns closed +- **Ping** - Either ICMP, TCP at a port, or UDP as a port. Newer versions have an additional method, TCP Ping Closed. +The device is considered UP even if the TCP ping returns closed - **Ping or SNMP Uptime** - Only one needs to be working for Cacti to collect data -- **SNMP Desc** - Query the SNMP sysDescription in cases where the SNMP Uptime OID +- **SNMP Desc** - Query the SNMP sysDescr in cases where the SNMP Uptime OID is not available -- **SNMP getNext** - Query the first available OID in the OID tree for the **Device** +- **SNMP getNext** - Query the first available OID in the OID tree for the **Device**. Used for certain devices that have limited SNMP support. ## SNMP Credentials @@ -98,19 +98,19 @@ They include the following: - **Number of Collection Threads** - If your device is far away, and can tolerate multiple threads querying information, you can increase this number to reduce the time it takes to collect all information. -- **Maximum OIDs Per Get Request** - Otherwise known as MaxOID's, this SNMP option +- **Maximum OIDs Per Get Request** - Otherwise known as MaxOIDs, this SNMP option will allow the SNMP client to gather more metrics per get request. Please keep - in mind that the higher you make this number, the longer a SNMP respond may take. + in mind that the higher you make this number, the longer an SNMP response may take. So, you have to be sensitive about the SNMP timeout as the number gets larger. - Since, by default SNMP is generally collected over UDP, you will also be limited - in the number of responses depending on how many routers or VPN's you traverse - to reach a device. When traversing VPN connections, many VPN's limit the MTU - to around 500 bytes, which will significantly limit how large the Max OID's can + Since, by default, SNMP is generally collected over UDP, you will also be limited + in the number of responses depending on how many routers or VPNs you traverse + to reach a device. When traversing VPN connections, many VPNs limit the MTU + to around 500 bytes, which will significantly limit how large the Max OIDs can be. In some cases, it may be better to deploy a **Remote Data Collector** when - your device is either far way from a latency perspective, or that you must - traverse VPN's to communicate with. + your device is either far away from a latency perspective, or that you must + traverse VPNs to communicate with. - **External ID** - This field is normally used for Asset Tracking information for - the **Device**, but it use is entirely up to the System Administrator. + the **Device**, but its use is entirely up to the System Administrator. ## Plugin Behavior @@ -126,7 +126,7 @@ you can provide about the device including things like: ## Creating devices via CLI script -You can also create device by using the CLI script located at /cactidir/cli/ +You can also create a device by using the CLI script located at /cactidir/cli/ ```console usage: add_device.php --description=[description] --ip=[IP] --template=[ID] [--notes="[]"] [--disable] diff --git a/Discovered-Devices.md b/Discovered-Devices.md index a7514da..4967ae9 100644 --- a/Discovered-Devices.md +++ b/Discovered-Devices.md @@ -1,12 +1,12 @@ # Automation Discovered Devices -After you initiate a scan from automation Cacti will compare devices +After you initiate a scan from automation, Cacti will compare devices found to the device rules and SNMP options you set. If Cacti is unable to match the device to a device template or unable to -find a proper SNMP credential. +find a proper SNMP credential, the device will be put in this section. -Also if you have the automatically add to Cacti set to off the devices will +Also, if you have the automatically add to Cacti set to off, the devices will also be put in this section. The Discovered Devices section can be found by navigating to the @@ -17,15 +17,15 @@ following area. Below you can see devices that have been found during the scan that did not meet a match criteria. -You will see the IP that was scanned as well if available the resolved -hostname either via DNS or netbios. +You will see the IP that was scanned as well as, if available, the resolved +hostname either via DNS or NetBIOS. ![Discovered Devices](images/automation-devices.png) -You can then select the device you are interested in adding click the -checkbox next to the device +You can then select the device you are interested in adding, click the +checkbox next to the device. -on the dropdown you select add device this will bring up the below menu. +On the dropdown, you select add device; this will bring up the below menu. From this Menu you will be able to fill out the details of the new device. ![Discovered Devices](images/discovered-device-add-menu.png) diff --git a/Export-Template.md b/Export-Template.md index a0f6c29..8e09e40 100644 --- a/Export-Template.md +++ b/Export-Template.md @@ -16,13 +16,13 @@ copying omitted or legacy dependencies. An export with dependencies can include: 1. The device template name and its identity -2. All the Graph Templates and their GUID's -3. All the Graph Template inputs and their GUID's -4. All the Data Templates and their GUID's -5. All the Data Input Method's and their GUID's -6. All the GPrint Presets and their GUID's -7. All the CDEF's and VDEF's and their GUID's -8. All the Data Source Profiles and their GUID's +2. All the Graph Templates and their GUIDs +3. All the Graph Template inputs and their GUIDs +4. All the Data Templates and their GUIDs +5. All the Data Input Methods and their GUIDs +6. All the GPrint Presets and their GUIDs +7. All the CDEFs and VDEFs and their GUIDs +8. All the Data Source Profiles and their GUIDs Most fields use XML escaping. Data-input command strings can be base64-encoded; decode only fields defined that way by the format. For diff --git a/External-Links.md b/External-Links.md index b2d5a2e..99331ee 100644 --- a/External-Links.md +++ b/External-Links.md @@ -5,7 +5,7 @@ This section will describe **External Links** in Cacti. External Links allows Administrators to add tabs to external links within the Cacti GUI. This can be for example to google.ca -When the user clicks on the Tab an Iframe will display the webpage. +When the user clicks on the Tab an iframe will display the webpage. This feature can be very useful to create a single UI for helpdesk/NOC. diff --git a/Frequently-Asked-Questions.md b/Frequently-Asked-Questions.md index 9b0c018..1f80911 100644 --- a/Frequently-Asked-Questions.md +++ b/Frequently-Asked-Questions.md @@ -5,10 +5,10 @@ **Q:** How do I create traffic graphs? **A:** Before you can create traffic graphs, Cacti must have working SNMP -support. One way to do this is to compile PHP with SNMP support built in, many +support. One way to do this is to compile PHP with SNMP support built in; many times you can install the 'php-snmp' package to do this. The second option is to have Cacti call the snmpget and snmpwalk binaries from your ucd-snmp or net-snmp -installation. You can use the about page to determine whether to are using +installation. You can use the about page to determine whether you are using "built-in" or "external" SNMP support. Now that you have working SNMP support, follow these steps. @@ -24,8 +24,8 @@ Now that you have working SNMP support, follow these steps. 5. You should see one or more interfaces listed under the Data Query [Get SNMP Interfaces] box. Place a check next to each interface that you want - to graph. Below the box, select type of graph that you want to create (bits, - bytes, summation, etc). + to graph. Below the box, select the type of graph that you want to create + (bits, bytes, summation, etc). 6. Click Create, and Create again on the following screen to create your graphs. @@ -54,8 +54,8 @@ presented with text that looks like: If this happens, it usually means that you have not enabled the PHP module to work with your web server software. This can be as simple as running `a2enmod` on Ubuntu, or having to manually create a configuration for nginx under another -flavour of Linux. For specific help on enabling PHP, search the internet using -your favourite search engine with keywords such as: +flavor of Linux. For specific help on enabling PHP, search the internet using +your favorite search engine with keywords such as: > How do I enable PHP under ... @@ -66,7 +66,7 @@ installation documents included that may also help. --- -**Q:** I have forgotten my 'admin' password to Cacti, how do I reset it? +**Q:** I have forgotten my 'admin' password to Cacti; how do I reset it? **A:** To reset the admin account password back to the default of 'admin', connect to your Cacti database at the command line. @@ -86,16 +86,16 @@ MySQL> update user_auth set password=md5('admin') where username='admin'; **Q:** I am polling thousands of items and poller.php takes more than 5 minutes to run. -**A:** Give Spine, the fast replacement for poller.php a try. Unlike poller.php, -Spine is written in c and makes use of threads. On a typical installation, it is -not uncommon for Spine to poll about 50000 items in less then 10 seconds. Spine -supports upto several threads per poller process and can also poll a single -hosts with more than a single thread. +**A:** Give Spine, the fast replacement for poller.php, a try. Unlike +poller.php, Spine is written in C and makes use of threads. On a typical +installation, it is not uncommon for Spine to poll about 50000 items in less +than 10 seconds. Spine supports up to several threads per poller process and can +also poll a single host with more than a single thread. -If using spine alone does not help, look to both the amount of memory and CPU -threads are available on your Cacti server. You should generally not use more -than 2 times the number of CPU threads as you have spine threads. Remember, -every spine thread has to also talk to the database, so having more CPU threads +If using Spine alone does not help, look to both the amount of memory and CPU +threads available on your Cacti server. You should generally not use more +than 2 times the number of CPU threads as you have Spine threads. Remember, +every Spine thread has to also talk to the database, so having more CPU threads on your Cacti server has a direct impact on performance. If you make the thread setting too high, it will actually decrease performance. So, be careful. @@ -131,7 +131,7 @@ and 'net-snmp' packages to their latest versions should fix this problem. file being used by snmpd is the correct config file. For Redhat Linux, snmpconf creates the `/etc/snmpd.conf`, but snmpd uses `/etc/snmpd/snmpd.conf`. -If this doesn't work a very simple config file is: +If this doesn't work, a very simple config file is: ```console # contact @@ -159,9 +159,9 @@ systemctl enable snmpd systemctl restart snmpd ``` -Though there are many more advanced settings available in net-snmp, it generally -recommended to keep a simpler configuration unless your information security -policies require more stringent settings. +Though there are many more advanced settings available in net-snmp, it is +generally recommended to keep a simpler configuration unless your information +security policies require more stringent settings. --- @@ -170,16 +170,16 @@ happening. Where should I go to see the issue? **A:** You should click the **Log** tab at the top of the page. When you get to the **Log** tab, you should search for an entry "SYSTEM STATS:". If you do not -find that entry, it means that you Cacti Data Collector, otherwise known as the -Cacti Poller is not running. +find that entry, it means that your Cacti Data Collector, otherwise known as the +Cacti Poller, is not running. This can happen if you have neglected to create either a CRON entry for the -Cacti Poller, or registered and started the `cactid` service available in the +Cacti Poller, or register and start the `cactid` service available in the latest Cacti. If you find that the CRON entry is there, you should look at your -systems CRON log for entries like **permission denied**. Sometimes the user +system's CRON log for entries like **permission denied**. Sometimes the user accounts you have selected to run the CRON are not permitted to do so. We strongly recommend that you use the `cactid` service with Cacti 1.x though and -avoid CRON based Data Collection though. +avoid CRON based Data Collection. ## Graphs @@ -201,17 +201,17 @@ shell> php poller.php ``` If you have files in your 'rra/' directory, but your graphs still appear as -broken images, you should enable graph debug mode see exactly why the graphs are -not rendering. To do this go into Cacti, select Graph Management from the menu, -select any graph listed, and select Turn On Graph Debug Mode. +broken images, you should enable graph debug mode to see exactly why the graphs +are not rendering. To do this, go into Cacti, select Graph Management from the +menu, select any graph listed, and select Turn On Graph Debug Mode. --- **Q:** My graphs render, but they do not contain any data. -**A:** More often than not, this problem's cause is permissions. For instance if -you run poller.php manually as root for testing, any .rrd files that it creates -will be owned by root. Now when poller.php runs from cron, it will not be able +**A:** More often than not, this problem's cause is permissions. For instance, +if you run poller.php manually as root for testing, any .rrd files that it +creates will be owned by root. Now when poller.php runs from cron, it will not be able to update these .rrd files because they are owned by root. You can double check the owner of your .rrd files by running the following command in your Cacti directory: @@ -231,7 +231,7 @@ will see no data on the graph. truncated to 15 characters. **A:** Cacti does this by default to better control graph title formatting. You -can change this limit, by going to Cacti Settings on the Cacti menu, selecting +can change this limit by going to Cacti Settings on the Cacti menu, selecting the Visual tab, and changing the value for Data Source Field Length. --- @@ -251,12 +251,12 @@ that will remove them for you. --- **Q:** I have a remote poller that is timing out but SNMP timing to the devices -is fine +is fine. **A:** Check that the network connection between the Remote poller and Main -poller is working ok if the link has very high latency this can cause the +poller is working OK. If the link has very high latency, this can cause the polling times to increase as the data being transferred from the remote poller -will be slowed causing the poll not to finish in time +will be slowed, causing the poll not to finish in time. --- @@ -326,12 +326,12 @@ POLLER: Poller[0] Maximum runtime of xxx seconds exceeded. This error indicates that Cacti was unable to finish the polling cycle in time. This can be for a few reasons. -- You are using spine and have not entered the correct mysql credentials in +- You are using spine and have not entered the correct MySQL credentials in spine.conf -- You do not have an adaquete process setting for cmd.php or thread/process +- You do not have an adequate process setting for cmd.php or thread/process count for spine -- Network related issue either an network outage or a network slowdown -- System related trouble cpu/memory exhaustion +- Network related issue, either a network outage or a network slowdown +- System related trouble CPU/memory exhaustion - Insufficient MySQL connections resulting in spine failing ### RRDtool reports Unknown Error diff --git a/GPRINTs.md b/GPRINTs.md index fee39e8..a96dcb9 100644 --- a/GPRINTs.md +++ b/GPRINTs.md @@ -2,7 +2,7 @@ GPRINT Presets are an object in Cacti used for formatting Legend output on RRDtool Graphs. These GPrint Presets -closely fillow printf(), sprintf() ANSI syntax. They +closely follow printf(), sprintf() ANSI syntax. They are simple to create and edit. You can find the format strings on the [RRDtool Website](https://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html#PRINT). @@ -14,11 +14,11 @@ they are portable once created. In the image below, you can see the default GPrint Presets and the actions that can be taken on them. Keep in mind that once a GPrint Preset is being used by a **Graph** -or a **Graph Template**. It can not be removed. +or a **Graph Template**, it cannot be removed. ![GPRINT Presets](images/gprint-presets.png) -Below you can see the GPrint Preset edit screeen. +Below you can see the GPrint Preset edit screen. ![GPRINT Presets Edit](images/gprint-presets-edit.png) diff --git a/General-Installing-Instructions.md b/General-Installing-Instructions.md index eb17370..ad01e13 100644 --- a/General-Installing-Instructions.md +++ b/General-Installing-Instructions.md @@ -9,7 +9,7 @@ the configured web server, PHP handler, and database start at boot. ## Required Packages for Most Operating Systems Depending on your operating system and PHP version, certain packages are -required for Cacti. The largest variable in these requirements come with regard +required for Cacti. The largest variable in these requirements comes with regard to PHP and MySQL/MariaDB. Installation requirements include the packages below. The installation of these @@ -17,20 +17,20 @@ packages will vary by operating system. ### Base OS -- apache, IIS, or nginx +- Apache, IIS, or nginx - net-snmp, net-snmp-utils - rrdtool -- help2man (for spine) +- help2man (for Spine) -- dos2unix (for spine) +- dos2unix (for Spine) - development packages (gcc, automake, autoconf, libtool, either mysql-devel or mariadb-devel, net-snmp-devel, help2man) - (for spine) + (for Spine) ### Database @@ -57,7 +57,7 @@ or ### PHP Modules -The installation of these modules vary by OS. Use the `php -m` command to +The installation of these modules varies by OS. Use the `php -m` command to verify that they are installed. - ctype @@ -198,13 +198,13 @@ installer will make specific recommendations on MySQL/MariaDB settings. Follow those as applicable for your OS. Galera clustering: There are several tables which are set to use the MEMORY -storage engine which do not get replicated among nodes which can cause +storage engine which do not get replicated among nodes, which can cause problems. If you configure Cacti to only connect to one node of your cluster and are not load balancing this does not apply to you. If you are running multiple nodes in a load-balanced environment where you -connect to a VIP you should remove all but one node from rotation during Cacti -installation or update. After the installation/update login to your MySQL +connect to a VIP, you should remove all but one node from rotation during Cacti +installation or update. After the installation/update, log in to your MySQL server and execute the following commands to update those tables to use the InnoDB engine: @@ -385,13 +385,13 @@ the configured account. Spine is a very fast data collection engine, written in C. It is an optional replacement for cmd.php. If you decide to use it, you will have to install it -explicitly. It does not come with cacti itself. +explicitly. It does not come with Cacti itself. The easiest way is to install Spine using rpm or ports. You will find packages -for Spine at the main cacti site or from your distribution. +for Spine at the main Cacti site or from your distribution. -To compile Spine, download it to any location of your liking. Then, issue from -the downloaded directory following commands +To compile Spine, download it to any location of your liking. Then, issue the +following commands from the downloaded directory: ```sh ./bootstrap @@ -400,7 +400,7 @@ the downloaded directory following commands After `bootstrap` succeeds, follow the release's build instructions to configure, compile and install Spine. -Assuming, you've managed to install spine correctly, you will have to configure +Assuming you've managed to install Spine correctly, you will have to configure it. Use the installed `spine.conf.dist` as the example, and configure the actual Spine configuration path in Cacti. Use the same database account and secret as the Cacti configuration, and restrict file access to the poller diff --git a/Graph-Overview.md b/Graph-Overview.md index ecd86be..7e983d4 100644 --- a/Graph-Overview.md +++ b/Graph-Overview.md @@ -1,7 +1,7 @@ # Graph Overview Almost everything in Cacti is somehow related to a **Graph**. At any time, you can -list all available **Graph** by clicking on `Console > Management > Graphs` menu +list all available **Graphs** by clicking on `Console > Management > Graphs` menu pick. While it is possible to manually create graphs through this interface, new users should follow the instructions provided in the next chapter for creating **New Graphs** in Cacti. @@ -13,24 +13,24 @@ RRDtool without requiring users to understand how RRDtool works. With this in mind, every **Graph** in Cacti has certain settings and at least one **Graph Item** associated with it. While graph settings define the overall properties of a **Graph**, the **Graph Items** define the data that is to be represented on the **Graph**. -So the **Graph Items** define which data to display and how it should displayed, +So the **Graph Items** define which data to display and how it should be displayed, and also define what should be displayed on the legend. Each **Graph** and **Graph Item** has a set of parameters which control various aspects -of the **Graph**. Fortunately through the use of **Graph Templates**, it is not +of the **Graph**. Fortunately, through the use of **Graph Templates**, it is not necessary to understand the function of each field to create **Graphs** for your network. When you are ready to take on the task of creating your own **Graph Templates**, extensive field descriptions for both **Graphs** and **Graph Items** are provided in that section of the manual. Below, you can see a simple version of the Graph Management interface found -by going to `Console > Management > Graphs` +by going to `Console > Management > Graphs`. ![Graph Management](images/graphs.png) From this interface, you can see the Name, and ID of the **Graph**, -the Source **Graph Template**, and it's size. At the bottom of the page, there -is a list of Action that can be taken on **Graphs**. These actions are fairly +the Source **Graph Template**, and its size. At the bottom of the page, there +is a list of Actions that can be taken on **Graphs**. These actions are fairly extensive, and are also extended as you add **Plugins** to Cacti. When you click on the Name of the **Graph**, you will be taken to a `Graph Edit` @@ -39,7 +39,7 @@ page as shown below. ![Graph Management Edit](images/graphs-edit.png) In most cases, where the **Graph** is owned by a **Graph Template**, there is -not much your can do on this page. However, in the case that a **Graph** +not much you can do on this page. However, in the case that a **Graph** is not managed by a template as in the image below, there are many more options you will have when working with the **Graph**. The downside of not leveraging a **Graph Template** for your **Graphs** is that you have diff --git a/Graph-Rules.md b/Graph-Rules.md index 0e235dc..fd3c4c9 100644 --- a/Graph-Rules.md +++ b/Graph-Rules.md @@ -3,7 +3,7 @@ This section will describe **Graph Rules** in Cacti. Graph rules are used by the Cacti automation process after a device has been -identified and a template has been applied the next step is graph creation. +identified and a template has been applied, the next step is graph creation. Graph rules are processed from top to bottom. These rules select indexed data-query graphs. Associated non-indexed graph @@ -18,9 +18,9 @@ with optional tables or components, select only the rows and graph types supported by the target devices. The graph rule matches the graph template by looking at the data fields -chosen that are available in the data query for example below we are creating -graphs for interface traffic the data query has several fields available to -match on. +chosen that are available in the data query. In the example below we are +creating graphs for interface traffic. The data query has several fields +available to match on. You can see how these rules would take place by clicking the show matching objects link. @@ -32,12 +32,12 @@ devices as well. ![Automation Graph Rules](images/automation-graph-rules.png) -A practical example if you want to create graphs for interfaces that are in +A practical example: if you want to create graphs for interfaces that are in up/up status you would choose the ifOperstatus field and match the status to -UP this would tell automation to create the graph for that interface only if +UP. This would tell automation to create the graph for that interface only if the data query discovers the operational status is equal to up. -A device selection Criteria is also important Cacti needs a way to find which +A device selection Criteria is also important. Cacti needs a way to find which device it needs to match. In the below example we are matching any device that has an interface that is up and is not a Windows server. @@ -50,12 +50,12 @@ devices link. ![Automation Graph Rules Graph Criteria](images/automation-graph-rules-edit3.png) -This output shows us which devices match our devices rules this can help with +This output shows us which devices match our device rules. This can help with tweaking rules as needed. ![Automation Graph Rules Matching Devices](images/automation-graph-rules-edit4.png) -This output shows which interfaces,drives,sensors etc will be graphed based +This output shows which interfaces, drives, sensors, etc. will be graphed based on the graph rules. ![Automation Graph Rules Matching Objects](images/automation-graph-rules-edit5.png) diff --git a/Graph-Templates.md b/Graph-Templates.md index 5641e30..49c5795 100644 --- a/Graph-Templates.md +++ b/Graph-Templates.md @@ -1,13 +1,13 @@ # Graph Templates -**Graph Templates** are Cacti objects that allows you to define how RRDtool is +**Graph Templates** are Cacti objects that allow you to define how RRDtool is to render a Cacti **Graph**. Most RRDtool options are supported including -CDEF's and VDEF's, Left and Right Axis, Ticks and Dashes, multiple Auto Scaling, +CDEFs and VDEFs, Left and Right Axis, Ticks and Dashes, multiple Auto Scaling, Grid, and Legend Options. The purpose of **Graph Templates** is to simplify the **Automation** process by pre-defining the layout of **Graphs** for various metrics that are to be -monitored in Cacti. When used in Conjunction with Cacti's **Graph Rules**, you +monitored in Cacti. When used in conjunction with Cacti's **Graph Rules**, you can automatically create just about any **Data Query** based **Graph** during Cacti's **Network Discovery** process. @@ -50,11 +50,11 @@ The editor groups its fields into these sections: | Axis Options | Right-axis conversion and formatting. | | Legend Options | Legend placement and formatting. | -Each of these sections are displayed below for reference. For more information +Each of these sections is displayed below for reference. For more information on how to use these options, please visit the [RRDtool Website](http://RRDtool.org). -The *Graph Items* make up what is draw within the canvas of the Graph. There +The *Graph Items* make up what is drawn within the canvas of the Graph. There are several *Graph Item* types including: ###### Table 3. Common graph item types @@ -127,7 +127,7 @@ The *Axis Options* allow you to define a *Right Axis* and optional *Formatters*. ## Graph Template - Legend Options The *Legend* options allow you to specify how the *Legend* should be placed on -the resulting **Graph** modern RRDtool has several options that were not +the resulting **Graph**. Modern RRDtool has several options that were not available in Cacti prior to Cacti 1.0. ![Legend Options](images/graph-templates-edit6.png) diff --git a/Graph-a-Single-SNMP-OID.md b/Graph-a-Single-SNMP-OID.md index 948db4d..ff861a2 100644 --- a/Graph-a-Single-SNMP-OID.md +++ b/Graph-a-Single-SNMP-OID.md @@ -8,7 +8,7 @@ not see this **Graph Template** listed under **Graph Templates**, install the **Generic SNMP Device Package** using the `import_package.php` command line script located in Cacti's cli directory. -To start the process of creating a new graph for your OID, click go to +To start the process of creating a new graph for your OID, go to `Console > Create > New Graphs`, and from there find the **Device** you would like to add the **Graph** to. @@ -44,7 +44,7 @@ From this interface, you must define various attributes for your resulting | (Data Source) Data Source Type [snmp_oid] | How the data from the OID should be stored by RRDtool and interpreted on the graph. If the value of the OID represents the actual data, you should use GAUGE for this field. If the OID value is a constantly incremented number, you should use COUNTER for this field. The two remaining field values, DERIVE and ABSOLUTE can be ignored in most situations. | | (Custom Data) OID | The actual SNMP OID to graph. It is typically a good idea to enter the number OID here as opposed to using MIB names. For example, `1.3.6.1.2.1.25.1.6.0` is the HOST-RESOURCES-MIB process-count scalar, where exposed by the agent. Use GAUGE for that value. | -So, based upon your specific OID that you are graphing, You will need to fill +So, based upon your specific OID that you are graphing, you will need to fill out these fields before the new graph can be created properly. When finished filling in values for these fields, click the Create button. Your @@ -53,7 +53,7 @@ menu pick. > **NOTE**: When comparing the Table above, to the image, you will see that the > `Opacity/Alpha Channel` pick is missing from the interface. To add it, you -> simply need > to edit the `Generic SNMP OID` > **Graph Template**, add a new +> simply need to edit the `Generic SNMP OID` **Graph Template**, add a new > **Graph Item Input** override to the Alpha/Opacity on the Graph Template as > shown below. That topic will be covered in the **Graph Template** section of > the manual though. diff --git a/Graphs.md b/Graphs.md index ec8571f..32f9c2c 100644 --- a/Graphs.md +++ b/Graphs.md @@ -5,22 +5,22 @@ This section will describe **Graph** management in Cacti. Cacti features a way to view the graphs per device via the console. This allows the administrator to view the graphs that are attached to a specific device. You can also search by type of graph. Below we search for graphs that are -associated with the local linux server +associated with the local Linux server. ![graph management](images/graph-management.png) Clicking on one of the graphs in the list shows the below menu. From this menu -you can enable debugging on the specific graph you can also change the template -of the graph amongst other things +you can enable debugging on the specific graph. You can also change the +template of the graph, amongst other things. ![Graph management click](images/graph-management-graph.png) ### Modifying the graph template Cacti allows you to change many aspects of the graph template. You can -change parameters such the title of the graph as well the size of the graphs. -These changes will be pushed to the graph template so other devices using the -template will also be updated. +change parameters such as the title of the graph as well as the size of the +graphs. These changes will be pushed to the graph template so other devices +using the template will also be updated. ![Graph template options](images/graph-template-options.png) diff --git a/How-To-Create-Data-Input-Method.md b/How-To-Create-Data-Input-Method.md index 26e58fb..3d56b47 100644 --- a/How-To-Create-Data-Input-Method.md +++ b/How-To-Create-Data-Input-Method.md @@ -1,13 +1,13 @@ # Data Input Methods - From Script Output to Complete Graph In this How-To we will take you through the process of creating a script and -then from the scripts output generate a complete **Graph Template** that you can -apply to your Cacti system. You should be able to reproduce this process +then from the script's output generate a complete **Graph Template** that you +can apply to your Cacti system. You should be able to reproduce this process regardless of the script type in question. ## Data Input Method returning a single value -Lets start with a simple script that takes a hostname or IP address as input +Let's start with a simple script that takes a hostname or IP address as input parameter returning a single value. `/scripts/ping.pl`: @@ -43,13 +43,13 @@ Methods** and click **Add**. You should see: Please fill in **Name**, select **Script/Command** as Input Type and provide the command that should be used to retrieve the data. You may use `` as a symbolical name for the path_to_your_Cacti_installation. Those commands will -be executed from crontab; so pay attention to providing full path to binaries if -required (e.g. `/usr/bin/perl` instead of `perl`). Enter all **Input -Parameters** in `<>` brackets. Click create to see: +be executed from crontab; so pay attention to providing the full path to +binaries if required (e.g. `/usr/bin/perl` instead of `perl`). Enter all +**Input Parameters** in `<>` brackets. Click create to see: ![Data Input Methods edit](images/r-dim2.png) -Now lets define the **Input Fields**. Click **Add** as given above to see: +Now let's define the **Input Fields**. Click **Add** as given above to see: ![Input Fields](images/r-dim3.png) @@ -61,7 +61,7 @@ the current device. Click create to see: ![Output Fields](images/r-dim4.png) -At least, define the **Output Fields**. Again, click **Add** as described above: +Finally, define the **Output Fields**. Again, click **Add** as described above: ![Output Fields 2](images/r-dim5.png) @@ -74,7 +74,7 @@ Click **Save** and you're done. ## Creating the Data Template -Now you want to tell Cacti, how to store the data retrieved from this script. +Now you want to tell Cacti how to store the data retrieved from this script. Please go to **Data Templates** and click Add. You should see: ![Data Templates New](images/r-dt1.png) @@ -105,7 +105,7 @@ Field of the Script. Click **Save** and you're done. ## Creating the Graph Template -Now you want to tell Cacti, how to present the data retrieved from this script. +Now you want to tell Cacti how to present the data retrieved from this script. Please go to **Graph Templates** and click **Add**. You should see: ![Graph Template New](images/r-gt1.png) @@ -129,7 +129,7 @@ Format** that will be shown underneath the **Graph** as a legend. Again, ![Graph Template Items 3](images/r-gt4.png) Notice, that not only an entry was made under **Graph Template Items**, but -under **Graph Item Inputs** as well. Don't bother with that now. Lets fill some +under **Graph Item Inputs** as well. Don't bother with that now. Let's fill some more nice legends, see: ![Graph Template Items 4](images/r-gt5.png) @@ -155,7 +155,7 @@ drop down. Click the plus (+) glyph to see: ![Associate Data Queries](images/r-dev2.png) By default, the **Graph Template** is added and shown as **Is Being Graphed**. -The reason for this is that Cacti now automatically creates **Graphs** +The reason for this is that Cacti now creates **Graphs** automatically, unless disabled. If the **Graph Template** shows **Not Being Graphed**, you can create the **Graph** by pressing the **Create Graphs** at the top of the **Devices** page. Click this link to see: @@ -169,11 +169,11 @@ Check the box that belongs to the new template and Create. See the results: This will automatically - Create the needed **Graph Description** from the **Graph Template**. As you - may notice from the success message, this **Graph** takes the hosts name in - it: **router - Test ping** (router is the hosts name of this example). + may notice from the success message, this **Graph** takes the host's name in + it: **router - Test ping** (router is the host's name of this example). - Create the needed **Data Source Description** from the **Data Template**. - Again, you will find the Hosts name replaced for |host_description| + Again, you will find the host's name replaced for |host_description| - Create the needed RRDfile with definitions from the **Data Template**. The name of this file is derived from the Host and the **Data Template** in @@ -191,9 +191,9 @@ may look like: ## Walkthrough: Script with more Output Parameters -The script below will be implemented in perl. Please note that any supported +The script below will be implemented in Perl. Please note that any supported language is supported using Cacti from direct command execution to scripts -written in perl, python, php, bash, etc. +written in Perl, Python, PHP, bash, etc. ```shell #!/usr/bin/perl -w @@ -281,7 +281,7 @@ printf("udpInDatagrams:%s udpOutDatagrams:%s", # <<< cacti requires this format! $session->close; ``` -It should produce following output, when executed from command line: +It should produce the following output, when executed from command line: ```console [prompt]> perl udp_packets.pl localhost 161 public 1 @@ -329,9 +329,9 @@ the other. All of them are listed in sequence, starting with ``: ![More Scripts dim 7](images/dim-add07.png) -We've used some of Cacti builtin parameters. When applied to a host, those -variables will be replaced by the hosts actual settings. Then, this command will -be stored in the poller_command table. Now **Save** your work to see +We've used some of Cacti's built-in parameters. When applied to a host, those +variables will be replaced by the host's actual settings. Then, this command +will be stored in the poller_command table. Now **Save** your work to see ![More Scripts dim 8](images/dim-add08.preview.png) @@ -345,7 +345,7 @@ Now udpOutDatagrams: ![More Scripts dim 10](images/dim-add10.preview.png) Be careful to avoid typos. The strings entered here must **exactly** match those -spitted out by the script. **Double check Output Fields**! Now, results should +spat out by the script. **Double check Output Fields**! Now, results should be like ![More Scripts dim 11](images/dim-add11.preview.png) @@ -357,25 +357,25 @@ Finally Save and be proud! ## The Data Template The previous step explained how to call the script that retrieves the data. Now -it's time to tell Cacti, how to store them in RRDfiles. You will need a single +it's time to tell Cacti how to store them in RRDfiles. You will need a single **Data Template** only, even if two different output fields will be stored. RRD -files are able to store more than one output fields; RRDtool's name for those is +files are able to store more than one output field; RRDtool's name for those is **Data Source**. So we will create 1. One single **Data Template** representing one RRDfile 2. Two output fields/data sources -The first step is quite the same as Create the **Data Template** for a simple +The first step is quite the same as creating the **Data Template** for a simple **Data Input Method**. For sure, we provide a different name, **Example - UDP -Packets**. Now, let's enter the first **Data Source**. Again, its like above. +Packets**. Now, let's enter the first **Data Source**. Again, it's like above. But we now provide the name of **udpInPackets**, enter a **Maximum value** of 100,000 and select the **Data Source Type** of COUNTER. ![Data Template - Two DS, Step1](images/dim-add13.preview.png) -Then save and find with the exception that the _Output Field_ will be set to -_None Selected_. Therefore, before adding the second _Data Source Item_, make +Then save and you will find that the _Output Field_ is set to +_Not Selected_. Therefore, before adding the second _Data Source Item_, make sure you select the _Output Field_ of _udpInDatagrams_ and press the Save button to create the association. diff --git a/How-To-Data-Queries.md b/How-To-Data-Queries.md index 6bcd215..e465ee4 100644 --- a/How-To-Data-Queries.md +++ b/How-To-Data-Queries.md @@ -1,12 +1,12 @@ # How To Work with Data Queries During the past few weeks as I've made various SNMP Data Query templates I've -ran into a few 'tricks' (which existing user scripts use) to make them work +run into a few 'tricks' (which existing user scripts use) to make them work with most devices. It'd probably be beneficial to publish these in some manner on the documentation site so others don't have to stumble. As you already know getting an index is the hardest thing users struggle with. -I've ran across three scenarios and their solutions: +I've run across three scenarios and their solutions: ## SNMP index is present @@ -69,7 +69,7 @@ A verbose query from inside Cacti shows the following: ## SNMP Index is a STRING -Some devices (like on a F5 BigIP) use a STRING to represent the Index due to +Some devices (like on an F5 BigIP) use a STRING to represent the Index due to the fact it is user configurable. In this case we need Cacti to parse out the variable length Index. @@ -89,7 +89,7 @@ F5-BIGIP-LOCAL-MIB::ltmVirtualServStatName."LXWEB" = STRING: LXWEB F5-BIGIP-LOCAL-MIB::ltmVirtualServStatName."EPXWEB" = STRING: EPXWEB ``` -Next we need to define a OID/REGEXP that will look for the start of the STRING +Next we need to define an OID/REGEXP that will look for the start of the STRING and create the Index. In this case the regexp "^.{32}" matches the first 32 characters beginning at the start of the OID -- this is the length of the OID from the leading dot up to the start of the index. Then the capturing parens @@ -135,7 +135,7 @@ will spit out the following: Some devices do not offer a traditional Index OID to query. Here we need to create/fake the index for Cacti. This is accomplished once again with a simple -REGEX to split off the last OID (or middle, etc) to create the index for cacti. +REGEX to split off the last OID (or middle, etc) to create the index for Cacti. SNMPWALK: @@ -198,10 +198,10 @@ Cacti results in the following: ## A note on Textual SNMP MIBS and SPINE -Please be aware the SPINE does not parse out textual Mibs. This means that if +Please be aware that Spine does not parse out textual MIBs. This means that if you were to use an OID that contained a string reference rather than numerical this will cause Graphs to fail as they will not be generated due to spine not -receiving a value at each poll +receiving a value at each poll. Example of a bad OID reference for spine: diff --git a/How-To-Existing-SNMP-Data-Queries.md b/How-To-Existing-SNMP-Data-Queries.md index 013ab9f..59d453c 100644 --- a/How-To-Existing-SNMP-Data-Queries.md +++ b/How-To-Existing-SNMP-Data-Queries.md @@ -3,12 +3,12 @@ ## Walkthrough: A New SNMP Data Query For SNMP Queries, you won't need to create a data retrieval script. Cacti will -use SNMP to retrieve information. But cacti will need additional information on +use SNMP to retrieve information. But Cacti will need additional information on how the indexed data is structured. Think about a table (a MIB table in this -case); you'll have to tell cacti about the table structure. This is done by -defining an XML file. Basically, you have to define the index to tell cacti +case); you'll have to tell Cacti about the table structure. This is done by +defining an XML file. Basically, you have to define the index to tell Cacti about the number of rows and about their unique index. This index is later used -to access each rows data. Furthermore, you may define columns, that serve as +to access each rows data. Furthermore, you may define columns that serve as **descriptive fields** to be shown in the selection table. The XML file knows them as @@ -16,14 +16,14 @@ them as input ``` -You will have to define those fields, that will be queried for the readings, -e.g. ifInOctets, ifOutOctets, ifInErrors, …The XML file knows them as +You will have to define those fields that will be queried for the readings, +e.g. ifInOctets, ifOutOctets, ifInErrors, … The XML file knows them as ```xml output ``` -Lets have an example: standard Interface MIB with the corresponding part of the +Let's have an example: standard Interface MIB with the corresponding part of the `/resource/snmp_queries/interface.xml` file are displayed using the following table: @@ -55,16 +55,16 @@ descriptive information to each row to help you identify the proper interface to use. Those parameters of `output` can be compared to output parameters of a script (see ping.pl script above). These are the readings from the device. By selecting the appropriate row (the one grayed out had been -selected by me), you tell cacti to retrieve data from the interface defined by -this index. But how does cacti know, what output parameters it shall retrieve? +selected by me), you tell Cacti to retrieve data from the interface defined by +this index. But how does Cacti know what output parameters it shall retrieve? See the **Select a Graph Type to Create** dropdown. It specifies a **Graph Template** defined for this Data Query. The Graph Template in turn references a **Data Template** which incorporates the needed output parameters as Data Sources. This works quite the same way as defined for a Data Input Method. To sum up: the SNMP XML file is somehow a **replacement** for the **Data Input -Method** described above to be used on indexed values. It tells cacti, what data -it should retrieve (direction: output). To help you identifying the relevant +Method** described above to be used on indexed values. It tells Cacti what data +it should retrieve (direction: output). To help you identify the relevant indexes, the XML defines descriptive parameters (direction: input) to be displayed in the selection table. @@ -82,9 +82,9 @@ Data (Indexed)** as **Data Input Method**. Press **Create** to see: ![Fill Data for Data Query](images/r-dq2.png) -See, that cacti found the XML file. Don't bother with the Associated Graph +See that Cacti found the XML file. Don't bother with the Associated Graph Templates at the moment. The success message does not include checking of the -XML file's content. Not lets proceed to the next definitions. +XML file's content. Now let's proceed to the next definitions. ## Create a Data Template to tell Cacti how to store data @@ -98,18 +98,18 @@ from the *Data Source Item* heading to see: ![Enter new Data Source Item](images/r-dq-dt1.png) The name of the internal RRDtool Data Source (ifOutOctets) is not replaced in -the Tab until you save your work. By default, *Maximum Value* is set to 100. -This is way too low for an interface. All readings above this value will be -stored as NaN by RRDtool. To avoid this, set to U (no maximum) or to a -reasonable value (e.g. interface speed). Don't forget to specify COUNTER! You -will have noticed, that the name of the data source does not match the Name in +the Tab until you save your work. By default, *Maximum Value* is set to U +(no maximum). You may keep it or set a reasonable value (e.g. interface +speed); all readings above a maximum will be stored as NaN by RRDtool. +Don't forget to specify COUNTER! You +will have noticed that the name of the data source does not match the Name in the interface.xml. Don't worry, the solution to this is given later on. Before leaving, pay attention to the bottom of the page: ![Check Indexes for Data Query Data Template](images/r-dq-dt2.png) This is specific to indexed **Data Queries**. You will have to check the last -three items to make indexing work. All other items should be left alone, there +three items to make indexing work. All other items should be left alone; their values will be taken from the appropriate device definitions. Now click **Save** and you're done with this step. @@ -134,7 +134,7 @@ Template** we've left alone in the very first step? Now it will get a meaning. Go to **Data Queries** and select our new one. Then press the plus (+) glyph, and select *Interface - Traffic (bits/sec)* from the drop down as shown below. Press **Create** to initialize the association of this **Graph -Template** with out new **Data Query**. +Template** with our new **Data Query**. ![Add new associated Graph Template](images/r-dq3-0.png) @@ -146,12 +146,12 @@ Values*. ![Creating new associated Graph Template](images/r-dq4.png) -In addition, we need to setup any *Suggested Values* as you can see from the +In addition, we need to set up any *Suggested Values* as you can see from the example below. *Suggested Values* are optional when the **Data Query** can have a multitude of suggested names based upon the output from the **Data Query**. For both the *Suggested Values - Graphs* and *Suggested Values - Data Sources*, we must include the name of the column, and the *Suggested Value* which can -includes the special tag *|query_xmlcolumn|* as shown in the examples below. +include the special tag *|query_xmlcolumn|* as shown in the examples below. ![Suggested Values for Associated Graph Template](images/r-dq5.png) @@ -189,7 +189,7 @@ Query**, there will be no *Associated Graph Type* drop down. Once you create more than one **Associated Graph Template** for the **Data Query**, you will see a drop down just above the **Create** button showing the available **Graph Templates** for the **Data Query** in question, like the *SNMP - Interface -Statistics* as show below. +Statistics* as shown below. ![Additional Associated Graph Templates Example](images/r-dq-dev3.png) diff --git a/How-To-New-SNMP-Data-Queries.md b/How-To-New-SNMP-Data-Queries.md index 1b21e40..9111358 100644 --- a/How-To-New-SNMP-Data-Queries.md +++ b/How-To-New-SNMP-Data-Queries.md @@ -1,11 +1,11 @@ # SNMP Data Query Walkthrough -This walkthrough will show you how to implement a new SNMP Data Query. Assuming, +This walkthrough will show you how to implement a new SNMP Data Query. Assuming you know the SNMP table, the next steps show how to proceed. ## Building Raw XML File -The starting point will be snmptable for a well know table of the HOSTS MIB: +The starting point will be snmptable for a well-known table of the HOSTS MIB: ```console snmptable -c -v 1 HOST-RESOURCES-MIB::hrStorageTable @@ -72,7 +72,7 @@ The first index is `.1.3.6.1.2.1.25.2.3.1.1.1`, but the Index Base is ``` -Lets talk about the header elements +Let's talk about the header elements | Field | Description | | ---------------- | --------------------------------------------------------------------------------- | @@ -82,11 +82,11 @@ Lets talk about the header elements | index_order_type | numeric instead of alphabetic sorting | | oid_index | the index of the table | -There are more header elements, but for sake of simplification, we'll stick to -that for now. +There are more header elements, but for the sake of simplification, we'll stick +to that for now. -Lets turn to the fields. They correspond to the columns of the snmptable. For -debugging purpose it is recommended to start with the Index field first. This +Let's turn to the fields. They correspond to the columns of the snmptable. For +debugging purposes it is recommended to start with the Index field first. This will keep the XML as tiny as possible. The `` section contains one or more fields, each beginning with `` and ending with ``. It is recommended but not necessary to take the textual @@ -100,7 +100,7 @@ representation of the OID or an abbreviation of that. | Direction | Input (for values that may be printed as COMMENTs or the like). Output (for values that shall be graphed, e.g. COUNTERs or GAUGEs). | | OID | the real OID as numeric representation | -Now save this file and lets turn to cacti to implement this one. First, go to +Now save this file and let's turn to Cacti to implement this one. First, go to **Data Queries** to see ![SNMP Table 1 - Data Query](images/dq-01.preview.png) @@ -115,26 +115,26 @@ and don't forget to choose **Get SNMP Data (Indexed)**. **Create** to see ![SNMP Table 3 - Data Query](images/dq-03.preview.png) It has now **Successfully located XML file**. But this does not mean that there -are no errors. So lets go on with that. Turn to the **Device** you want to query -and add the new **Data Query** as shown: +are no errors. So let's go on with that. Turn to the **Device** you want to +query and add the new **Data Query** as shown: ![SNMP Table 1 - Device](images/dev-01.preview.png) -**Index Count** was chosen on purpose as the **Re-Index Method** to tell cacti +**Index Count** was chosen on purpose as the **Re-Index Method** to tell Cacti to re-index not only on reboot but each time the Index Count (e.g. number of partitions) changed. When done, see the results as ![SNMP Table 2 - Device](images/dev-02.preview.png) -You'll notice, that on my laptop there are 11 indices = 11 partitions. So the +You'll notice that on my laptop there are 11 indices = 11 partitions. So the XML worked up to now! To make this clear, select **Verbose Query** to see: ![SNMP Table Preview - Device](images/dev-03.preview.png) ## Insert all descriptive table columns -Now lets put all descriptive table columns into the SNMP Query XML file. This +Now let's put all descriptive table columns into the SNMP Query XML file. This refers to - hrStorageType @@ -189,16 +189,16 @@ must. ``` The `` information will later show up as a column heading. Don't -forget to provide the correct base OIDs. Remember, that the **Index** will +forget to provide the correct base OIDs. Remember that the **Index** will always be appended to those OIDs, e.g. the first Description will be fetched from OID = `.1.3.6.1.2.1.25.2.3.1.3.1` (that is base OID = `.1.3.6.1.2.1.25.2.3.1.3` together with the appended index `.1` will form the -complete OID `.1.3.6.1.2.1.25.2.3.1.3.1.` +complete OID `.1.3.6.1.2.1.25.2.3.1.3.1.`). -Please notice, that all fields that will yield descriptive columns only take +Please notice that all fields that will yield descriptive columns only take `input` -If you have completed your work, turn to the cacti web interface and select your +If you have completed your work, turn to the Cacti web interface and select your host from the **Devices** list to see: ![SNMP Table 3 - Devices](images/dev-10.preview.png) @@ -216,14 +216,14 @@ And clicking **Create Graphs for this Device** will result in ![SNMP Table 6 - Devices](images/dev-13.preview.png) -You're not supposed to really create graphs at this moment, cause the XML is not -yet complete. And you'll notice, that the second column does not present very +You're not supposed to really create graphs at this moment, because the XML is +not yet complete. And you'll notice that the second column does not present very useful information. So it may be omitted in later steps. ## Getting the Output Values -Now lets modify the XML again. As said earlier, the second column is not very -meaningful, so lets drop it. To get the output values, I appended the last two +Now let's modify the XML again. As said earlier, the second column is not very +meaningful, so let's drop it. To get the output values, I appended the last two XML field descriptions, see: ```xml @@ -284,19 +284,19 @@ This works very much the same way as above. - Give the corresponding base OIDs -Now we may proceed as said above: Pressing the green circle runs that XML +Now we may proceed as said above: Pressing the green circle runs those XML definitions against the host and updates the rows/columns. You will notice the “missing” second column only when Create Graphs for this Device is selected. --- Note: Don't forget to set `output` for all -variables/fields, that should be stored in RRDfiles and be graphed!. This is the +variables/fields that should be stored in RRDfiles and be graphed! This is the mistake that occurs most often. ### Defining the Data Template -The Data Template will define, how the data is retrieved by the XML Query is +The Data Template will define how the data retrieved by the XML Query is saved. For more information about the principles of operation, please see Common Tasks. Please go to **Data Templates** and **Add**: @@ -321,8 +321,8 @@ second **Data Source Item**: ![SNMP Table 4 - Data Template](images/dt-04.preview.png) Please pay attention to setting the **Maximum Value** to 'U' (no limit). Else, -all values exceeding the pre-defined as **NaN**. Now scroll down to the bottom -of the page and check **Index Type, Index Value and Output Type ID** +all values exceeding the maximum are stored as **NaN**. Now scroll down to the +bottom of the page and check **Index Type, Index Value and Output Type ID** ![SNMP Table 5 - Data Template](images/dt-05.preview.png) @@ -330,7 +330,7 @@ of the page and check **Index Type, Index Value and Output Type ID** ### Defining the Graph Template -The Graph Template will define, how the data is presented. For more information +The Graph Template will define how the data is presented. For more information about the principles of operation, please see [Graph Templates](Graph-Templates.md). Please go to Graph Templates and Add: @@ -394,12 +394,12 @@ and **Create** to see: ![Graphs created](images/dev-21.preview.png) -Lets visit the **Data Sources**: +Let's visit the **Data Sources**: ![Host Data Sources](images/ds-01.preview.png) As you can see, the **Suggested Values** of the Data Query defined the Name of -the Data Template. So lets go to **Graph Management**: +the Data Source. So let's go to **Graph Management**: ![Graph Management Preview](images/gm-01.preview.png) @@ -413,7 +413,7 @@ This might be the end of the show. While it should be enough to define some explain. As you may have noticed, the quantities defined by this example are counted in -Units, not Bytes. This is somewhat inconvenient but may be changed. Lets wait +Units, not Bytes. This is somewhat inconvenient but may be changed. Let's wait for the next Section... ### VALUE/REGEXP in Action @@ -460,7 +460,7 @@ To use these values, we define a CDEF: ![CDEF Preview](images/cdef-01.preview.png) -Notice, that with recent releases of cacti, it is possible to use `|query_*|` +Notice that with recent releases of Cacti, it is possible to use `|query_*|` values within CDEFs. Finally, go to **Graph Templates** and use this CDEF with all **Graph Items**: diff --git a/How-To-SNMP-Custom-Script.md b/How-To-SNMP-Custom-Script.md index 61401d4..26db96d 100644 --- a/How-To-SNMP-Custom-Script.md +++ b/How-To-SNMP-Custom-Script.md @@ -2,7 +2,7 @@ Some SNMP servers can be extended with custom scripts or programs. The output of the running script can then be read using the OID and can therefore be easily used in Cacti. An example is the thermometer on the USB port. -In combination with [Graph a Single SNMP OID](Graph-a-Single-SNMP-OID.md), this is a very simple way to display such data +In combination with [Graph a Single SNMP OID](Graph-a-Single-SNMP-OID.md), this is a very simple way to display such data. We will show the procedure for the very extensive Net-SNMP and FreeBSD BSNMPD. @@ -18,7 +18,7 @@ We will show the procedure for the very extensive Net-SNMP and FreeBSD BSNMPD. NET-SNMP-EXTEND-MIB::nsExtendOutNumLines."test" = INTEGER: 1 NET-SNMP-EXTEND-MIB::nsExtendResult."test" = INTEGER: 0`` - For Cacti you need numeric OID, you can use snmptranslate: + For Cacti you need a numeric OID, you can use snmptranslate: **> snmptranslate -On NET-SNMP-EXTEND-MIB::nsExtendOutput1Line.\"test\"** The result is an OID that we can use: @@ -26,7 +26,7 @@ We will show the procedure for the very extensive Net-SNMP and FreeBSD BSNMPD. ## FreeBSD BNSMPD - You need install bsnmp-ucd + You need to install bsnmp-ucd **> pkg install bsnmp-ucd** Add these lines to /etc/snmpd.config and restart bsnmpd @@ -37,7 +37,7 @@ We will show the procedure for the very extensive Net-SNMP and FreeBSD BSNMPD. extNames.1 = "second command" extCommand.1 = "/path/to/script.sh param1" - Name and result of first command have the same intex: + Name and result of first command have the same index: **> snmpwalk -v2c -c testing 127.0.0.1 .1.3.6.1.4.1.2021.8.1.2.0** ``.1.3.6.1.4.1.2021.8.1.2.0 = STRING: first command`` diff --git a/How-To-SSH-Tunnels.md b/How-To-SSH-Tunnels.md index ab146b9..0a65fcb 100644 --- a/How-To-SSH-Tunnels.md +++ b/How-To-SSH-Tunnels.md @@ -1,10 +1,10 @@ # How To Setup SSH Tunnels to graph a remote Unix server Howto created by `fmangeant` at [Cacti -Forum](http://forums.cacti.net/viewtopic.php?t=24960) +Forum](https://forums.cacti.net/viewtopic.php?t=24960) This HowTo will explain how to use SSH tunnels to graph a Unix server that -isn't directly reachable by your Cacti server : +isn't directly reachable by your Cacti server: ![Overview](images/device-templates-ssh-tunnel.png) @@ -13,13 +13,13 @@ target server. ## Configuring the SSH tunnel -On Gateway, create a "cactiuser" user : +On the Gateway, create a "cactiuser" user: ```console # useradd -d /home/cactiuser -m cactiuser ``` -Then you have to generate SSH keys (without passphrase) : +Then you have to generate SSH keys (without passphrase): ```console # su - cactiuser @@ -32,25 +32,26 @@ Your identification has been saved in /home/cactiuser/.ssh/id_rsa. Your public key has been saved in /home/cactiuser/.ssh/id_rsa.pub. The key fingerprint is: 40:f6:91:a1:2d:d1:46:d4:76:e3:d8:c6:3f:c2:cf:f2 cactiuser@gateway -```console +``` -The public key of the "cactiuser" user has then to be authorized as an input key : +The public key of the "cactiuser" user has then to be authorized as an input +key: ```console $ cd $HOME/.ssh $ cp -p id_rsa.pub authorized_keys ``` -Finally, create the SSH tunnel : +Finally, create the SSH tunnel: ```console # su - cactiuser -c "ssh -f -N -g -L 192.168.0.2:10000:192.168.1.2:161 cactiuser@localhost" ``` This SSH tunnel will forward all packets sent to 192.168.0.2 on TCP port 10000, -to 192.168.1.2 on port TCP 161. +to 192.168.1.2 on TCP port 161. -The options that are used are the following : +The options that are used are the following: ```shell -f : requests SSH to go to background just before command execution @@ -66,7 +67,7 @@ You can add this command to `/etc/rc.local`, so it will be executed at boot time By default, the Net-SNMP agent listens on UDP port 161; we'll modify its configuration to listen on TCP port 161. -To do so, use that in `snmpd.conf` on the target server : +To do so, use that in `snmpd.conf` on the target server: ```ini agentaddress tcp:161 @@ -75,18 +76,18 @@ rocommunity mycommunity For a more detailed configuration of snmpd.conf, follow the [Net-SNMP guide in the -manual](https://docs.cacti.net/manual:087:1_installation.1_install_unix.4_configure_snmp) +manual](https://docs.cacti.net/manual:087:1_installation.1_install_unix.4_configure_snmp). ### Testing the SNMP connectivity -From the Gateway host, run this command : +From the Gateway host, run this command: ```console $ snmpwalk -v 1 -c mycommunity tcp:192.168.1.2 sysname SNMPv2-MIB::sysName.0 = STRING: target_server ``` -From the Cacti server, run this command : +From the Cacti server, run this command: ```console $ snmpwalk -v 1 -c mycommunity tcp:192.168.0.2:10000 sysname @@ -99,11 +100,11 @@ If not, review your network configuration (firewall rules, especially). ## Adding the device to Cacti -In Cacti, create a new device like that : +In Cacti, create a new device like that: ![Add device](images/device-templates-ssh-add-device.png) -Voila ! Your target server is graphed by Cacti :) +Voila! Your target server is graphed by Cacti :) --- Copyright (c) 2004-2026 The Cacti Group diff --git a/How-To-Script-Data-Queries.md b/How-To-Script-Data-Queries.md index b384313..26734ce 100644 --- a/How-To-Script-Data-Queries.md +++ b/How-To-Script-Data-Queries.md @@ -2,41 +2,39 @@ Goal of this HowTo will be to show the **principles of writing a Script Query**, including script, xml and all needed templates. Why should you create such a -thing? Suppose, your target features some indexed readings, that are **not** +thing? Suppose your target features some indexed readings that are **not** available via SNMP but by some other method (e.g. wget/cgi, ssh, NRPE, …). -Writing a Script Data Queries works very much the same way as SNMP Data Queries. +Writing Script Data Queries works very much the same way as SNMP Data Queries. But nevertheless, I'll take you through all of the steps now. The example uses PHP. Why PHP? First, it's easier to copy stuff from already -existing PHP scripts. Second, it would be possible to use cacti functions. It -should be possible to imagine, how this works with other programming languages. +existing PHP scripts. Second, it would be possible to use Cacti functions. It +should be possible to imagine how this works with other programming languages. Strictly speaking, I'm not that PHP expert. So be patient with me. Please pay attention. This HowTo will not explain how to write a **Script Server Data Query** (yes, there is such a thing!). It would not introduce that many changes. But this will be left to some other HowTo. -Personally, my primary goal was to use an example, that all users should be able +Personally, my primary goal was to use an example that all users should be able to copy to execute each and every step on its own. Unfortunately, there seems to -be no example, that is common enough and interesting at the same time. So I'm -sorry to announce, that this HowTo will show “Interface Traffic Data Gathering”. +be no example that is common enough and interesting at the same time. So I'm +sorry to announce that this HowTo will show “Interface Traffic Data Gathering”. Yes, I know, this is not that new. And surely, it will not be as fast as pure SNMP. So, to my shame, I suppose that this will never make it into any production environment. But, again, this is not the primary goal. Before starting the work, I feel encouraged to point out a drawback of this -approach. Cacti will start a PHP instance, each time it has to fetch a value +approach. Cacti will start a PHP instance each time it has to fetch a value from the target device. This is not that fast, obviously. And it will not prosper from the performance boost when switching over from cmd.php to Spine. Of -course, even Spine will need to start php! And that's exactly, where the thingy +course, even Spine will need to start PHP! And that's exactly where the thingy called **Script Server Data Query** drops in. But let's leave this for the next main chapter. -The code runs on Cacti 0.8.7 versions. - ## Basic Script -The starting point will be some very basic php script. Put it into +The starting point will be some very basic PHP script. Put it into `/scripts/query_interface_traffic.php`. It will show interface indices only for the given target host. The script takes two parameters as input, the **hostname** of the target and the string **index**. You have to @@ -133,9 +131,9 @@ As you see, my `` has 4 indices (interfaces). ### Discussion: function_reindex -You may wonder why this function drops in. Well, lets have a look at -`cacti_snmp_walk`. This function is part of cacti itself and eases the use of -SNMP. That's why I call it here. But unfortunately, it's output looks like +You may wonder why this function drops in. Well, let's have a look at +`cacti_snmp_walk`. This function is part of Cacti itself and eases the use of +SNMP. That's why I call it here. But unfortunately, its output looks like ```php Array @@ -172,7 +170,7 @@ The values of interest are stored in `$return_arr[$i] = $arr[$i][“value”];`. ## XML File -This given, the first step will be the xml file defining how to access index +This given, the first step will be the XML file defining how to access index values only. So change to your `/resource/script_queries` directory and create a file named **ifTraffic.xml**. You may of course choose your own name. @@ -194,12 +192,12 @@ name. ``` -Lets talk about the header elements +Let's talk about the header elements | field | description | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| name | Short Name; chose your own one if you want | -| script_path | Whole command to execute the script from cli. `path_php_binary`is a cacti builtin variable for`/the/full/path/to/php`. `path_cacti` in turn gives the path of the current cacti installation directory. | +| name | Short Name; choose your own one if you want | +| script_path | Whole command to execute the script from the CLI. `path_php_binary` is a Cacti builtin variable for `/the/full/path/to/php`. `path_cacti` in turn gives the path of the current Cacti installation directory. | | arg_prepend | All arguments passed to the script go here. There are some builtin variables, again. `host_hostname` represents the hostname of the device this query will be associated to. | | arg_index | The string given here will be passed just after all `` to the script for indexing requests. Up to now, this is the only method our script will answer to. | | fields | All fields will be defined in this section. Up to now, only the index field is defined | @@ -208,10 +206,10 @@ Lets talk about the header elements | direction | Description | | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| input | defines all fields that serve as a descriptive information to a specific table index. These values will not be graphed but may be printed in e.g.graph titles by means of `query\_` | +| input | defines all fields that serve as a descriptive information to a specific table index. These values will not be graphed but may be printed in e.g. graph titles by means of `query\_` | | output | defines all fields that will yield a number that should be stored in some RRDfile | -Now save this file and lets turn to cacti to implement this one. First, go to +Now save this file and let's turn to Cacti to implement this one. First, go to **Data Queries** to see ![Script Data Query - Add 01](images/dq-add-01.preview.png) @@ -226,12 +224,12 @@ and don't forget to choose **Get Script Data (Indexed)**. **Create** to see ![Script Data Query - Add 03](images/dq-add-03.preview.png) It has now **Successfully located XML file**. But this does not mean that there -are no errors. So lets go on with that. Turn to the **Device** you want to query -and add the new **Data Query** as shown: +are no errors. So let's go on with that. Turn to the **Device** you want to +query and add the new **Data Query** as shown: ![Script Data Query - Associate 01](images/dev-dq-01.preview.png) -**Index Count** was chosen on purpose as the **Re-Index Method** to tell cacti +**Index Count** was chosen on purpose as the **Re-Index Method** to tell Cacti to re-index not only on reboot but each time the Index Count (e.g. number of interfaces) changed. When done, see the results as @@ -244,8 +242,8 @@ To see your script at work, select **Verbose Query** to see: ## Completing the Script -Now, lets improve our basic script. First, lets define all the variables (OIDs), -this script should ask for. +Now, let's improve our basic script. First, let's define all the variables +(OIDs) this script should ask for. ```php ` may be listed as `|query_|`, e.g. for ifalias write `|query_ifalias|` and so forth. @@ -792,7 +790,7 @@ Don't worry about the first two entries; they are home-made. ## Creating the Images -Now, let's return to the **Device**, that we've already have used for this Data +Now, let's return to the **Device** that we've already used for this Data Query. **Create Graphs for this Device** ![Script Data Query - Devices 01](images/dev-dev-10.preview.png) diff --git a/How-To-Setup-Remote-Pollers.md b/How-To-Setup-Remote-Pollers.md index 9da65fe..fc9a0fd 100644 --- a/How-To-Setup-Remote-Pollers.md +++ b/How-To-Setup-Remote-Pollers.md @@ -1,17 +1,17 @@ # Remote Poller Setup -Remote Pollers add complexity to your cacti setup while also massively extended +Remote Pollers add complexity to your Cacti setup while also massively extending the scalability of it. Remote Pollers allow system admins to distribute the load of polling between different servers as well as provide another source of polling close to a device. -For example you may have a device in Toronto but if your pollers are in New York -the network latency may causes issues with your metrics having a remote poller +For example, you may have a device in Toronto but if your pollers are in New York +the network latency may cause issues with your metrics. Having a remote poller in Toronto in this case will help with that issue. ## Setup Instructions -The process of remote poller installation is similar to cacti installation. +The process of remote poller installation is similar to Cacti installation. In the wizard, select **New Remote Poller**. Use the same version of Cacti as the primary installation. @@ -21,7 +21,7 @@ With this setup the following layout is assumed - Remote poller 1 server IP is 192.168.1.10 -- Remote poller 2 servers Ip is 192.168.1.20 +- Remote poller 2 server's IP is 192.168.1.20 ## Database Configuration @@ -100,8 +100,8 @@ RDB_Port 3306 ## Spine poller and max connections -Since in a multi poller setup Spine is highly recommended you will need -to follow the following calculation when that calculation would be: +Since Spine is highly recommended in a multi-poller setup, you will need +to use the following calculation: ```console connections = spine-processes x ( 1 + threads-per-process + PHP servers ) diff --git a/How-To-Work-With-Templates.md b/How-To-Work-With-Templates.md index c60b43b..04e7ad5 100644 --- a/How-To-Work-With-Templates.md +++ b/How-To-Work-With-Templates.md @@ -19,7 +19,7 @@ UDP-MIB::udpInErrors.0 = Counter32: 0 UDP-MIB::udpOutDatagrams.0 = Counter32: 8406 ``` -As cacti does not use the MIBs but pure ASN.1 OIDs, let's search the OID used as +As Cacti does not use the MIBs but pure ASN.1 OIDs, let's search the OID used as `udpInDatagrams`: ```console @@ -32,7 +32,7 @@ snmpwalk -c -v1 -On udp The needed OID is .1.3.6.1.2.1.7.1.0. Now learn how to enter this into a new Cacti Data Template: Please proceed to Data Templates and filter for SNMP. Check -the SNMP - Generic OID Template +the SNMP - Generic OID Template. ![Data Templates](images/data-templates.png) @@ -83,13 +83,13 @@ and **Create** to see: ![Graph Template New 3](images/graph-templates-new2.png) -Now let's add some **Graph Template** **Graph Items**. They will specify, +Now let's add some **Graph Template** **Graph Items**. They will specify which **Data Sources** defined by some **Data Template** should be displayed on the **Graph**. Please click Add as shown on the last image: ![Graph Template Items 1](images/graph-templates-item1.png) -Now click Save to see the resulting image below. Not that both the +Now click Save to see the resulting image below. Note that both the **Graph Item** and the **Graph Item Input** have been created. ![Graph Template Items 1](images/graph-templates-item1s.png) @@ -112,20 +112,20 @@ Now we could have continued to add the UDP Datagrams In by adding a second RRDfile Data Source to our **Data Template**, but we will skip that for this exercise and continue now that our **Graph Template** is reasonably completed. -At this point, since we only added **Graph Items** to the **Graph Template** +At this point, since we only added **Graph Items** to the **Graph Template**, there is no need to resave it at this point. We can simply continue to the next step. Now, you may add this new **Graph Template** to any **Devices** that -responds to the udp OID we specified in the **Data Template**. But in this +respond to the udp OID we specified in the **Data Template**. But in this case, please wait a moment. Let's first proceed to the **Device Template** -and use this new **Graph Gemplate** for our first own **Device Template**. +and use this new **Graph Template** for our first own **Device Template**. ## Device Template Creation The next task is to create a new **Device Template**. So, select **Device** under `Console > Templates` and press the Add button as in previous -examples. When you do that, you will be presented with an page that +examples. When you do that, you will be presented with a page that resembles the one below. ![Add Host Template](images/device-template-add.png) diff --git a/How-to-Graph-Your-Network.md b/How-to-Graph-Your-Network.md index 6255524..6c55cf3 100644 --- a/How-to-Graph-Your-Network.md +++ b/How-to-Graph-Your-Network.md @@ -2,7 +2,7 @@ At this point, you probably realize that graphing is Cacti's greatest strength. Cacti has many powerful features that provide complex graphing and data -acquisition, some which have a slight learning curve. Do not let that stop you +acquisition, some of which have a slight learning curve. Do not let that stop you however, because graphing your network is incredibly simple. The next two sections will outline the two basic steps which are typically @@ -10,7 +10,7 @@ required to create **Graphs** for most **Devices** or **Device Types**. > **NOTE**: The process described below is the Classic way for you to > create and manage **Devices** and **Graphs**. However, Cacti now -> allows your to Automate many of these tasks in the **Automation** +> allows you to Automate many of these tasks in the **Automation** > section of the Console. That topic is covered in the Automation Chapter. ## Creating a Device @@ -27,7 +27,7 @@ host type is defined under the host template dropdown, be sure to select it here. You can always choose "Generic SNMP Device" if you are just graphing traffic or "None" if you are unsure. It is important to remember that the host template you choose will not lock you into any particular -configuration, it will just provide more intelligent defaults for that type of +configuration; it will just provide more intelligent defaults for that type of host. ![Adding a New Device](images/new-device.png) @@ -38,8 +38,8 @@ host. device list. You may refer to it e.g. in graph titles. - **Hostname** - Either an IP address or a hostname. The hostname will be - resolved using the standard host resolving mechanisms, e.g. Dynamic Name - Services (DNS) + resolved using the standard host resolving mechanisms, e.g. Domain Name + System (DNS). - **Device Template** - A Host Template is a container for a list of graph templates that will be related to this host. @@ -47,7 +47,7 @@ host. - **Notes** - Notes for a given device. - **Disable Device** - Exclude this host from being polled. This is of - particular value, if a device is no longer available, but should be + particular value if a device is no longer available, but should be kept e.g. as a reference. ### Availability/Reachability Options @@ -69,7 +69,7 @@ host. - _**UDP Ping**_ - perform a UDP test - **Ping Port** - Available only for UDP/TCP PING test types. Please define the - port to be tested here. Make sure, that no firewall + port to be tested here. Make sure that no firewall intercepts the test ping. - **Ping Timeout Value** - After this time, the test fails. Measured in units of @@ -81,9 +81,9 @@ host. ### SNMP Options - **SNMP Version** - - _**Version 1**_ - Use SNMP Version 1. Be aware, that 64bit counters are not + - _**Version 1**_ - Use SNMP Version 1. Be aware that 64bit counters are not supported in this SNMP version. - - _**Version 2**_ - Referred to as SNMP V2c in most SNMP documentations + - _**Version 2**_ - Referred to as SNMP V2c in most SNMP documentation - _**Version 3**_ - SNMP V3, supporting authentication and encryption - **SNMP Community String** - SNMP read community for this device @@ -94,10 +94,10 @@ host. response. - **Maximum OIDs Per Get Request** - This is a performance feature. Specifies - the number of OID's that can be obtained in a single SNMP Get request. + the number of OIDs that can be obtained in a single SNMP Get request. _**WARNING**_: This feature only works when using Spine. _**WARNING**_ Some devices do not support values greater than `1` and/or may - reports as unknown data if this value is too high. + report as unknown data if this value is too high. ### Security Options for SNMP V3 @@ -134,7 +134,7 @@ providing a valid community string, you should see various statistics listed at the top of the page. If you see "SNMP error" instead, this indicates an SNMP problem between Cacti and your device. -Towards the bottom of the page there will be two addition boxes, Associated +Towards the bottom of the page there will be two additional boxes, Associated Data Queries, and Associated Graph Templates. If you selected a host template on the previous page, there will probably be a few items in each box. If there is nothing listed in either box, you will need to associate at least one data @@ -156,7 +156,7 @@ does not change an existing graph from 32-bit to 64-bit counters. The way in which Cacti retrieves SNMP information from a host has an effect on which SNMP-related options are supported. Currently there are three types of -SNMP retrieval methods in Cacti and are outlined below. +SNMP retrieval methods in Cacti, outlined below. #### SNMP Retrieval Types @@ -256,7 +256,7 @@ VACM Configuration v1 or v2c access, LEVEL will need to be noauth. ``` -As an example, following definitions in the snmpd configuration create a set of +As an example, the following definitions in the snmpd configuration create a set of definitions for use with SNMP V3 ```ini @@ -286,7 +286,7 @@ view all included .iso 80 access groupv3 "" any auth exact all all all ``` -When adding this stuff to your snmp configuration, please remember to restart +When adding this stuff to your SNMP configuration, please remember to restart the agent. Verify this setting using ```sh diff --git a/Install-Under-Enterprise-Linux-LAMP.md b/Install-Under-Enterprise-Linux-LAMP.md index ce9cade..d087529 100644 --- a/Install-Under-Enterprise-Linux-LAMP.md +++ b/Install-Under-Enterprise-Linux-LAMP.md @@ -100,7 +100,7 @@ import `cacti.sql`, and configure `include/config.php`. The examples there use Complete the dependency and filesystem-permission checks before opening the installer. The database account and operating-system service accounts are separate identities. Grant runtime write access to the actual FPM and poller -accounts, not automatically to the nginx master process or the database user. +accounts, not automatically to the Apache parent process or the database user. Keep executable code and credentials protected during normal operation. Open `https://cacti.example.com/cacti/` and complete the installer. Configure diff --git a/Known-Issues.md b/Known-Issues.md index ddf138d..f7633a7 100644 --- a/Known-Issues.md +++ b/Known-Issues.md @@ -2,22 +2,22 @@ Cacti has been under development and evolution for almost 20 years. So, with all that evolution there are going to be bugs from time to time and -sometimes these bugs can be severe. So, its important that people who +sometimes these bugs can be severe. So, it's important that people who use Cacti stay up to date on various bugs and limitations. -The best place to go for discovering what Bugs or Issue exist in Cacti is -to goto [GitHub](https://www.github.com/Cacti/cacti). From there, you can -view not only the Cacti repo, but a collection of Cacti Group mainteined +The best place to go for discovering what Bugs or Issues exist in Cacti is +to go to [GitHub](https://www.github.com/Cacti/cacti). From there, you can +view not only the Cacti repo, but a collection of Cacti Group maintained **Plugins**. For the Core Cacti and for every Plugin, there is an issue -tracker site the corresponds to it. Issues are generally broken into +tracker site that corresponds to it. Issues are generally broken into [Enhancements](https://github.com/Cacti/cacti/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement) and [Bugs](https://github.com/Cacti/cacti/issues?q=is%3Aopen+is%3Aissue+label%3Abug). -If you find that you are having experiencing and issue, and you are fairly +If you find that you are experiencing an issue, and you are a fairly experienced Cacti user, go directly to the Cacti issue tracker and submit your issue. If you are new to Cacti, it's best to go to the Cacti [Forums](https://forums.cacti.net) -first as you will likely find answers to your questions there. Generally -using either [Google](https://www.google.com), [DuckDuckGo](https://duckduckgo.com) +first as you will likely find answers to your questions there. Generally, +[Google](https://www.google.com), [DuckDuckGo](https://duckduckgo.com) and other popular search engines regularly scan the Cacti Forums, so using those services will help. diff --git a/Navigating-The-User-Interface.md b/Navigating-The-User-Interface.md index 723e729..f7cc644 100644 --- a/Navigating-The-User-Interface.md +++ b/Navigating-The-User-Interface.md @@ -1,12 +1,12 @@ # Navigating the Cacti User Interface The Cacti User Interface is visually broken into multiple panels. Each major -major panel is designed to hold content. Depending on the Cacti Theme you use -some of these panel may not be visible at the Theme Developers discretion. The -common panels are: +panel is designed to hold content. Depending on the Cacti Theme you use +some of these panels may not be visible at the Theme Developer's +discretion. The common panels are: -- **Top Tabs** - Where you perform major navigation separate content -- **Navigation Area** - If the content in navigated to by the Top Tab has a menu, +- **Top Tabs** - Where you perform major navigation to separate content +- **Navigation Area** - If the content navigated to by the Top Tab has a menu, it will be found here. - **Breadcrumb Bar** - This is where you can see where in the Cacti interface you are currently pointed to @@ -22,7 +22,7 @@ with the Footer. ![Cacti Layout](images/navigation-layout.png) In Cacti, when you click on the **Top Tab**, you will by default enter a -completely different section of Cacti. Cacti's Top Taps are Designed +completely different section of Cacti. Cacti's Top Tabs are designed to mimic browser tabs, this helps with users orienting themselves to the various sections of Cacti. When you have many **Plugins** installed as in the example above, you can see clearly the benefit of these @@ -38,12 +38,12 @@ various sub-panels. ![Cacti Layout Subpanels](images/navigation-layout-subpanel.png) Most of Cacti's pages are laid out in this fashion. However, what goes into -the Cacti **Content Area** is completely under the **Plugin** authors +the Cacti **Content Area** is completely under the **Plugin** author's control. -At the Theme developers discretion, all pages should include both the **Top Tab** -and **Breadcrumb Bar**. Inside of the **Breadcrumb Bar** or **Top Tap** panels -you should always see the *User Profile and Menu* on the right. +At the Theme developer's discretion, all pages should include both the +**Top Tab** and **Breadcrumb Bar**. Inside of the **Breadcrumb Bar** or **Top Tab** +panels you should always see the *User Profile and Menu* on the right. To use Cacti properly, you should first understand these sections. We will start by describing the Cacti *Console*. @@ -82,7 +82,7 @@ start by describing the Cacti *Console*. - **Table Filters** - Any **Cacti Table** can include a **Table Filters**. These filters can be + Any **Cacti Table** can include **Table Filters**. These filters can be used to limit the data returned to a **Cacti Table**. - **Actions Dropdown** @@ -149,26 +149,26 @@ into separate sub-menus. We will describe the purpose of each next. - **Management** - This is where all core Cacti **Site**, **Graph**, **Device**, **Tree**, **Data Source**, and **Aggregate** non-templated objects reside. When you install Cacti **Plugins**, you will find - they they extend this sub-menu. -- **Data Collection** - This is where you define rules for **Data Collection** + that they extend this sub-menu. +- **Data Collection** - This is where you define rules for **Data Collection**. Examples include: **Data Collectors**, **Data Input Methods** and **Data Queries** - **Templates** - This is where you find all of Cacti's various Templates - outside of Automation. By default, You will find Templates for + outside of Automation. By default, you will find Templates for **Graphs**, **Data Sources**, **Devices**, **Aggregates**, and **Colors**. - **Automation** - This sub-menu is where you find rules for automating **Device** Discovery, and Rules for creating **Devices**, **Graphs**, and **Trees**. - **Presets** - This area contains meta objects that cross Template - boundaries and are Global in nature. They include; **Data Source Profiles**, + boundaries and are Global in nature. They include: **Data Source Profiles**, **SNMP** options for Automation, **CDEFs**, **VDEFs**, **GPrint Presets**, and **Colors** - **Import Export** - This is how you can import and export various Cacti Template objects. - **Configuration** - This is where you manage **Users**, **User Groups**, **User Domains**, **Global Settings**, and **Plugins**. -- **Utilities** - This is where Cacti includes common utilities that can be use - in the Web Portal without having to goto the Command line. +- **Utilities** - This is where Cacti includes common utilities that can be used + in the Web Portal without having to go to the Command line. - **Troubleshooting** - There are some handy utilities here that help diagnose common problems with Cacti. diff --git a/PHP-Script-Server.md b/PHP-Script-Server.md index 8b72f54..4ed7dfc 100644 --- a/PHP-Script-Server.md +++ b/PHP-Script-Server.md @@ -12,9 +12,9 @@ rapid execution of PHP based **Scripts** and **Data Queries** in Cacti thus reducing **Data Collector** polling times. The reason that the **PHP Script Server** is so fast is that the PHP interpreter -is started in memory one time, and for every **Data Source** polled, it's -controlling function is interpreted only once. The resulting much faster script -execution and reduced load average during the **Data Collectors** life cycle. +is started in memory one time, and for every **Data Source** polled, its +controlling function is interpreted only once. The result is much faster script +execution and reduced load average during the **Data Collector's** life cycle. Using the **PHP Script Server** process over the traditional exec() process nets roughly a 20+ fold speed improvement in Cacti's **Data Collection** process. @@ -30,7 +30,7 @@ the `scripts` directory for reference. Two of them, `ss_host_cpu.php` and information. These two examples are based off the traditional POPEN version of the HostMib functions found in earlier versions of Cacti. Upgrading from these very old **Data Input -Methods** to the **PHP Script Server** is not longer supported. +Methods** to the **PHP Script Server** is no longer supported. ## Migration of Existing Scripts and Data Queries to PHP Script Server @@ -40,7 +40,7 @@ format. ### Script File Changes -First, if your script is written in another languages, say Perl, or Python, you +First, if your script is written in another language, say Perl or Python, you need to convert it to PHP. Then, each PHP Script file must be changed to the new Script Server format. The changes are not dramatic, but required for the proper operation of the **PHP Script Server**. Note that you should use PHP @@ -50,9 +50,9 @@ the steps below to complete the migration. 1. Copy your existing script to a new name. The name must begin `ss_` followed by your script name. The `ss_` identifies the script as being a script server - variety of the a PHP script and is named that way to easily identify them in + variety of a PHP script and is named that way to easily identify them in your install. For example, if you previously had a script called - `get_mysql_stats.php`, it's new name would be `ss_get_mysql_stats.php`. + `get_mysql_stats.php`, its new name would be `ss_get_mysql_stats.php`. 2. Edit the new PHP script and add the following required lines to the file, where `ss_myfunction` is the same as your filename. @@ -71,7 +71,7 @@ the steps below to complete the migration. ?> ``` -3. What was originally just mainline code, must be replaced with a function +3. What was originally just mainline code must be replaced with a function name. For example, if your program previously contained the following three lines of code: @@ -97,7 +97,7 @@ the steps below to complete the migration. must prefix them to make them unique among all functions. Our recommendation would be to prefix all functions with the name of the main function. For example if you have a function called "meme" you would rename it to - `ss_myfunction_meme`. This guarantee's correct **PHP Script Server** + `ss_myfunction_meme`. This guarantees correct **PHP Script Server** functionality. 5. The last step is to change the function call that could have traditionally @@ -114,7 +114,7 @@ the steps below to complete the migration. } ``` - Be careful, when writing Script Server Data Queries. Use the `return` + Be careful when writing Script Server Data Queries. Use the `return` function for returning results of the GET operation. But use `print` for `index` and `query` operations, e.g. @@ -145,7 +145,7 @@ below: |path_php_binary| -q |path_cacti|/scripts/myfucntion.php ``` - to simply the following: + simply to the following: ```xml |path_cacti|/scripts/ss_myfunction.php @@ -163,14 +163,14 @@ below: ### Data Query & Data Template Changes -Your **Data Queries** and **Data Templates** must be also modified. Although -somewhat self explanatory by now, you must make the following changes: +Your **Data Queries** and **Data Templates** must also be modified. Although +somewhat self-explanatory by now, you must make the following changes: 1. If the **Data Template** is based upon a **Script** and not a **Data Query**, - change it's **Data Input Method** to `Script Server`. + change its **Data Input Method** to `Script Server`. 2. If the **Data Template** is based upon a **Data Query**, edit the **Data - Query** and change it's **Data Input Method** to `Get Script Server Data + Query** and change its **Data Input Method** to `Get Script Server Data (Indexed)` and change the XML file path to point to the new XML file in the `/resource/script_server/` directory. @@ -183,7 +183,7 @@ migrated to the **PHP Script Server**. ## Testing Your Script in the Script Server To test your script in the script server, simply follow the instructions below. -When you have finished you testing, simply type "quit" + `` at the **PHP +When you have finished your testing, simply type "quit" + `` at the **PHP Script Server** command line to exit the script server. 1. Start the script server - You can do this by typing the following command: @@ -192,14 +192,14 @@ Script Server** command line to exit the script server. shell> php /script_server.php ``` - > **NOTE**: Due to a bug in Windows implementation of PHP, you must type the + > **NOTE**: Due to a bug in the Windows implementation of PHP, you must type the > full path name to the `script_server.php` file. 2. Type in your command - Using the example from above, you would type in the following: ```sh - script server> /path_cacti/scripts/ss_myserver_file.php my_function argument1 argument2 ... + script server> /path_cacti/scripts/ss_myserver_file.php ss_myfunction argument1 argument2 ... ``` In the Windows environment, your example could be the following: @@ -208,7 +208,7 @@ Script Server** command line to exit the script server. script server> c:\www\root\cacti\script\ss_myserver_file.php ss_myfunction argument1 argument2 ... ``` -3. If your script and function is operating properly, you should get a result. +3. If your script and function are operating properly, you should get a result. ```sh script server> c:\www\root\cacti\script\ss_myserver_file.php ss_myfunction argument1 argument2 ... @@ -218,7 +218,7 @@ Script Server** command line to exit the script server. 4. To quit the script server, simply type `quit ` at the command line. > **Note**: If there are errors in your script, you must restart the script - > server before your retest your code. + > server before you retest your code. --- Copyright (c) 2004-2026 The Cacti Group diff --git a/Plugin-Creating-Plugins.md b/Plugin-Creating-Plugins.md index 754947d..fa26949 100644 --- a/Plugin-Creating-Plugins.md +++ b/Plugin-Creating-Plugins.md @@ -27,19 +27,19 @@ functions, no code that runs automatically. Every Cacti plugin must have an INFO file. Any legacy plugins that do not have an INFO file will not work with Cacti 1.x. This was done intentionally so that plugin users could know ahead of time that their plugin was not designed for -Cacti 1.x. The info file includes several line including: +Cacti 1.x. The info file includes several lines, including: setting | description :--- | :--- -*name* | The short name for the plugin. Must be alpha with no spaces and match the directory name. +*name* | The short name for the plugin. Must be alpha with no spaces and match the directory name. *version* | The version of the plugin. Use two to three decimal places. *longname* | A user readable short description for the plugin. *author* | The author of the plugin. -*email* | The authors email address for obtaining support. +*email* | The author's email address for obtaining support. *homepage* | If the author maintains a homepage, the address for that page. *compat* | The minimum version of Cacti that is required to use this plugin. *requires* | A space delimited list of plugins:version that are required to use this plugin. -*capabilities* | A comma delimited list of capabilities for define what capabilities the plugin has primarily remotely. +*capabilities* | A comma delimited list of capabilities to define what capabilities the plugin has primarily remotely. *nosync* | A comma delimited list of relative paths that should not be synchronized with the remote data collectors, for example transient folders that may contain quite a bit of data that changes often. ## Mandatory functions @@ -49,7 +49,7 @@ for your plugin to properly be detected, and to properly function. ### plugin_PLUGINNAME_install -This first function is the installation function that is ran when a request is +This first function is the installation function that is run when a request is received to install your plugin. There are no arguments passed to this function. @@ -77,8 +77,8 @@ The next function is used for checking the version of your plugin, plus providing a little bit more information. Below is an example of this function. The few extra things to return are the -longname (aka Pretty Name that will be displayed), the author, website, etc... -the `url` is a special url used to check for updates of your plugin to be +longname (aka Pretty Name that will be displayed), the author, website, etc. +The `url` is a special URL used to check for updates of your plugin to be compatible with the 'update' plugin. ```php @@ -101,10 +101,10 @@ config_arrays and config_form hooks. Anything that uses those hooks will still be available while the plugin is disabled. This allows a user to modify any necessary settings for the plugin before the plugin is actually enabled and goes live. You can then use this check_config function to determine whether -everything is correctly setup, before you allow the plugin to be enabled. From +everything is correctly set up, before you allow the plugin to be enabled. From this function, you will simply need to return TRUE if everything checks out, or -return FALSE if something else needs to be setup. If the plugin does not define -this function, Cacti treats the plugin as ready to be enabled. +return FALSE if something else needs to be set up. If the plugin does not +define this function, Cacti treats the plugin as ready to be enabled. ```php function plugin_PLUGINNAME_check_config () { @@ -138,10 +138,10 @@ function plugin_PLUGINNAME_remove_data() { #### Registering Hooks The way that your plugin is able to interact within Cacti is via the many hooks -that are placed into the interface. As cacti processes the various visual -pages and backend functions, it will call specific hook functions which passes +that are placed into the interface. As Cacti processes the various visual +pages and backend functions, it will call specific hook functions which pass control over to any plugins that might want to interact with that aspect of -cacti. In order to utilize these hooks, your plugin must register for each +Cacti. In order to utilize these hooks, your plugin must register for each hook that you require inside our installation function. This is done via a simple API function. @@ -184,7 +184,7 @@ different functional duties (ex: separating out the viewing and the configuration sections of your plugin). We need to call this hook in the same function as we registered for hooks. -Either of the api calls can come first (there is no order necessary) +Either of the api calls can come first (there is no order necessary). ```php api_plugin_register_realm('PLUGINNAME', 'FILENAMETORESTRICT', 'DISPLAYTEXT', 1); @@ -192,7 +192,7 @@ api_plugin_register_realm('PLUGINNAME', 'FILENAMETORESTRICT', 'DISPLAYTEXT', 1); Name | Description --- | --- -PLUGINNAME | Your plugins name +PLUGINNAME | Your plugin's name FILENAMETORESTRICT | the filename (relative to your plugin directory) to restrict access to, you can separate multiple with a comma DISPLAYTEXT | This is the text that will display on the User Permissions form for this Realm 1 or 0 (true or false) | This tells it whether to automatically grant permission to the 'admin' user account (true) diff --git a/Plugin-Development.md b/Plugin-Development.md index 5ee7bb1..97fded7 100644 --- a/Plugin-Development.md +++ b/Plugin-Development.md @@ -2,10 +2,10 @@ ## Overview -Cacti Plugins allow users of Cacti to extend it's functionality into areas +Cacti Plugins allow users of Cacti to extend its functionality into areas that the core Cacti developers have not. They were written based off of the work of Jimmy Conner from the Squirrel Mail project years ago. They -allow developers to augment the Cacti Website, and it's polling processes +allow developers to augment the Cacti Website, and its polling processes to extend Cacti's reach. There are a number of popular plugins including: @@ -24,15 +24,15 @@ There are a number of popular plugins including: In theory, these plugins can be integrated into Cacti very simply, and removed without breaking Cacti. However, it must be noted to always review the -plugins documentation before you start to use it. +plugin's documentation before you start to use it. ## Legacy Plugins Notice Plugins written for Cacti 0.8.x require modifications in order to be compatible with Cacti 1.x. There are several changes that all plugin developers need to -be aware of. Any of the Cacti Group maintained plugin can be +be aware of. Any of the Cacti Group maintained plugins can be used as reference plugins for driving your plugin migration to the 1.x -framework and are available on [Github](https://github.com/Cacti/). +framework and are available on [GitHub](https://github.com/Cacti/). ## Plugin Migration @@ -44,7 +44,7 @@ required to make your plugins compatible with Cacti 1.0. Each of the following steps should be followed to migrate your plugins. Some of these changes are optional, and some are mandatory. We will start with the -list of steps that must be required. Then, in future sections, we will provide +list of steps that are required. Then, in future sections, we will provide details on performing each step. ### Required Steps @@ -104,11 +104,11 @@ includes the following sections: - **longname** - A description for the plugin -- **author** - The plugins author +- **author** - The plugin's author - **email** - An email contact in order to reach the author -- **homepage** - A link to the plugin authors homepage +- **homepage** - A link to the plugin author's homepage - **compat** - Prior to Cacti 1.3, the minimum version of Cacti to support the plugin. After Cacti 1.3, it will represent the range of Cacti versions @@ -159,8 +159,8 @@ nosync = config.php capabilities = online_view:1, online_mgmt:1, offline_view:1, offline_mgmt:1, remote_collect:0, remote_poller:1 ``` -Here we can see that the config.php file in the plugin directory will not be copied over to remove -pollers, and we can see that syslog allow for remote data collection. using the +Here we can see that the config.php file in the plugin directory will not be copied over to remote +pollers, and we can see that Syslog allows for remote data collection using the **remote_poller:1** capabilities attribute. ### Changes in Cacti 1.3+ @@ -173,12 +173,12 @@ compat = >=1.2.15 <1.3.0 requires = thold:>1.2.1 <=2.0, monitor:>2.0 ``` -Before Cacti 1.3, the **compat** and **requires** attributes assumed always >= -there were never provisions for < or <= to for any plugin. Due to changes in the +Before Cacti 1.3, the **compat** and **requires** attributes assumed always >=, +and there were never provisions for < or <= for any plugin. Due to changes in the Plugin Architecture, this will change starting with Cacti 1.3. As mentioned, there are some very good examples of how to create or migrate -plugins in the various Cacti plugins included on The Cacti Groups GitHub site. +plugins in the various Cacti plugins included on The Cacti Group's GitHub site. Also, for a very simple Cacti page, you can look at vdef.php as an example. You can use this as a template to manage a table using the Cacti framework. For a simple plugin example, please review the gexport plugin. @@ -186,7 +186,7 @@ For a simple plugin example, please review the gexport plugin. ## Charting Functionality Several JavaScript based HTML5 Charting packages have been included in Cacti in -an effort to assist plugin developers who wish to use graphing API's in their +an effort to assist plugin developers who wish to use graphing APIs in their plugins other than RRDtool. - [Billboard.js](https://naver.github.io/billboard.js/) diff --git a/Plugin-Guidelines.md b/Plugin-Guidelines.md index 26c3719..1a21847 100644 --- a/Plugin-Guidelines.md +++ b/Plugin-Guidelines.md @@ -3,8 +3,8 @@ ## Overview This section will help the Cacti plugin developer structure their plugins. -However, the best way to create a plugin is to borrow someone elses. There -are Cacti plugin examples on [Cactis GitHub page](https://github.com/Cacti) and +However, the best way to create a plugin is to borrow someone else's. There +are Cacti plugin examples on [Cacti's GitHub page](https://github.com/Cacti) and you can find them all over GitHub just by searching. ## Plugin Creation @@ -13,7 +13,7 @@ Use the following guidelines for creating your first plugin. ## Plugin Namespaces -All plugins must use namespace isolation either through Classes, or using +All plugins must use namespace isolation either through Classes or using the plugin name in their functions. This prevents name space collisions. An example plugin is provided here [Example Plugin](resources/example.tgz). diff --git a/Plugin-Hook-API-Ref.md b/Plugin-Hook-API-Ref.md index 6f8ab10..94a247e 100644 --- a/Plugin-Hook-API-Ref.md +++ b/Plugin-Hook-API-Ref.md @@ -58,7 +58,7 @@ of their function. ## add_graph_template_to_host -Allows you to perform additional operations when adding a graph template to +Allows you to perform additional operations when adding a graph template to a host. The parameters passed are `host_id` and `graph_template_id`. | file | introduced | retired | @@ -83,7 +83,7 @@ exception falls back to email. ## api_device_new -This hooks allows you to perform additional operation at the end of +This hook allows you to perform additional operations at the end of api_device_save function. Unlike the api_device_save hook, the device ID is already defined here. @@ -93,13 +93,13 @@ already defined here. ## 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 +This hook allows you to perform additional operations at the end of +api_device_save function. Unlike the api_device_new hook, the device ID might not be defined here. -This hook allows you to alter the contents to the device table with custom +This hook allows you to alter the contents of the device table with custom fields. When used properly, it allows you to extend the host table with your -plugins custom fields. +plugin's custom fields. | file | introduced | retired | | ------------------ | :--------- | :------ | @@ -107,7 +107,7 @@ plugins custom fields. ## auth_alternate_realms -This hook allows you to handle user login check alternate plugin defined +This hook allows you to handle user login checks for alternate plugin defined authentication realms. | file | introduced | retired | @@ -116,7 +116,7 @@ authentication realms. ## auth_profile_reset -Allows you to reset plugins all user settings +Allows you to reset plugin's all user settings | file | introduced | retired | | ---------------- | :---------- | :------ | @@ -124,7 +124,7 @@ Allows you to reset plugins all user settings ## auth_profile_reset_value -Allows you to reset plugins single user settings +Allows you to reset plugin's single user settings | file | introduced | retired | | ---------------- | :---------- | :------ | @@ -132,7 +132,7 @@ Allows you to reset plugins single user settings ## auth_profile_run_action -Allows you to draw plugins user settings form +Allows you to draw plugin's user settings form | file | introduced | retired | | ---------------- | :---------- | :------ | @@ -140,7 +140,7 @@ Allows you to draw plugins user settings form ## auth_profile_save -Allows you to save plugins all user settings +Allows you to save plugin's all user settings | file | introduced | retired | | ---------------- | :---------- | :------ | @@ -148,7 +148,7 @@ Allows you to save plugins all user settings ## auth_profile_tabs -Allows you to draw plugins user setting tabs +Allows you to draw plugin's user setting tabs | file | introduced | retired | | ---------------- | :---------- | :------ | @@ -156,7 +156,7 @@ Allows you to draw plugins user setting tabs ## auth_profile_update_data -Allows you to update plugins single user setting +Allows you to update plugin's single user setting | file | introduced | retired | | ---------------- | :--------- | :------ | @@ -198,7 +198,7 @@ Allows you to enhance the Logs display with additional information or links. ## config_arrays -Allows your plug-in to define custom array elements to be used throughout cacti. +Allows your plug-in to define custom array elements to be used throughout Cacti. Things like dropdown arrays and the like. | file | introduced | retired | @@ -207,7 +207,7 @@ Things like dropdown arrays and the like. ## config_form -Allows you to define form object to represent data to be stored in your tables. +Allows you to define a 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 @@ -219,7 +219,7 @@ presented and contents to be saved. ## config_insert -This is a general purpose hook used for connecting to other database, or +This is a general purpose hook used for connecting to other databases, or sourcing common includes that would otherwise not be sourced. | file | introduced | retired | @@ -255,7 +255,7 @@ versions of plugins. ## copy_user -Allows a plugin to take part in the Copy User actions. This is important a +Allows a plugin to take part in the Copy User actions. This is important if a plugin maintains user settings. | file | introduced | retired | @@ -264,8 +264,8 @@ plugin maintains user settings. ## create_complete_graph_from_template -Allows you to perform additional operations when adding new graph to device from -graph template. +Allows you to perform additional operations when adding a new graph to a device from +a graph template. | file | introduced | retired | | ---------------- | :--------- | :------ | @@ -306,7 +306,7 @@ Allows you to override the rendering of the auth_changepassword.php page. ## custom_version_info -Allows your plugin to display additional information on the cacti tech support +Allows your plugin to display additional information on the Cacti tech support page. | file | introduced | retired | @@ -355,7 +355,7 @@ Allows you to define custom dropdown actions from within the data sources page. ## data_source_action_execute -Allows you to define custom actions to be taken upon you dropdown selection. +Allows you to define custom actions to be taken upon your dropdown selection. | file | introduced | retired | | ---------------- | :--------- | :------ | @@ -365,7 +365,7 @@ Allows you to define custom actions to be taken upon you dropdown selection. 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 +follow-up actions to complete the cycle. This is where you actually save the data. | file | introduced | retired | @@ -374,7 +374,7 @@ data. ## data_source_edit_bottom -Allows you to make minor change to the Data Sources page, like add a tabbed +Allows you to make minor changes to the Data Sources page, like add a tabbed interface. | file | introduced | retired | @@ -393,7 +393,7 @@ interface. ## data_source_remove This hook is called when the data sources used by a graph are removed. The -parameters are the graphs data sources. +parameters are the graph's data sources. | file | introduced | retired | | ----------------------- | :---------- | :------ | @@ -411,7 +411,7 @@ parameters are the graphs data sources. ## 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 +this to create a link to that data source's threshold. | file | introduced | retired | | ---------------- | :--------- | :------ | @@ -433,7 +433,7 @@ Allows you to define custom dropdown actions from within the device/host page. ## device_action_execute -Allows you to define custom actions to be taken upon you dropdown selection. +Allows you to define custom actions to be taken upon your dropdown selection. | file | introduced | retired | | -------- | :--------- | :------ | @@ -443,7 +443,7 @@ Allows you to define custom actions to be taken upon you dropdown selection. 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. +actions to complete the cycle. This is where you actually save the data. | file | introduced | retired | | -------- | :--------- | :------ | @@ -460,7 +460,7 @@ shows and hides the device fields. ## device_display_text -This hook allows you to add custom columns header to the host list page +This hook allows you to add custom column headers to the host list page | file | introduced | retired | | -------- | :---------- | :------ | @@ -483,7 +483,7 @@ This hook allows you to add custom actions to the host edit page, below the ## device_filter_end -This hook allows you to add custom filter fields before Cacti built-in filter to +This hook allows you to add custom filter fields before Cacti's built-in filter to the host list page | file | introduced | retired | @@ -492,7 +492,7 @@ the host list page ## device_filter_start -This hook allows you to add custom filter fields after Cacti built-in filter to +This hook allows you to add custom filter fields after Cacti's built-in filter to the host list page | file | introduced | retired | @@ -538,7 +538,7 @@ Allows you to override the rendering of the host list page ## device_template_change -Allows you to add template items such a threshold upon a +Allows you to add template items such as a threshold upon a device template change | file | introduced | retired | @@ -568,7 +568,7 @@ before the requested action is run. ## draw_navigation_text -Just below the Cacti "Console", and "Graphs" tabs, cacti provides a Navigation +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. @@ -638,7 +638,7 @@ custom button to the right of a graph. | graph.php | 1.0.0 | | lib/html.php | 1.0.0 | -The hook is also fired as `graph_buttons_thumbnails`, see below. +The hook is also fired as `graph_buttons_thumbnails`; see below. ## graph_buttons_thumbnails @@ -658,8 +658,8 @@ with `hook`, `local_graph_id`, `rra`, `view_type`, `tree_id` and `branch_id`. ## 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 +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. | file | introduced | retired | @@ -669,7 +669,7 @@ graph is required to be outputted. ## graph_items_remove -This hook is called when when the data source is deleted, and the option to +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. | file | introduced | retired | @@ -740,7 +740,7 @@ removed graph IDs. ## graphs_sql_where -This hooks allows you to add additional where clauses to the select statement +This hook allows you to add additional where clauses to the select statement used to display graphs on the graphs.php page. | file | introduced | retired | @@ -821,8 +821,8 @@ This allows you to display text or html after the login form. ## 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. +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 | | -------------- | :--------- | :------ | @@ -846,7 +846,7 @@ Used to authenticate the user logging in to a custom plugin defined realm. ## login_realms -Used to defined additional custom plugin defined authentication realms. The +Used to define additional custom plugin defined authentication realms. The parameter passed is an array of existing authentication realms. | file | introduced | retired | @@ -865,7 +865,7 @@ Allows the plugin to set/modify that page title. 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. +that would otherwise get unset when `session_destroy()` is called. | file | introduced | retired | | ---------- | :--------- | :------ | @@ -875,7 +875,7 @@ that would otherwise get unset, when `session_destroy()` is called. 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. +that would otherwise get unset when `session_destroy()` is called. | file | introduced | retired | | ---------- | :--------- | :------ | @@ -941,8 +941,8 @@ Allows the plugin to set/modify the page title ## 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 +This hook allows you to launch other polling activities once Cacti has completed +its polling activities. Things like MacTrack, Boost, THold, and others use this hook to launch their respective poller. | file | introduced | retired | @@ -978,7 +978,7 @@ 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. +they can leverage the poller's output directly. | file | introduced | retired | | -------------- | :--------- | :------ | @@ -996,7 +996,7 @@ only fire on the Remote Data Collectors. ## poller_top This hook allows you to launch processes concurrently with the Cacti poller for -things like THolds fast poller for example. +things like THold's fast poller for example. | file | introduced | retired | | ---------- | :--------- | :------ | @@ -1062,7 +1062,7 @@ Allows you to add output at the bottom of the Settings page. ## substitute_host_data -This allows you to add to the substitution variables that cacti can parse. +This allows you to add to the substitution variables that Cacti can parse. | file | introduced | retired | | ----------------- | :--------- | :------ | @@ -1078,7 +1078,7 @@ Allows you to override the rendering of the top_graph_header.php include. ## top_graph_header_tabs -This hook is used to add tab's to Cacti's user interface. +This hook is used to add tabs to Cacti's user interface. | file | introduced | retired | | ------------ | :--------- | :------ | @@ -1102,7 +1102,7 @@ calls the graph header) ## top_header -This hooks enables you to output custom HTML on top the the graph view page, if +This hooks enables you to output custom HTML on top of the graph view page, if navigation tabs are not rendered. Allows you to override the rendering of the top_header.php include. @@ -1150,12 +1150,12 @@ This hook is called after the data source title cache is updated. 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 ? +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 +settings to the user, enable or disable the user's access to that specific "abc +settings" tab and allow an administrator to define custom values for that plug-in on a per user basis. | file | introduced | retired | @@ -1272,7 +1272,7 @@ plugin maintains user settings. ## utilities_action -This hook set's up the function to be executed from within Cacti's utilities +This hook sets up the function to be executed from within Cacti's utilities section. | file | introduced | retired | diff --git a/Plugin-Mactrack.md b/Plugin-Mactrack.md index c04266f..1df95a0 100644 --- a/Plugin-Mactrack.md +++ b/Plugin-Mactrack.md @@ -1,19 +1,21 @@ # MacTrack -The MacTrack plugin is designed to scan network switches, routers and intelligent -hubs for connected devices, and record their location either based upon the portname -or alias of the switch or hub. It also attempts to discover the ip address of the mac -address from the routers included in the MacTrack database. MacTrack can also -use arpwatch to gether IP to MAC address associations. +The MacTrack plugin is designed to scan network switches, routers and intelligent +hubs for connected devices, and record their location either based upon the port name +or alias of the switch or hub. It also attempts to discover the IP address of the MAC +address from the routers included in the MacTrack database. MacTrack can also +use arpwatch to gather IP to MAC address associations. -MacTrack has the ability to also notify admins or security personnel when the MAC +MacTrack has the ability to also notify admins or security personnel when the MAC address of a missing or stolen computer re-appears on the network. This can be helpful -in recovering lost equipment. Through MacTrack's interface monitoring feature, +in recovering lost equipment. Through MacTrack's interface monitoring feature, a Network Administrator can get a very good idea of where utilization is, -where there are errors, etc within their network. +where there are errors, etc. within their network. -In howto is mentioned menu item "Mactrack" or "Mactrack tab". In older versions -is called "Device tracking". +MacTrack requires Cacti 1.2.29 or later and PHP 8.2. + +This how-to refers to the menu item "Mactrack" or "Mactrack tab". In older +versions it is called "Device tracking". ## Mactrack setup @@ -24,18 +26,18 @@ is called "Device tracking". At this moment Mactrack's sites have no relation to Cacti's sites - Define Device Types (mandatory) - Several device types are provided as an example with the current version. - Devices without device type match will not be processes + Several device types are provided as an example with the current version. + Devices without a device type match will not be processed - Import IEEE OUI Database (optional) Define SNMP set options to use -##Create site -One of the mandatory steps to start setting Mactrack up is to create sites +## Create site +One of the mandatory steps to start setting Mactrack up is to create sites where we are going to allocate our Mactrack devices. Console -> Mactrack -> Sites -You need add devices to site. You can import some existing Cacti devices into +You need add devices to site. You can import some existing Cacti devices into Mactrack or add devices manually on Console -> Mactrack -> Devices @@ -45,15 +47,15 @@ Device Types Console -> Mactrack (Device Tracking in previous versions) -> Device Types menu -Create as many device types as you need following this instrunctions. +Create as many device types as you need, following these instructions. **Description** - give this device type a meaningful description **Vendor** - fill in the name for the vendor of this device type -**Device Type** - choose the type of device. What kind of device is it? Meaning that -some scanning functions will be available for some of these types only. -Eg: If you set a switch/hub as "Switch/Router" you will then be able to pick -an IP scanning function up when the device doesn't really supports it. -**System Description Match** - provide key information to help Device -Tracking detect the type of device. The wildcard character is the % sign. +**Device Type** - choose the type of device. What kind of device is it? Meaning that +some scanning functions will be available for some of these types only. +E.g., if you set a switch/hub as "Switch/Router" you will then be able to pick +an IP scanning function up when the device doesn't really support it. +**System Description Match** - provide key information to help Device +Tracking detect the type of device. The wildcard character is the * sign. When you open a device in Cacti, you normally see the following on top of the page. `` System: Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(53)SE2, RELEASE SOFTWARE (fc3)Technical Support: http://www.cisco.com/techsupportCopyright (c) 1986-2010 by Cisco Systems, Inc.Compiled Wed 21-Apr-10 05:52 by prod_rel_team @@ -61,40 +63,40 @@ Tracking detect the type of device. The wildcard character is the % sign. Hostname: myswitch101.com ObjectID: .1.3.6.1.4.1.9.1.696 `` - What you want to make Mactrack look at is something like "C2960" which quickly identify - the hardware platform. Don't waste your time try to match something different + What you want to make Mactrack look at is something like "C2960" which quickly identify + the hardware platform. Don't waste your time trying to match something different or more complex like "12.2(53)SE2". **Vendor SNMP Object ID Match** - this is the SNMP OID on this format: .1.3.6.1.4.1.9.1.696 **MAC Address Scanning Function** - we assume you know what you are looking for here. This function should only be set to switches L2/L3 and not Routers. -**IP Address Scanning Function** - this function allows you to look at the ARP table and map IP vs MAC. There is an special function for Cisco devices called get_cisco_dhcpsnooping_table that will look at the DHCP Snooping table for switches if enabled. -**802.1x Scanning Function** - this scanning function was introduced on 4.2 version and it's only for Cisco devices. +**IP Address Scanning Function** - this function allows you to look at the ARP table and map IP vs MAC. There is a special function for Cisco devices called get_cisco_dhcpsnooping_table that will look at the DHCP Snooping table for switches if enabled. +**802.1x Scanning Function** - this scanning function was introduced in version 4.2 and is only for Cisco devices. **Serial Number Base OID** - this isn't mandatory but you can specify the SNMP OID to find the serial number to the device. **Serial Number Collection Method** - how is the serial number collected for this OID. If 'SNMP Walk', we assume multiple serial numbers. If 'Get', it will be only one. **Low User Port Number** - provide the low user port number on this switch. Leave 0 to allow the system to calculate it. Empty assumes 0 -**High User Port Number** - provide the low user port number on this switch. Leave 0 to allow the system to calculate it. Empty assumes 0 +**High User Port Number** - provide the high user port number on this switch. Leave 0 to allow the system to calculate it. Empty assumes 0 -Export device types option allows you to export the existing devices types -to CSV format so you can later on import them onto new installations, -to share them or just to back them up. +The export device types option allows you to export the existing device types +to CSV format so you can later import them onto new installations, +share them, or just back them up. Go to Console -> Mactrack -> Device Types and click the export button. -For import Device Types you can use button "Import" on the same page. +To import Device Types, use the "Import" button on the same page. -##Import OUI Database from IEEE +## Import OUI Database from IEEE -This function will download and install the latest OUI database from the -IEEE Website. Each Network Interface Card (NIC) has a MAC Address. -The MAC Address can be broken into two parts. The first part of the MAC Addess -contains the Vendor MAC. The Vendor MAC identifies who has manufactured the part. +This function will download and install the latest OUI database from the +IEEE website. Each Network Interface Card (NIC) has a MAC Address. +The MAC Address can be broken into two parts. The first part of the MAC Address +contains the Vendor MAC. The Vendor MAC identifies who has manufactured the part. This will be helpful to check for rogue devices on your network. Go to Mactrack Tools -> Tracking Utilities and click on **Refresh IEEE Vendor MAC/OUI Database** -This option requires internet access so if for some reason your server cannot -access internet you could manually download the file from OUI Database copy it -to your Cacti's box and import it by hand as follow. +This option requires Internet access, so if for some reason your server cannot +access the Internet, you can manually download the file from the OUI Database, +copy it to your Cacti server, and import it by hand as follows. Go to **/plugins/mactrack** @@ -108,7 +110,19 @@ There were '23126' Entries Added/Updated in the database. There were '0' Records Removed from the database. `` -##Troubleshooting +## History partitioning and ignored ports + +MacTrack keeps its MAC address, IP address and 802.1x history in the +`mac_track_ports`, `mac_track_ips` and `mac_track_dot1x` tables. New installs +partition them by scan date where MySQL 8.0 or later, or MariaDB with +partitioning, allows it; existing installs are rebuilt with +`cli/upgrade_partitioning.php` or from the MacTrack utilities. Ports that carry +many MAC addresses, such as uplinks, can be kept out of the collected data with +the Ports to Ignore settings. See the README at +[plugin_mactrack](https://github.com/Cacti/plugin_mactrack#readme) for the +partitioning procedure and the other command-line scripts. + +## Troubleshooting Running poller in debug mode Go to /plugins/mactrack php -q poller_mactrack.php -d -sid=1 @@ -122,7 +136,7 @@ Run scanner in debug mode for an specific device The scanning function you are looking for does not show up Go to Mactrack Tools -> Tracking Utilities and click on "Refresh Scanning Functions" - Deletes old and potentially stale Device Tracking scanning functions + Deletes old and potentially stale Device Tracking scanning functions from the drop-down you see when you edit a device type. diff --git a/Plugin-Reference.md b/Plugin-Reference.md index 524492f..a29be53 100644 --- a/Plugin-Reference.md +++ b/Plugin-Reference.md @@ -6,7 +6,7 @@ The Reference Plugin(s) are generic plugins that implement key pieces of the Plugin Architecture. They are broken down into several separate plugins, each covering different -portions of the [Hook API Reference](Plugin-Hook-API-Ref.md) +portions of the [Hook API Reference](Plugin-Hook-API-Ref.md). ## Standard Files @@ -81,14 +81,14 @@ myplugin/ The four core sub-directories included in your plugin should be docs, images, lib, and include. As previously mentioned, each of these directories should -include an index.php that points to it's parent directory index.php. This way +include an index.php that points to its parent directory index.php. This way we prevent people from randomly browsing the contents of our web site. The two main files required for every plugin are the INFO and the setup.php file. Without these two files, the plugin directory will not be recognized as a valid plugin and will be skipped. -The INFO file is formatted as Microsoft standard INI file. It contains +The INFO file is formatted as a Microsoft standard INI file. It contains information about the plugin including its version, author, dependencies, functions, and minimum version of Cacti and other plugins required. Below, you can see a reference INFO file for the myplugin plugin. @@ -131,7 +131,7 @@ function plugin_myplugin_version() { Without these core functions, in your setup.php, your plugin will not fully operate. We will document those functions and what they should include as we -continue to document the plugin design principals. +continue to document the plugin design principles. Any core plugin functions should always be placed in the lib/functions.php file, and settings should go into the include/settings.php file. The plugin diff --git a/Plugin-Syslog.md b/Plugin-Syslog.md index 882f345..de7c246 100644 --- a/Plugin-Syslog.md +++ b/Plugin-Syslog.md @@ -2,13 +2,12 @@ The syslog plugin is a Cacti plugin that has been around for more than a decade. It was inspired by the 'aloe' and 'h.aloe' plugins originally developed by the -Cacti users sidewinder and Harlequin in the early 2000's. As you will be able +Cacti users sidewinder and Harlequin in the early 2000s. As you will be able to see from the ChangeLog, it has undergone several changes throughout the -years, and remains, even today when you have enterprise offering from both -Elastic and Splunk, remains a relevant plugin for small to medium sized -companies. +years, and remains a relevant plugin for small to medium-sized companies, even +today when enterprise offerings exist from both Elastic and Splunk. -It provides a simple Syslog event search an Alert generation and notification +It provides a simple Syslog event search, alert generation, and notification interface that can generate both HTML and SMS messages for operations personnel who wish to receive notifications inside of a data or network operations center. @@ -16,10 +15,10 @@ For log events that continue to be generated frequently on a device, such as smartd's feature to notify every 15 minutes of an impending drive failure, can be quieted using syslog's 'Re-Alert' setting. -Syslog also provides multipoller support which allows +Syslog also provides multipoller support, which allows for scalability and redundancy by leveraging multiple -servers rules can be created on the main poller and pushed -to the remotes for ease of management or each server can work independently +servers. Rules can be created on the main poller and pushed +to the remotes for ease of management, or each server can work independently. ## Features @@ -45,8 +44,22 @@ to the remotes for ease of management or each server can work independently * Remote poller support +The plugin's development branch (version 5.0) adds dashboards, saved searches, +pipeline health alerts, message recommendations, hourly partitioning and, on +MariaDB, millisecond timestamps. It supports only InnoDB and, on MariaDB, Aria +tables, and new installs always use partitioned tables. See the +[Syslog README](https://github.com/Cacti/plugin_syslog#readme) for these +features. + ### Notes on upgrades +Replacing the plugin files does not upgrade the plugin. After copying in a new +version, run `php plugins/syslog/cli/syslog_schema.php --upgrade` from the Cacti +base directory as the poller user, or disable and then enable the plugin in +Plugin Management to open the Syslog Upgrade Advisor. Do not uninstall the +plugin as an upgrade step, because the uninstall options can delete messages, +rules, and hosts. + If you are upgrading to 2.0 from a prior install, you must first uninstall syslog and ensure both the syslog, syslog_remove, and syslog_incoming tables are removed, and recreated at install time. @@ -79,7 +92,6 @@ file format: $ModLoad imudp $UDPServerRun 514 $ModLoad ommysql -``` $template cacti_syslog,"INSERT INTO syslog_incoming(facility_id, priority_id, program, date, time, host, message) \ @@ -88,12 +100,13 @@ $template cacti_syslog,"INSERT INTO syslog_incoming(facility_id, priority_id, TRIM('%msg%'))", SQL *.* >localhost,my_database,my_user,my_password;cacti_syslog +``` -for RHEL, Rocky Linux, or AlmaLinux systems you will all need to install the rsyslog-mysql package +For RHEL, Rocky Linux, or AlmaLinux systems you will also need to install the rsyslog-mysql package ```shell yum install rsyslog-mysql -systemctl resatrt rsyslog +systemctl restart rsyslog ``` If you are upgrading to version 2.5 from an earlier version, make sure that you @@ -106,7 +119,7 @@ additional documentation here: [Cacti Documentation Site](https://docs.cacti.net/plugin:syslog.config) We are using the pure integer values that rsyslog provides to both the priority -and facility in this version syslog, which makes the data collection must less +and facility in this version syslog, which makes the data collection much less costly for the database. We have also started including the 'program' syslog column for searching and storage and alert generation. @@ -147,6 +160,9 @@ source multiple database configuration files. ## Installing the plugin +Requirements: Cacti 1.2.23 or later, PHP 8.0 or later, and MySQL or MariaDB +using InnoDB (or Aria on MariaDB). + 1.) Copy the syslog files over to /var/www/html/cacti/plugins 2.) ensure permissions are correct the files @@ -158,11 +174,11 @@ chown -R apache:apache syslog 3.) copy config.php.dist to config.php -5.) You have two options for storing syslog information you can either use the existing -Cacti Database or use a dedicated database for syslog as syslog databases especially -for large networks can grow pretty quick it may be wise to create a dedicated database. -To use a dedicated DB first create a database -in mysql and assign a user you will then change +4.) You have two options for storing syslog information: you can either use the existing +Cacti Database or use a dedicated database for syslog. Syslog databases, especially +for large networks, can grow quickly, so it may be wise to create a dedicated database. +To use a dedicated DB, first create a database +in MySQL and assign a user, then change ```console $use_cacti_db = true; @@ -170,12 +186,14 @@ to $use_cacti_db = false; ``` -if you intend to use the cacti DB leave config.php as default +If you intend to use the Cacti DB, leave config.php as default. For a dedicated +DB, also set the `$syslogdb_*` values to the new database and a user that can +create and write its tables. -6.) install the plugin in the plugins tab located +5.) Install the plugin in the plugins tab located in Console >> configuration >> plugins -7.) You will be presented with the plugin install wizard with options on how +6.) You will be presented with the plugin install wizard with options on how you would like the Syslog plugin to be installed options include DB arch and retention time @@ -183,10 +201,10 @@ if you intend to use the cacti DB leave config.php as default ![install advisor](images/syslog_install_advisor.PNG) -You will also need to ensure the cacti user is granted select on the Syslog database +You will also need to ensure the Cacti database user is granted select on the Syslog database ```shell -GRANT SELECT ON syslog.* TO 'cacti'@'localhost'; +GRANT SELECT ON syslog.* TO 'cactiuser'@'localhost'; ``` ## SNMP Trap configuration @@ -208,20 +226,20 @@ systemctl start snmptt systemctl start snmptrapd ``` -3.) Now that snmptt and snmptrapd are started and enabled you will first need to - modify the snmptrapd systemd file to include -on in the startup options +3.) Now that snmptt and snmptrapd are started and enabled, you will first need to + modify the snmptrapd systemd file to include -On in the startup options the file is located in /etc/sysconfig/snmptrapd and should look like this after ```console # snmptrapd command line options # '-f' is implicitly added by snmptrapd systemd unit file -OPTIONS="-on" +OPTIONS="-On" ``` -4.) Now you need to modify the snmptrapd config file to receive snmptraps by - default snmptrapd will not process any traps until you configure it to do so - you will also need to tell snmptrapd to forward the received traps over to snmptt +4.) Now you need to modify the snmptrapd config file to receive snmptraps. By + default, snmptrapd will not process any traps until you configure it to do so. + You will also need to tell snmptrapd to forward the received traps over to snmptt. Here is an example of configuring snmptrapd to receive snmptraps from a device using the public snmp string and forwarding it over to snmptt @@ -348,6 +366,12 @@ found in configuration >> settings >> syslog if you wish to have each poller operate independently there is no need to enable these options. +Remote Data Collector options require the InnoDB storage engine. If the Main +Collector keeps its Syslog database under another name, set +`$syslog_replication_main_db_default` in the remote collector's config file; for +a separate database server or credentials, also set +`$syslog_replication_main_db_hostname`, the username, and the password there. + ### Syslog Alert Rules Alert rules are used to generate alerts in the cacti log they are also used @@ -362,7 +386,8 @@ you can leverage the built in variable substitution to format the input to the s ### Syslog Removal Rules The Syslog plugin allows administrators to delete incoming messages -so they are not stored in the DB. +so they are not stored in the DB, or to transfer them to the `syslog_removed` +table. For example, if you are not interested in seeing Syslog messages every time a user logs into a device you may add a rule to delete the message. @@ -379,8 +404,8 @@ GitHub. ## Authors The syslog plugin has been in development for well over a decade with increasing -functionality and stibility over that time. There have been several contributors -to thold over the years. Chief amongst them are Jimmy Conner, Larry Adams, +functionality and stability over that time. There have been several contributors +to syslog over the years. Chief amongst them are Jimmy Conner, Larry Adams, SideWinder, and Harlequin. We hope that version 2.0 and beyond are the most stable and robust versions of syslog ever published. We are always looking for new ideas. So, this won't be the last release of syslog, you can rest assured of diff --git a/Plugins.md b/Plugins.md index 82c20bc..50d5c64 100644 --- a/Plugins.md +++ b/Plugins.md @@ -1,8 +1,8 @@ # Plugin Management -Installing or updating plugins on cacti is a simple procedure. +Installing or updating plugins on Cacti is a simple procedure. For most of the plugins a few basic steps are enough, which are described below. -Each plugin directory should contain a README.md file. We recommend to study +Each plugin directory should contain a README.md file. We recommend studying this file. It may contain important installation information. ## Installing Plugins @@ -26,28 +26,28 @@ this file. It may contain important installation information. chown -R apache:apache plugin_thold ``` -3. From `Console > Configuration > Plugins` Install the plugin by Clicking on - the wrench Icon as showng below. +3. From `Console > Configuration > Plugins` Install the plugin by clicking on + the gear icon as shown below. - Below you will now see the THOLD plugin available to install in this case we - are installing thold + Below you will now see the THOLD plugin available to install. In this case we + are installing thold. ![thold plugin](images/thold-install.png) -4. After installing the plugin by clicking on the grey gear you will now how to - enable it this can be done via clicking on the green check mark +4. After installing the plugin by clicking on the gear icon you will now have to + enable it. This can be done via clicking on the green check mark. ![thold plugin enable](images/thold-enable.png) After this, the **Plugin** is installed and enabled. However, there will likely -be onfiguration that must take place after the **Plugin** is enabled. See the +be configuration that must take place after the **Plugin** is enabled. See the **Plugin** documentation for instructions on how to configure and use them. ## Updating a Plugin Updating a plugin not only keeps you up to date with the latest release of the code for that plugin. It also allows you to keep all of your settings for that -plugin ensure you DO NOT UNINSTALL the plugin. You must instead disable the +plugin provided you DO NOT UNINSTALL the plugin. You must instead disable the plugin which will not drop the SQL tables and thus save your settings. 1. Disable the **Plugin** you want to update @@ -65,13 +65,13 @@ plugin which will not drop the SQL tables and thus save your settings. git pull ``` -4. Change name of **Plugin** folder i.e plugin_thold to thold +4. Change name of **Plugin** folder i.e. plugin_thold to thold ```console mv plugin_thold thold ``` -5. Assign proper permissions usually either www-data for Ubuntu/debian or apache +5. Assign proper permissions usually either www-data for Ubuntu/Debian or apache for RHEL/Rocky Linux/AlmaLinux ```console @@ -82,26 +82,26 @@ plugin which will not drop the SQL tables and thus save your settings. ### Video Walkthrough -[![Video Tuturial](http://img.youtube.com/vi/TPKu-2XYKok/0.jpg)](https://youtu.be/TPKu-2XYKok) +[![Video Tutorial](http://img.youtube.com/vi/TPKu-2XYKok/0.jpg)](https://youtu.be/TPKu-2XYKok) ## Uninstall a Plugin To uninstall a plugin go into the plugins page `Console > Configuration > Plugins` Click on the plugin to Disable the plugin. -Click on the red dot beside the plugin to uninstall the plugin a dialogue box -will appear now click uninstall. +Click on the red dot beside the plugin to uninstall the plugin. A dialogue box +will appear; now click uninstall. ![uninstall plugin](images/plugins-uninstall.png) -This will uninstall the plugin from cacti but will NOT remove the files from the -server to do that you must manually remove the plugin until you remove the files -the plugin will show to be available to be installed. +This will uninstall the plugin from Cacti but will NOT remove the files from the +server. To do that you must manually remove the plugin. Until you remove the +files, the plugin will show to be available to be installed. > **WARNING**: Uninstalling a Cacti **Plugin** generally also removes any > database tables that that **Plugin** created, which means your data! Before > uninstalling **Plugins**, it would be wise to have a backup strategy in place -> in case you accidentally uninstall a **Plugin** and loose your data! +> in case you accidentally uninstall a **Plugin** and lose your data! ### Dependencies in plugins @@ -114,7 +114,7 @@ plugin. ### Delete plugin data and settings Starting with Cacti 1.3, some plugins have new functionality and allow you to -delete data and plugin settings and start from scratcg. This can be done with +delete data and plugin settings and start from scratch. This can be done with the trash can icon in Console > Configuration > Plugins --- diff --git a/Principles-of-Operation.md b/Principles-of-Operation.md index 6dd0046..4669275 100644 --- a/Principles-of-Operation.md +++ b/Principles-of-Operation.md @@ -1,8 +1,8 @@ # Principles of Operation -To understand Cacti's principal of operation, you have to start +To understand Cacti's principle of operation, you have to start at the top and work down. Cacti's operational model is -divided into multiple layers. They include +divided into multiple layers. They include: - Devices - Sites @@ -15,40 +15,40 @@ divided into multiple layers. They include Cacti **Devices** are either physical hosts, sensors, clusters, services, or any type of object with a name and that can -provide information about it self that should go into a +provide information about itself that should go into a **Graph** or could be used to provide additional information useful for Operations. -The Cacti **Device** object serves as the center Cacti's world -it's where stores information on how gather data about it. You +The Cacti **Device** object serves as the center of Cacti's world, +it's where Cacti stores information on how to gather data about it. You can have from one to tens of thousands of **Devices** monitored from one Cacti system. It's very scalable. They can be discovered using Cacti's Automation sub-system, added manually, -or gathered from a CMDB and added to Cacti using it's command +or gathered from a CMDB and added to Cacti using its command line interface. ## Sites -Cacti works with **Sites**. So, when you add a phyical **Device** +Cacti works with **Sites**. So, when you add a physical **Device** to Cacti, you can associate it with a **Site**. Sites are designed -to be physical locations. Cacti can organize **Devices** and it's +to be physical locations. Cacti can organize **Devices** and its **Graphs** by Site in a convenient fashion. ## Data Collectors These are the physical or virtual hosts or containers that gather data about a group of devices either within a network or a site. -They are resiliant in that if the central Cacti server is not reachable, +They are resilient in that if the central Cacti server is not reachable, they will cache data and wait for it to become available again. -Cacti supports upto dozens of Data Collectors today. Some customers -use somethings as simple as a Raspberry Pi or Nuk for +Cacti supports up to dozens of Data Collectors today. Some customers +use something as simple as a Raspberry Pi or NUC for Data Collectors. However, Virtual Machines are preferred as they can be migrated live which does not interrupt data collection. ## Data Retrieval -The Data Collectors first and foremost task it to retrieve data and +The Data Collector's first and foremost task is to retrieve data and forward it to the main Cacti server for storage. Cacti will do so using its poller which is a part of the Data Collector. The Poller is executed from the operating system's scheduler or from systemd @@ -65,7 +65,7 @@ the device to the Cacti database. In enterprise installations, you're dealing with potentially thousands of devices of different type, e.g. Servers, Network -Equipment, Appliances, Sensors, PDU's, Static Transfer Switches +Equipment, Appliances, Sensors, PDUs, Static Transfer Switches and the like. To retrieve data from remote targets/hosts, Cacti will mainly use the Simple Network Management Protocol SNMP. Thus, all devices capable of using SNMP will be eligible to be @@ -79,9 +79,9 @@ can be nearer in latency than the database, can scale to 30, 40, even 50 thousand devices with relative ease in Cacti depending on the size of your database and data collector infrastructure (sockets, cores, threads). When using this -N-Tiered methology, most customers will use Cacti's +N-Tiered methodology, most customers will use Cacti's `script server` which is a pool of memory resident PHP -interpreters that preloads all scripts used to gather data, +interpreters that preload all scripts used to gather data; therefore, it's super fast, and parallel in nature. However, most customers will use SNMP, or SSH to gather metrics from their Devices. I mean, how many companies @@ -98,9 +98,9 @@ on that storage mechanism. In the industry, storage of the resulting data can take many forms. In Cacti, the RRDfile has been the tool of choice for many years. There are only so many ways to make a hammer, and RRDtool's a great -hammer. Other approaches in the industry use SQL database, +hammer. Other approaches in the industry use SQL databases, others flat files or document stores like ElasticSearch, Splunk, -Mongo DB, InfluxDB. There are a number of options out there. +MongoDB, InfluxDB. There are a number of options out there. You can get more information about RRDfile from the [RRDtool Website](http://www.RRDtool.org/). @@ -111,7 +111,7 @@ expand over time, and it can create beautiful graphs. Data that ages beyond a certain point is consolidated and very old data just rolls off the end of the RRDfile. It ages out. This keeps storage requirements at bay. -As mentioned, performs consolidation to combine raw data (a `primary data point` +As mentioned, RRDtool performs consolidation to combine raw data (a `primary data point` in RRDtool lingo) to consolidated data (a `consolidated data point`). This way, historical data is compressed to save space. RRDtool knows different consolidation functions: AVERAGE, MAXIMUM, MINIMUM and LAST. @@ -120,12 +120,12 @@ different consolidation functions: AVERAGE, MAXIMUM, MINIMUM and LAST. One of the most appreciated features of [RRDtool](http://www.RRDtool.org/) is the built-in graphing function. This comes in useful when combining this with -some commonly used web server. Such, it is possible to access the graphs from -merely any browser on any platform. +some commonly used web server. Thus, it is possible to access the graphs from +virtually any browser on any platform. -The Graphing engine is quite flexible. It is possible, to graph one or +The Graphing engine is quite flexible. It is possible to graph one or many items in one graph. Auto-scaling is supported and logarithmic y-axis, -left and right axes, and much much more. You may stack items onto another +left and right axes, and much much more. You may stack items onto one another and print pretty legends denoting characteristics such as minimum, average, maximum and lots more. @@ -145,12 +145,12 @@ telnet | programming telnet scripts to retrieve data available to sysadmins only ssh | much like telnet, but more secure (and more complicated) http(s) | invoke remote cgi scripts to retrieve data via a web server or parse web pages for statistical data (e.g. some network printers) snmp | use Net-SNMP's exec/pass functions to call remote scripts and get data -ldap | to retrieve statistical about your ldap server's activities +ldap | to retrieve statistics about your ldap server's activities use your own | invoke Nagios agents and much more... -There a two ways extending Cacti's build-in capabilities: +There are two ways of extending Cacti's built-in capabilities: [Data Input Methods](Data-Input-Methods.md) for querying **single or multiple**, but **non-indexed** readings @@ -176,11 +176,11 @@ results with others. ## Beyond Graphs -Cacti is not just a Graphing platform, it's also a Network Operations -Framework. Thought the dozens of plugins and user contributed +Cacti is not just a Graphing platform; it's also a Network Operations +Framework. Through the dozens of plugins and user contributed Graph Templates, the sky is the limit as to what can be done using the -Cacti Framework. It's stood the test of time now in it's 19th year -of existence in the Open Source world. +Cacti Framework. It's stood the test of time +in the Open Source world. --- Copyright (c) 2004-2026 The Cacti Group diff --git a/README.md b/README.md index 9bef728..bc216b1 100644 --- a/README.md +++ b/README.md @@ -2,23 +2,43 @@ ![Cacti](images/logo.svg) -This manual documents released Cacti 1.2.31. Development versions have -different requirements; use the [development manual][manual-dev] for those. +Cacti collects measurements from network devices, servers, and applications +and uses RRDtool to store time-series data and display graphs. Use this manual +to install Cacti, configure monitoring, and keep your installation running. -Start with [Requirements](Requirements.md), then choose the operating-system -guide under [Cacti Installation](#cacti-installation). For an existing -installation, follow the upgrade guide instead of the fresh-install commands. +**Version:** This manual documents released Cacti 1.2.31. Development versions +have different requirements; use the [development manual][manual-dev] for +those. -Cacti is designed to be a complete graphing solution based on the RRDtool's -framework. Its goal is to make a network administrator's job easier by taking -care of all the necessary details necessary to create meaningful graphs. +## Getting Started -Please see the official Cacti website for information, support, and updates. +Follow this sequence for a new installation: + +1. [Check requirements](Requirements.md). +2. Choose the operating-system guide under + [Cacti Installation](#cacti-installation). +3. [Add a device and create its graphs](How-to-Graph-Your-Network.md). +4. [Verify data collection](Data-Debug.md) and check the + [Cacti log](Cacti-Log.md). + +For an existing installation, follow the upgrade guide for your platform under +[Cacti Installation](#cacti-installation) instead of the fresh-install +commands. + +For the concepts behind these steps, read +[Principles of Operation](Principles-of-Operation.md). If graphs are empty or +polling fails, start with [Debugging](Debugging.md) and the +[Frequently Asked Questions](Frequently-Asked-Questions.md). + +For downloads and news, visit the [Cacti website](https://www.cacti.net/). +For community support, use the [Cacti Forums](https://forums.cacti.net/). ## Core Developers - Both active and emeritus -Active Developers -### Developers working on Cacti, its Architecture, Documentation and Future Releases. +### Active Developers + +Developers working on Cacti, its architecture, documentation and future +releases. - Larry Adams (TheWitness) - Mark Brugnoli-Vinten (netniV) @@ -27,29 +47,38 @@ Active Developers - Andreas Braun (browniebraun) - Thomas Urban (phalek) - Jing Chen (ddb4github) +- Thomas Vincent (somethingwithproof) -### Contributors to Documentation, QA, Packaging, the Forums and our YouTube page. +### Contributors + +Contributors to documentation, QA, packaging, the forums and the YouTube +channel. - Sean Mancini (bmfmancini) -- J.P. Pasnak, CD (Linegod) - Chris Bell (Windows) (BSOD2600) - Paul Gevers (Debian) (paulgevers) - Morten Stevens (Fedora) (mortenstevens) -### Members of the original Cacti Group that have since moved on in their careers. -### We continue to wish them the best. +### Emeritus Members + +Members of the original Cacti Group who have since moved on in their careers. +We continue to wish them the best. - Ian Berry (raX) - Reinhard Scheck (gandalf) - Tony Roman (rony) - Andy Blyler (ablyler) +### In Memoriam + +Jeff Pasnak, credited as **J.P. Pasnak, CD (Linegod)**, was a longtime core +contributor. Cacti's [1.2.31 release announcement][release] records his +passing and honors his contributions to the project and community. + ## Thanks -A very special thanks to Tobi Oetiker, the creator of RRDtool and the very -popular MRTG. The users of Cacti - especially anyone who has taken the time to -create a bug report, or otherwise help fix a Cacti related problem. Also to -anyone who has contributed to supporting Cacti. +Thank you to Tobi Oetiker, the creator of RRDtool and MRTG, and to everyone +who reports problems, contributes fixes, or supports Cacti and its users. Cacti is licensed under the GNU GPL: @@ -77,9 +106,8 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details. 3. [Advanced Operations](README.md#advanced-operations) - This section covers more advanced material such as using a advanced data - collection and replacement variables that can be used within **Templates**, - etc. + This section covers advanced data collection, replacement variables that + can be used within **Templates**, debugging and release notes. 4. [Plugin Development](README.md#plugin-development) @@ -87,20 +115,33 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details. hooks, references, etc. More information can be found on the [Cacti Forums](https://forums.cacti.net/viewforum.php?f=6). -5. [How To's](README.md#how-tos) +5. [Plugins](README.md#plugins) - This section contains how to's for several topics. + This section lists the supported plugins and the plugin manuals kept in + this repository. -6. [Contributing](README.md#contributing) +6. [How To's](README.md#how-tos) + + This section contains how-tos for several topics. + +7. [Video Tutorials](README.md#video-tutorials) + + This section links to the official Cacti YouTube channel. + +8. [Contributing](README.md#contributing) This section contains information on how to contribute to Cacti. -7. [Development Standards](README.md#development-standards) +9. [Development Standards](README.md#development-standards) - This section contains the relevant information on how to ensure that any - contribution is kept to the same standards that are applied for the Cacti - Group. It should be noted that non-compliance does not mean automatically - exclusion of proposed changes. + This section contains the standards the Cacti Group applies to + contributions. Non-compliance does not automatically exclude a proposed + change. + +10. [Template Specific Documentation][template-docs] + + This section contains configuration requirements for particular + templates. ### Known Issues @@ -217,7 +258,7 @@ the maintained Enterprise Linux instructions. 7.2. [Export Templates](Export-Template.md) -8. [Settings (w/o Auth)](Settings.md) +8. [Settings](Settings.md) 8.1. [General](Settings-General.md) @@ -247,7 +288,7 @@ the maintained Enterprise Linux instructions. 9.4. [Domains Auth](Settings-Domains.md) -10. [Configuration - Users, Groups and Domains](Settings-Users-Groups-Domains.md) +10. [Configuration - Users, Groups and Domains][users-groups-domains] 10.1. [Users](User-Management.md) @@ -267,7 +308,7 @@ the maintained Enterprise Linux instructions. 13. Reporting - 13.1. [Reports Admistrative Interface](Reports-Admin.md) + 13.1. [Reports Administrative Interface](Reports-Admin.md) 13.2. [Reports User Interface](Reports-User.md) @@ -327,7 +368,8 @@ the maintained Enterprise Linux instructions. 3. [Mactrack Plugin documentation](Plugin-Mactrack.md) -4. [ReportIt Plugin documentation](resource/pdf/manual_reportit.pdf) Older version, pdf format +4. [ReportIt Plugin documentation](resource/pdf/manual_reportit.pdf) + (older version, PDF format) ### How Tos @@ -337,7 +379,7 @@ the maintained Enterprise Linux instructions. 3. [How To Work with Data Queries](How-To-Data-Queries.md) -4. [How To Work with Existing SNMP Data Queries](How-To-Existing-SNMP-Data-Queries.md) +4. [How To Work with Existing SNMP Data Queries][existing-snmp-queries] 5. [How To Work with New SNMP Data Queries](How-To-New-SNMP-Data-Queries.md) @@ -353,17 +395,18 @@ the maintained Enterprise Linux instructions. 11. [Graph a Single SNMP OID](Graph-a-Single-SNMP-OID.md) -12. [How To Extend snmpd with custom script/data](How-To-SNMP-Custom-Script.md) +12. [How To Extend snmpd with custom script/data][snmp-custom-script] -13. [Change poller interval from 5 minutes to 1 minute ](How-To-Poller-5-to-1-min.md) +13. [Change poller interval from 5 minutes to 1 minute][poller-interval] -14. [Convert from Package based install to source on Ubuntu/Debian](convert-from-package-to-source-debian-ubuntu.md) +14. [Convert from Package install to source on Ubuntu/Debian][package-to-source] ### Video Tutorials -Watch Howto's and Tutorials on the Cacti Official YouTube page if you prefer. If you would have any ideas for videos or would like to contribute let us know ! - -[Cacti Official Youtube Channel](https://www.youtube.com/channel/UC6ROmUGuuLa9BdHWzvGSY1w) +Watch how-tos and tutorials on the [official Cacti YouTube channel][videos]. +Check the demonstrated version against your installation. If you have ideas +for videos or would like to contribute, let us know on the +[Cacti Forums](https://forums.cacti.net/). ### Contributing @@ -389,13 +432,22 @@ Watch Howto's and Tutorials on the Cacti Official YouTube page if you prefer. If ### Template Specific Documentation -This section will be for template specific configuration requirements +This section contains template specific configuration requirements. 1. [Apache Server Template](template_apache_config.md) 2. [ESXi/VMWare Template](template_esxi_config.md) [manual-dev]: +[release]: https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31 +[videos]: https://www.youtube.com/channel/UC6ROmUGuuLa9BdHWzvGSY1w +[template-docs]: README.md#template-specific-documentation + +[users-groups-domains]: Settings-Users-Groups-Domains.md +[existing-snmp-queries]: How-To-Existing-SNMP-Data-Queries.md +[snmp-custom-script]: How-To-SNMP-Custom-Script.md +[poller-interval]: How-To-Poller-5-to-1-min.md +[package-to-source]: convert-from-package-to-source-debian-ubuntu.md [previous-lamp]: Install-Under-CentOS_LAMP.md [previous-lemp]: Install-Under-CentOS_LEMP.md diff --git a/RRDproxy.md b/RRDproxy.md index 30f7e32..c35cf85 100644 --- a/RRDproxy.md +++ b/RRDproxy.md @@ -7,12 +7,12 @@ replication, support of Cacti Boost and, if needed, the RRDcached daemon. It allows system administrators to split Cacti's access resources across machines without the need for NFS. -Due the fact that updates to files may contain sensitive data and to prevent -undesired updates, RRDtool proxy utilizes high encrypted connections (RSA2048 +Due to the fact that updates to files may contain sensitive data and to prevent +undesired updates, RRDtool proxy utilizes highly encrypted connections (RSA2048 and AES192) with continuously changing keys. This ensures a secured connection between the proxy and registered clients and/or other proxies. -A local service port is provided to allow administrators are able to access a +A local service port is provided to allow administrators to access a separate command line interface which provides easy access to configure and debug the proxy. @@ -72,9 +72,9 @@ which can be run at any point using the -w parameter. -w --wizard - Start Configuration Wizard ``` -When running through the wizard, the status of items will appear on the right -hand side of the screen. When an item is successfully completed, the status of -`[OK]` will be shown in green (when color is supported) as seen below: +When running through the wizard, the status of items will appear on the +right-hand side of the screen. When an item is successfully completed, the +status of `[OK]` will be shown in green (when color is supported) as seen below: ```shell Checking System Requirements... @@ -96,7 +96,7 @@ Green | Success and without issue Yellow | Warnings and will be ignored, correct the problem if needed Red | Errors and will not be ignored, may prevent continuation -When the wziard prompts for the various settings that are available, you can +When the wizard prompts for the various settings that are available, you can accept the default value simply by pressing return to accept it. Below are a few of these settings and the default values that can be accepted: @@ -154,8 +154,8 @@ rrdp# - Data replication has been completed to 95%, but is still not ready -- NET-SNMP pass persistent daemon and MIB needs to written to make proxy stats - available through SNMP +- Net-SNMP pass persistent daemon and MIB needs to be written to make proxy + stats available through SNMP --- Copyright (c) 2004-2026 The Cacti Group diff --git a/RRDtool-Specific-Features.md b/RRDtool-Specific-Features.md index c309f65..3ff166a 100644 --- a/RRDtool-Specific-Features.md +++ b/RRDtool-Specific-Features.md @@ -1,8 +1,8 @@ # RRDtool Specific Features Cacti supports most RRDtool features. In this chapter, many of those features, -and some Cacti implementation specifics around them will be discussed. As -RRDtool is a continually changing Times Series Database (TSDB) and **Graph** +and some Cacti implementation specifics around them, will be discussed. As +RRDtool is a continually changing Time Series Database (TSDB) and **Graph** rendering framework, this guide may be a little behind on all the RRDtool features that Cacti supports. @@ -14,24 +14,24 @@ remains untested. | Type | Supported | Description | | -------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| GAUGE | Yes | This is as the term refers to a floating point number that tracks the value reported directly. Unlike the COUNTER, it has not comprehension of past data. | -| COUNTER | Yes | This is a floating point number that tracks the different between samples to come up with effectively a rate calculation. Used for things like Traffic Graphs where the number reported in SNMP continually increases | +| GAUGE | Yes | This is as the term refers to a floating point number that tracks the value reported directly. Unlike the COUNTER, it has no comprehension of past data. | +| COUNTER | Yes | This is a floating point number that tracks the difference between samples to come up with effectively a rate calculation. Used for things like Traffic Graphs where the number reported in SNMP continually increases | | DCOUNTER | Yes | This is the same as a COUNTER, but in Double Precision. It is offered when RRDtool 1.5 or higher is installed. | | DERIVE | Yes | This data type measures the Rate of Change of a value, otherwise known as the first derivative to the value. As such, it relies on previous data in order to report the change. | | DDERIVE | Yes | This is the same as the DERIVE, but in Double Precision. It is offered when RRDtool 1.5 or higher is installed. | | ABSOLUTE | Yes | Is for counters that get reset upon reading. This is often used for fast counters. It is also similar to the DERIVE, or acts very much like it. | -| COMPUTE | Yes | Though Cacti claims to support this Data Type. It's not clear that it's presently working. | +| COMPUTE | Yes | Though Cacti claims to support this Data Type, it's not clear that it's presently working. | > **NOTE**: Presently `Holt-Winters Forecasting` is not supported in Cacti and > The Cacti Group has no plans on supporting it. If you would like > `Holt-Winters Forecasting` supported in Cacti, you will need to submit a pull -> request including documentation if you require it's functionality. +> request including documentation if you require its functionality. ## GPRINT Presets A GPRINT is a graph item type that enables you to print the values of data sources on a graph. They are typically used to represent legend values on the -graph. The output format of these numbers are controlled by a printf-like format +graph. The output format of these numbers is controlled by a printf-like format string. Cacti enables you to keep a global list of these strings that can be applied to any graph item throughout Cacti. You can see the list of available formats described on the @@ -53,9 +53,9 @@ Cacti. These generally cover just about all use cases presently. ## CDEF's CDEF's allow you to apply mathematical functions to graph data to alter output. -The concept of a CDEF comes straight from RRDtool, and are written in reverse -polish notation (RPN). For more information regarding the syntax of CDEF's, -check out the +The concept of a CDEF comes straight from RRDtool, and they are written in +reverse polish notation (RPN). For more information regarding the syntax of +CDEF's, check out the [CDEF tutorial](https://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html). From the image below, you can see that Cacti provides a rich set of CDEF's out @@ -71,11 +71,11 @@ section. Once at this screen, click Add to the right. You will be prompted for a CDEF name, for which you can type anything used to describe your CDEF. Click the Create button so you are redirected back to the edit page, now with an empty CDEF Items box. Construct your CDEF by adding an item for each element in the -CDEF string, common types such as operators and functions are enumerated for +CDEF string; common types such as operators and functions are enumerated for your convenience. Below is a basic description of each CDEF item type. You can see from the image below that CDEF's follow a Reverse Polish Notation (RPN), -which was a very popular way of computing back in the 70's and 80's when -computing devices had much less memory. However, RPN is elegant in it's +which was a very popular way of computing back in the 70s and 80s when +computing devices had much less memory. However, RPN is elegant in its simplicity. ![Default Cacti CDEF Example](images/cdefs-default-example.png) @@ -86,7 +86,7 @@ Cacti provides several CDEF Item Types to represent a **Data Source** in order to provide additional functionality. See below for the documentation. Cacti presently does not allow you to specify a VNAME for your DEFS, CDEF's and VDEF's, but instead uses a string pattern to assign them. You will have to take -note of then when creating a **Graph Template**. Those Special Data Source types +note of them when creating a **Graph Template**. Those Special Data Source types are documented below in the next few sections. | Type | Description | @@ -99,13 +99,13 @@ are documented below in the next few sections. ## VDEF's -VDEF's provide greater functionality then their ancestor CDEF's and may be able +VDEF's provide greater functionality than their ancestor CDEF's and may be able to replace some legacy Cacti functionality like Nth Percentile **Graph Template** logic. They should be used whenever possible for your **Graph Templates**. -You can see from the image below, that 95th percentile and total bandwidth could -be replace by using one of the VDEF's below. +You can see from the image below that 95th percentile and total bandwidth could +be replaced by using one of the VDEF's below. ![Default Cacti VDEF's](images/vdefs-default.png) @@ -116,7 +116,7 @@ section. Once at this screen, click Add to the right. You will be prompted for a VDEF name, for which you can type anything used to describe your VDEF. Click the Create button so you are redirected back to the edit page, now with an empty VDEF Items box. Construct your VDEF by adding an item for each element in the -VDEF string, common types such as operators and functions are enumerated for +VDEF string; common types such as operators and functions are enumerated for your convenience. Below is a basic description of each VDEF item type. The image below shows an example VDEF for the Bandwidth type VDEF. @@ -124,12 +124,12 @@ below shows an example VDEF for the Bandwidth type VDEF. For additional information on CDEF's and VDEF's see that specific section of the documentation. Additionally, you can find examples on the -[RRDtool Website](https://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html#VDEF) +[RRDtool Website](https://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html#VDEF). ### Special Data Sources The Special Data Source selection introduces some variables not known to plain -vanilla RRDtool. Let's spend some few words of them to unleash their power. +vanilla RRDtool. Let's spend a few words on them to unleash their power. ###### Table 19-2. CDEF Special Data Source @@ -137,8 +137,8 @@ vanilla RRDtool. Let's spend some few words of them to unleash their power. | --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Current Graph Item Data Source | Will be replaced by the DEF name of the RRDtool data source referred by the graph item this CDEF is associated to. | | All Data Sources (Do not Include Duplicates) | Will add up all data sources of the whole graph to form a total. A data source that appears more than once will be counted only once. Data sources that differ by consolidation functions only are NOT counted as different data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted only once). It is NOT required to associate the graph item to any data source! | -| All Data Sources (Include Duplicates) | Will add up all data sources of the whole graph to form a total. A data source that appears more than once will be counted for each time of it's appearance. Data sources that differ by consolidation functions only are NOT counted as different data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted only once). It is NOT required to associate the graph item to any data source! | -| All Similar Data Sources (Do not Include Duplicates) | It is REQUIRED to associate the graph item to the data source that shall be totaled! Let's assume the data source is named "traffic_in". Then, cacti will add up all data sources "traffic_in" of the whole graph to form a data source specific total (e.g. Total traffic In). Data sources with different consolidation functions are counted as same data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted once) | +| All Data Sources (Include Duplicates) | Will add up all data sources of the whole graph to form a total. A data source that appears more than once will be counted for each time of its appearance. Data sources that differ by consolidation functions only are NOT counted as different data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted only once). It is NOT required to associate the graph item to any data source! | +| All Similar Data Sources (Do not Include Duplicates) | It is REQUIRED to associate the graph item to the data source that shall be totaled! Let's assume the data source is named "traffic_in". Then, Cacti will add up all data sources "traffic_in" of the whole graph to form a data source specific total (e.g. Total traffic In). Data sources with different consolidation functions are counted as same data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted once) | | All Similar Data Sources (Include Duplicates) | It is REQUIRED to associate the graph item to the data source that shall be totaled! If a data source appears multiple times, it will be added this many times. | | Current Graph Item Polling Interval | Will be replaced by the step, in seconds, of the RRDfile of the data source referred by the graph item this CDEF is associated to. If the graph item has no data source, the `Poller Interval` setting is used. | | All Similar Data Sources (Do not Include Duplicates) Polling Interval | Will be replaced by the step, in seconds, of the RRDfile of the data source referred by the graph item this CDEF is associated to, in the same way as `Current Graph Item Polling Interval`. If the graph item has no data source, the `Poller Interval` setting is used. | @@ -147,8 +147,8 @@ vanilla RRDtool. Let's spend some few words of them to unleash their power. | Graph: Lower Limit | Taken from the Graph Template: fetches the Lower Limit defined to the Graph Template. This is independent of all --alt-autoscaling options. It is NOT the dynamically determined lower boundary of the graph! | | Graph: Upper Limit | Taken from the Graph Template: fetches the Upper Limit defined to the Graph Template. This is independent of all --alt-autoscaling options. It is NOT the dynamically determined upper boundary of the graph! | | Count of All Data Sources (Do not Include Duplicates) | Will count the number of all data sources of the whole graph. A data source that appears more than once will be counted only once. Data sources that differ by consolidation functions only are NOT counted as different data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted only once). It is NOT required to associate the graph item to any data source! | -| Count of All Data Sources (Include Duplicates) | Will count the number of all data sources of the whole graph. A data source that appears more than once will be counted for each time of it's appearance. Data sources that differ by consolidation functions only are NOT counted as different data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted only once). It is NOT required to associate the graph item to any data source! | -| Count of All Similar Data Sources (Do not Include Duplicates) | It is REQUIRED to associate the graph item to the data source that shall be counted! Let's assume the data source is named "traffic_in". Then, cacti will count all data sources "traffic_in" of the whole graph. Data sources with different consolidation functions are counted as same data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted once) | +| Count of All Data Sources (Include Duplicates) | Will count the number of all data sources of the whole graph. A data source that appears more than once will be counted for each time of its appearance. Data sources that differ by consolidation functions only are NOT counted as different data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted only once). It is NOT required to associate the graph item to any data source! | +| Count of All Similar Data Sources (Do not Include Duplicates) | It is REQUIRED to associate the graph item to the data source that shall be counted! Let's assume the data source is named "traffic_in". Then, Cacti will count all data sources "traffic_in" of the whole graph. Data sources with different consolidation functions are counted as same data sources (e.g. traffic_in:AVERAGE and traffic_in:MAX are counted once) | | Count of All Similar Data Sources (Include Duplicates) | It is REQUIRED to associate the graph item to the data source that shall be counted! If a data source appears multiple times, it will be counted this many times. | While the `All Data Sources/Similar Data Sources` pseudo CDEF variables perform @@ -163,7 +163,7 @@ CDEF: Let's have some examples: -This is the list of graph items defined. Please note, that Item numbers 17-20 +This is the list of graph items defined. Please note that Item numbers 17-20 are duplicates of Item numbers 1-4. Even if it usually does not make sense, for this discussion it is very valuable. Item numbers 21-24 are related to a `cdef=ALL_DATA_SOURCES_NODUPS`. @@ -250,12 +250,12 @@ GPRINT:cdefca:MAX:"Maximum:%8.2lf%sn" ``` The data sources are denoted by the letters `a` to `h`. `cdefca` represents the -important part. You surely notice, that all data sources using consolidation +important part. You surely notice that all data sources using consolidation function `AVERAGE` are taken into account while `MAX` is skipped. Please pay attention to the data source denoted by `a`. Even though the data source appears twice, the cdef shows it only once. This is due to the duplicate suppression. -This is the list of graph items defined. Please note, that Item numbers 17-20 +This is the list of graph items defined. Please note that Item numbers 17-20 are duplicates of Item numbers 1-4. Even if it usually does not make sense, for this discussion it is very valuable. Item numbers 21-24 are related to a `cdef=ALL_DATA_SOURCES_DUPS` @@ -343,15 +343,15 @@ GPRINT:cdefca:MAX:"Maximum:%8.2lf%sn" Again, the data sources are denoted by the letters `a` to `h` and `cdefca` represents the important part. Please pay attention to the data source denoted -by `a` appearing twice in this cdef. This is, because it appears twice (Item +by `a` appearing twice in this cdef. This is because it appears twice (Item numbers 17-20) in the graph item list and duplicate suppression is not in effect. Everything is very much like the above; again Item numbers 17-20 are duplicates of Item numbers 1-4. Item numbers 21-24 are related to a `cdef=SIMILAR_DATA_SOURCES_NODUPS` and are associated with the data source -`traffic_in` of the `1`. target (it does not matter, which target is chosen, as -long as you only choose a `traffic_in` data source) +`traffic_in` of the `1`. target (it does not matter which target is chosen, as +long as you only choose a `traffic_in` data source). | Graph Item | Data Source | Graph Item Type | CF Type | | :--------- | :--------------------------------------- | --------------: | ------: | @@ -438,24 +438,24 @@ GPRINT:cdefcd:MAX:"Maximum:%8.2lf%sn" `cdefca` calculates the `SUM` of `all traffic_in` data sources, but pays attention only to consolidation function `AVERAGE`. Duplicate suppression makes -sure, that the second occurrence of the `1`. target is not taken into account. -So it's only summing data source `a` and `c`. `cdefca` is used the the `LINE1` +sure that the second occurrence of the `1`. target is not taken into account. +So it's only summing data source `a` and `c`. `cdefca` is used for the `LINE1` graph item with exact match for consolidation function `AVERAGE` as well as for the best matched consolidation functions `LAST` and `MIN`. `cdefcd` calculates the `SUM` of all `traffic_in` data sources, but pays attention only to consolidation function `MAX`. Again, duplicate suppression is in effect. So it's only summing data source `b` and `d`. `cdefcd` is used for -the graph item with exact match for consolidation function `MAX` only. This is, +the graph item with exact match for consolidation function `MAX` only. This is because my rra settings only define `AVERAGE` and `MAX`, where `LAST` and `MIN` are omitted. This may differ for installations defining `LAST` and `MIN` as well. -Again, please note, that Item numbers 17-20 are duplicates of Item numbers 1-4. +Again, please note that Item numbers 17-20 are duplicates of Item numbers 1-4. Item numbers 21-24 are related to a `cdef=SIMILAR_DATA_SOURCES_DUPS` and are associated with the data source `traffic_in` of the `1` target (it does not -matter, which target is chosen, as long as you only choose a `traffic_in` data -source) +matter which target is chosen, as long as you only choose a `traffic_in` data +source). | Graph Item | Data Source | Graph Item Type | CF Type | | :--------- | :--------------------------------------- | --------------: | ------: | @@ -539,7 +539,7 @@ GPRINT:cdefca:AVERAGE:"Average:%8.2lf%s" \ GPRINT:cdefcd:MAX:"Maximum:%8.2lf%sn" ``` -`cdefca` and `cdefcd` represents the important part. You surely notice, that all +`cdefca` and `cdefcd` represent the important part. You surely notice that all data sources using consolidation function AVERAGE are taken into account for calculation `cdefca`, while `MAX` is calculated with `cdefcd`. Please pay attention to the data source denoted by `a` and `b`, respectively, appearing @@ -549,16 +549,16 @@ twice in those CDEFs as expected. This example is based on the standard data template `ucd/net - Hard Drive Space`. Cacti ships an associated graph template named -`ucd/net - Available Disk Space`. Often, users complain about the fact, that +`ucd/net - Available Disk Space`. Often, users complain about the fact that this template prints free and used space as absolute figures only. But instead -of knowing, that your data partition has about 10GB used space, you may be +of knowing that your data partition has about 10GB used space, you may be interested in the percentage used. So let's create a simple example to show the power of the recently introduced special data sources. To make it work, we need two new CDEFs. The first one may come in useful for a bunch of different graph templates. It's named `Make Current Data Source 0`. On a first glance, you may wonder why this CDEF is needed. It is used for those -data sources, that will be used for calculations but shall not show up +data sources that will be used for calculations but shall not show up themselves. Here's the definition `cdef=CURRENT_DATA_SOURCE,0,*` @@ -620,16 +620,16 @@ LINE1:cdefb:"" \ AREA:cdefc#FF0000FF:"% Used" ``` -`cdefa` and `cdefb` are used to make the according graph items zero. `cdefc` +`cdefa` and `cdefb` are used to make the corresponding graph items zero. `cdefc` performs the percentage calculation. You may of course add `GPRINT` legends as usual. If you do this for the "% Used" -entry only, you will get surprising results, if your RRDfile holds either +entry only, you will get surprising results if your RRDfile holds either `MAXIMUM`, `LAST` and/or `MINIMUM` consolidation function(s). This is left as an exercise to you :) This set of CDEFs is used to colorize the background of a graph with different -colors for day, night and weekends. The CDEFs are created as usual, we will show +colors for day, night and weekends. The CDEFs are created as usual; we will show the CDEF definition only. Examples are taken from RRDtool-users mailing list courtesy Erik de Mare. Here are the definitions @@ -639,23 +639,23 @@ courtesy Erik de Mare. Here are the definitions #### Background for Nighttime -cdef=LTIME,86400,%,28800,LT,INF,LTIME,86400,%,64800,GT,INF,UNKN,CURRENT_DATA_SOURCE,\*,IF,IF` +`cdef=LTIME,86400,%,28800,LT,INF,LTIME,86400,%,64800,GT,INF,UNKN,CURRENT_DATA_SOURCE,*,IF,IF` #### Background for Weekend `cdef=LTIME,604800,%,172800,GT,LTIME,604800,%,345600,LT,INF,UNKN,CURRENT_DATA_SOURCE,*,IF,UNKN,CURRENT_DATA_SOURCE,*,IF` The value of `86400` represents the number of seconds of a day, whereas `28800` -represents `8:00`, defined as the start of the day. End of the day, `64800` is -assumed at `18:00`. Please replace those values if required. For weekends, same -logic applies. +represents `8:00`, defined as the start of the day. The end of the day, `64800`, +is assumed at `18:00`. Please replace those values if required. For weekends, +the same logic applies. Now, let's apply those new CDEFs to a Graph Template. For this example, I've chosen the `Unix - Processes` that applies to `localhost` only. In turn, please create three new graph items, associate the processes data source, make them AREAs, select a color and opacity. Choose the `daytime`, `nighttime` and `weekend` CDEF in this sequence. As a last step, move those three new graph -items to the top. I've chosen opacity of `20%` for Item numbers 1 to 3. +items to the top. I've chosen an opacity of `20%` for Item numbers 1 to 3. | Graph Item | Data Source | Graph Item Type | CF Type | Item Color | | :--------- | :------------------------ | --------------: | ------: | :--------- | diff --git a/Reports-Admin.md b/Reports-Admin.md index 9ce2971..3cead70 100644 --- a/Reports-Admin.md +++ b/Reports-Admin.md @@ -23,11 +23,11 @@ columns: - **Frequency** - How often the Report is to be sent to the distribution. - **Last Run** - The last time that the Report was sent to the distribution. - **Next Run** - The approximate next time that the report is to be sent. - this is not an exact number. It does depend on the poller first running. So, + This is not an exact number. It does depend on the poller first running. So, depending on how long your poller runs for, this time could be off by a few minutes. - **From** - The From Name portion of the From Email address -- **To** - The list of Emails that the reports is to be sent to. +- **To** - The list of Emails that the report is to be sent to. - **Type** - The Image format and the type of embedding done in the Email. - **Enabled** - Is the Report able to be sent on the Schedule. @@ -42,7 +42,7 @@ The actions that you can take on an existing Report as an Administrator include: ## Report Editing -When you click the Add button on the right side of the **Reports** page, or Click +When you click the Add button on the right side of the **Reports** page, or click the Report Name of an existing Report, you will be presented with the interface below. ![Reports Admin Edit](images/reports-edit-1.png) @@ -55,7 +55,7 @@ This section includes: custom html/css document that you can use to customize the layout of your reports and add corporate branding for example. - **Format File to Use** - The specific html/css file to use. -- **Graph Linked** - Provide the recipient of the report a ling back to the actual +- **Graph Linked** - Provide the recipient of the report a link back to the actual graph in Cacti. - **Graph Columns** - The number of Graph columns to use per row. - **Graph Width** - The width of each Graph @@ -66,7 +66,7 @@ This section includes: Hours, Days, Weeks, Months on a Day of the Month, Months on the Day of the Week, and Years. - **Interval Frequency** - How often to send, for example if you select Days, - and the Interval is one, it means every day, if you select 2, + and the Interval is one, it means every day; if you select 2, it means every other day. The **Email Frequency** section does not use the same layout as does our @@ -84,15 +84,15 @@ From here you can set the following columns. - **From Email Address** - The From Email address. For example *noreply@mydomain.com* - **To Email Address(es)** - A comma delimited list of Email addresses that should receive the Report. -- **BCC Address(es)** - An anonymized list of Email recipients +- **BCC Address(es)** - A comma delimited list of blind carbon copy recipients - **Image attach type** - This defines how the Cacti Graph images get attached -to the Email. Maybe are for legacy purposes. Most users will use +to the Email. Many are for legacy purposes. Most users will use Inline PNG or Inline JPG. -Once you save a new **Report** additional Tabs will show up. Those tabs are: +Once you save a new **Report**, additional Tabs will show up. Those tabs are: -- **Items** - The Graph's, Tree's, Text, Horizontal Rules, - and Device's to place on the Report. +- **Items** - The Graphs, Trees, Text, Horizontal Rules, + and Devices to place on the Report. - **Preview** - See a Preview of your Report - **Events** - Approximate Future Event Days for your Report to be sent. This helps interpret the idiosyncrasies of the scheduler design. diff --git a/Reports-Events.md b/Reports-Events.md index b99d7c6..a6015cc 100644 --- a/Reports-Events.md +++ b/Reports-Events.md @@ -1,9 +1,9 @@ # Report Events On this page, you can simply see on what dates and approximate times that the -**Reports** scheduler will send future report. You can see from the image below -this the report will be sent every day at approximately 09:18:30. The poller frequency -or Data Collector interval is 30 seconds on this system. +**Reports** scheduler will send future reports. You can see from the image +below that the report will be sent every day at approximately 09:18:30. The +poller frequency or Data Collector interval is 30 seconds on this system. ![Report Events](images/reports-events.png) diff --git a/Reports-Items.md b/Reports-Items.md index 42a8865..9e3bcd0 100644 --- a/Reports-Items.md +++ b/Reports-Items.md @@ -21,13 +21,13 @@ An example **Report Items** interface can be seen below. ![Report Item](images/reports-items.png) From this image, you can see a combination of **Graphs**, **Devices**, and a **Device** -showing only **Graphs** that include *eth0*, and *SCSI* in their titles indicating +showing only **Graphs** that include *eth0* and *SCSI* in their titles indicating something about Interface Graphs and Disk Utilization Graphs. ## Item Edit Page -When you either add a new Item by pressing the Add button on the right, -Clicking on the Item # on the left, you will be presented a page +When you either add a new Item by pressing the Add button on the right, or +clicking on the Item # on the left, you will be presented a page that is personalized depending on the *Item Type*. When you add an item for the first time, you will see the image below. @@ -45,7 +45,7 @@ The columns for a **Graph** Type **Report Item** include: - **Graph Template** - A filter that will show only Graphs from a specific Graph Template. -The options above are only Filter to reduce the Graph list when you +The options above are only filters to reduce the Graph list when you actually select the **Graph Name**, it will apply those filters to narrow in on the Graphs to display in the drop-down. All of the filters above are *optional*. @@ -57,12 +57,12 @@ The last sections are for the specific Graph in question including: - **Alignment** - Should the Graph be Center, Left or Right Aligned on the page. - **Sequence** - The Graph Items Sequence number. This is a Read Only variable. -When, you change the **Report Item** to **Device** the layout of the page will +When you change the **Report Item** to **Device** the layout of the page will change and you will see the form shown below. ![Report Item Device Item](images/reports-item-device.png) -In this case, the **Site**, and **Device Template** both remain Filters, the **Device** +In this case, the **Site** and **Device Template** both remain Filters; the **Device** represents the **Device** to include on the **Report**. After that, the options below define what Graphs from the Device are to be included. @@ -74,25 +74,23 @@ After that, the options below define what Graphs from the Device are to be inclu - **Sequence** - The Graph Items Sequence number. This is a Read Only variable. The last **Report Item** that we will document here is the **Tree** type. -The Text and Horizontal Rule types are pretty much self explanitory. +The Text and Horizontal Rule types are pretty much self-explanatory. The image below is the layout that will be shown when you change the **Report Item** to **Tree**. ![Report Item Tree Item](images/reports-item-tree.png) -In this case, there are no filter, just selections. They include: +In this case, there are no filters, just selections. They include: - **Graph Tree** - The name of the Cacti Tree to include in the report. - **Graph Tree Branch** - The specific Branch to include - -if you are only wanting to include aportion of the **Tree** + if you are only wanting to include a portion of the **Tree** - **Cascade to Branches** - Walk all the **Graph Trees** branches - **Graph Name Regular Expression** - A MySQL/MariaDB compatible Regular - -Expression of Graph Names to include in the Report. + Expression of Graph Names to include in the Report. - **Graph Timespan** - The time range to show for the Graph. diff --git a/Reports-User.md b/Reports-User.md index 879e093..6e300e2 100644 --- a/Reports-User.md +++ b/Reports-User.md @@ -4,7 +4,7 @@ This section will describe the user view to Cacti's **Reports** feature. The **Reports User** interface allows you to see and manage your own reports. This is unlike the **Reports Administration** interface that allows you to -manage others reports in addition to your own. +manage others' reports in addition to your own. ## The Web Interface @@ -19,12 +19,12 @@ columns: - **Report Title** - The name of the Report. - **Frequency** - How often the Report is to be sent to the distribution. - **Last Run** - The last time that the Report was sent to the distribution. -- **Next Run** - The approximate next time that the report is to be sent. this +- **Next Run** - The approximate next time that the report is to be sent. This is not an exact number. It does depend on the poller first running. So, depending on how long your poller runs for, this time could be off by a few minutes. - **From** - The From Name portion of the From Email address -- **To** - The list of Emails that the reports is to be sent to. +- **To** - The list of Emails that the report is to be sent to. - **Type** - The Image format and the type of embedding done in the Email. - **Enabled** - Is the Report able to be sent on the Schedule. @@ -39,7 +39,7 @@ The actions that you can take on an existing Report as an Administrator include: ## Report Editing When you click the Add button on the right side of the **Reports** page, or -Click on the Report Name of an existing Report, you will be presented with the +click on the Report Name of an existing Report, you will be presented with the interface below. ![Reports User Edit](images/reports-edit-1.png) @@ -52,7 +52,7 @@ This section includes: custom html/css document that you can use to customize the layout of your reports and add corporate branding for example. - **Format File to Use** - The specific html/css file to use. -- **Graph Linked** - Provide the recipient of the report a ling back to the +- **Graph Linked** - Provide the recipient of the report a link back to the actual graph in Cacti. - **Graph Columns** - The number of Graph columns to use per row. - **Graph Width** - The width of each Graph @@ -64,7 +64,7 @@ This section includes: Minute, Hours, Days, Weeks, Months on a Day of the Month, Months on the Day of the Week, and Years. - **Interval Frequency** - How often to send, for example if you select Days, - and the Interval is one, it means every day, if you select 2, it means every + and the Interval is one, it means every day; if you select 2, it means every other day. The **Email Frequency** section does not use the same layout as does our @@ -73,7 +73,7 @@ The **Email Frequency** section does not use the same layout as does our The last section of the **Report Details** is the **Email Sender/Receiver Details** section as shown below. -![Reports Admin Edit](images/reports-edit-2.png) +![Reports User Edit](images/reports-edit-2.png) From here you can set the following columns. @@ -84,14 +84,14 @@ From here you can set the following columns. `noreply@mydomain.com` - **To Email Address(es)** - A comma delimited list of Email addresses that should receive the Report. -- **BCC Address(es)** - An anonymized list of Email recipients +- **BCC Address(es)** - A comma delimited list of blind carbon copy recipients - **Image attach type** - This defines how the Cacti Graph images get attached - to the Email. Maybe are for legacy purposes. Most users will use Inline PNG or + to the Email. Many are for legacy purposes. Most users will use Inline PNG or Inline JPG. -Once you save a new **Report** additional Tabs will show up. Those tabs are: +Once you save a new **Report**, additional Tabs will show up. Those tabs are: -- **Items** - The Graph's, Tree's, Text, Horizontal Rules, and Device's to place +- **Items** - The Graphs, Trees, Text, Horizontal Rules, and Devices to place on the Report. - **Preview** - See a Preview of your Report - **Events** - Approximate Future Event Days for your Report to be sent. This diff --git a/Requirements.md b/Requirements.md index aa78949..d2dea71 100644 --- a/Requirements.md +++ b/Requirements.md @@ -33,7 +33,7 @@ beta OS or an expired point release for these procedures. | Component | Deployment guidance | | --- | --- | | Web server | Maintained PHP-capable Apache, nginx, or IIS FastCGI | -| PHP | A vendor-maintained PHP branch compatible with Cacti 1.2.31; the installer's own version check is only a 5.4.0 floor, while the bundled libraries require PHP 8.0 or later in 1.2.31 and 8.2 or later on 1.2.x; validate CLI and web PHP with the installer | +| PHP | A vendor-maintained PHP branch compatible with Cacti 1.2.31; the installer's own version check is only a 5.4.0 floor, while the bundled libraries require PHP 8.0 or later in the 1.2.31 release and PHP 8.2 or later on the unreleased 1.2.x branch; validate CLI and web PHP with the installer | | Database | A maintained MySQL or MariaDB branch; check the actual server with the installer. The 1.2.x installer recommends MySQL 8.0 or later or MariaDB 10.5 or later; the 1.2.31 release named MySQL 5.6 and MariaDB 10.0 | | RRDtool | A maintained distribution package; the installer accepts version 1.3 or later, and 1.5 or later is needed for the `DCOUNTER` and `DDERIVE` data source types and the `--skip-past-updates` update option | | SNMP | Net-SNMP command-line tools for the collection paths that require them | diff --git a/SNMP-Options.md b/SNMP-Options.md index d91f569..fd61d21 100644 --- a/SNMP-Options.md +++ b/SNMP-Options.md @@ -18,13 +18,13 @@ For a device already managed by Cacti, configure its polling credentials in bulk credential update for existing devices. Keep the device's SNMP settings consistent with its agent and the collector that polls it. -![SNMP Options](images/automation-snmp-options.png). +![SNMP Options](images/automation-snmp-options.png) -![SNMP Options Edit](images/automation-snmp-options-edit1.png). +![SNMP Options Edit](images/automation-snmp-options-edit1.png) -![SNMP Options Item Edit SNMPv1/2](images/automation-snmp-options-edit2.png). +![SNMP Options Item Edit SNMPv1/2](images/automation-snmp-options-edit2.png) -![SNMP Options Item Edit SNMPv3](images/automation-snmp-options-edit3.png). +![SNMP Options Item Edit SNMPv3](images/automation-snmp-options-edit3.png) Before starting a scan, confirm that the selected set contains the intended credentials and that the collector can reach the target agents. A successful diff --git a/Settings-Auth-Basic.md b/Settings-Auth-Basic.md index 7fad863..7bcdf30 100644 --- a/Settings-Auth-Basic.md +++ b/Settings-Auth-Basic.md @@ -11,8 +11,8 @@ method into production. > **NOTE**: Before enabling the **Basic Authentication Method**, you must > always verify that you are prompted for a password before getting the -> normal Cacti login prompt, and that you have setup a new user account -> with Admin privileges that matches your login account. Otherwise +> normal Cacti login prompt, and that you have set up a new user account +> with Admin privileges that matches your login account. Otherwise, > when you enable Basic Authentication, you can lock yourself out of the > Cacti Website. @@ -25,24 +25,24 @@ includes the `Special Users` sub-section. Those settings include: -- **Primary Admin** - This is the Cacti primary administrative account - this account will receive Cacti notifications and can not be deleted. +- **Primary Admin** - This is the Cacti primary administrative account. + This account will receive Cacti notifications and cannot be deleted. - **Guest User** - This is a special account that allows users to access certain pages without being prompted for a login and password. - Setting to `None`, disables this feature. -- **User Template** - All new users who login for the first time will + Setting to `None` disables this feature. +- **User Template** - All new users who log in for the first time will have their initial settings based upon this **User Template**. - **Basic Auth Login Failure Message** - This textbox can be customized in order to provide a useful message to users who have no access to Cacti via Basic Authentication and how to resolve the issue. - **Basic Auth Mapfile** - If your basic users do not match OS users - you can force a basic account to login with an alternate account. + you can force a basic account to log in with an alternate account. ## Basic Auth Mapfile -This settings is important for plugins that grant certain features +This setting is important for plugins that grant certain features to accounts, but those accounts do not match the login account. For -example, your basic account maybe: joe.schmoe@company.com, and your +example, your basic account may be: joe.schmoe@company.com, and your UNIX login account may be `jschmoe`, which grants you certain plugin permissions, like controlling your own workload. @@ -50,7 +50,7 @@ The mapfile is a file in CSV format, with the first column being the Basic account (aka `joe.schmoe`), and the second column being the login account (jschmoe). When the Basic account includes a domain, as in `joe.schmoe@company.com`, Cacti removes the -`@company.com` part before it searches the first column. It is up-to the Cacti +`@company.com` part before it searches the first column. It is up to the Cacti administrator to manage and update this file per their local site practices. diff --git a/Settings-Auth-LDAP.md b/Settings-Auth-LDAP.md index a0ab08e..264211f 100644 --- a/Settings-Auth-LDAP.md +++ b/Settings-Auth-LDAP.md @@ -6,8 +6,8 @@ following sections. ## Be Aware -New authentication settings may not take effect immediately. We recommend to -open a **new** private browser window to test configuration changes. +New authentication settings may not take effect immediately. We recommend +opening a **new** private browser window to test configuration changes. ## Defining some terms @@ -26,7 +26,7 @@ Before proceeding, please ensure you are familiar with the following terms: for organizational and management purposes. 3. _DN_ - Short for _distinguished name_, a string that represents a - unique object in the directory. There can not be two DNs alike + unique object in the directory. There cannot be two DNs alike in a directory. In Microsoft's _Active Directory_, this is a string like 'CN=Joseph,OU=Accounting,OU=Users,DC=corp,DC=example,DC=com'. @@ -39,8 +39,8 @@ Before proceeding, please ensure you are familiar with the following terms: correct for that user. 6. _sAMAccountName_ - An attribute found in Microsoft's _Active Directory_ - directory, and is what we casually know as a _username_. The _sAMAccountName_ - does not uniquely represent an object in the Active Directory, + directory, and it is what we casually know as a _username_. The + _sAMAccountName_ does not uniquely represent an object in the Active Directory, whereas the _DN_ does. ## Configuring LDAP @@ -67,7 +67,7 @@ LDAP authentication. ```domain\``` -2._Anonymous Searching_ - In this routine, Cacti connects to LDAP with no +2. _Anonymous Searching_ - In this routine, Cacti connects to LDAP with no authentication and attempts to perform a search for the _username_, in an attempt to retrieve the specific DN associated with the username. Once the specific DN of the username is found, Cacti binds to LDAP using the DN of @@ -75,7 +75,7 @@ LDAP authentication. default, Microsoft's Active Directory does not permit anonymous searches, and will refuse the search request. -3.Specific Searching_- In this routine, Cacti binds to LDAP using a service +3. _Specific Searching_ - In this routine, Cacti binds to LDAP using a service account that was provided beforehand, then performs a search for the _username_, in an attempt to retrieve the specific DN associated with the username. Once the specific DN of the username is found, Cacti binds to LDAP @@ -143,9 +143,9 @@ The remaining LDAP General Settings are: Cacti can enforce that a user be a member of a specific directory group to be granted access to Cacti. This is useful when your directory contains a mix of users who should and should not be granted access to Cacti. For Cacti to -require that the user be apart of a group, Cacti will send a _compare_ request +require that the user be a part of a group, Cacti will send a _compare_ request to the directory server asking the server if a specific group has any -parameters that contain a specific username. As an example, a compare requests +parameters that contain a specific username. As an example, a compare request asks the following type of question: Does there exist a group named @@ -162,14 +162,14 @@ The following three settings determine the content of the compare request. CN=cacti-admins,OU=Admin_Groups,OU=Groups,DC=corp,DC=company,DC=com ``` -2.Group Member Attribute_ - The name of the attribute into which the +2. _Group Member Attribute_ - The name of the attribute into which the directory server should search for the user. For example: ```bash member ``` -3.Group Member Type_ - The format of the text string which should represent +3. _Group Member Type_ - The format of the text string which should represent the user. ### Specific Search Settings @@ -180,7 +180,7 @@ member _search base_ setting is useful to reduce the portion of the directory that is searched, thus increasing speed and reducing processor load on the directory server. This setting is also useful if you want to restrict access to Cacti to - users who exist in a particular location in the director heierarchy. + users who exist in a particular location in the directory hierarchy. 2. _Search Filter_ - The criteria for which the directory server should search. Any parameters that the server is capable of understanding are permitted here. @@ -192,17 +192,17 @@ member (sAMAccountName=) ``` -But more complex filers are also permitted, such as: +But more complex filters are also permitted, such as: ```bash (&(sAMAccountName=)(memberOf=CN=cacti-admins,OU=Admin_Groups,OU=Groups ,DC=corp,DC=company,DC=com)) ``` -3.Search Distinguished Name (DN)_ - The username of the service account with +3. _Search Distinguished Name (DN)_ - The username of the service account with which Cacti will bind to the directory. -4.Search Password_ - The password of the service account with which Cacti +4. _Search Password_ - The password of the service account with which Cacti will bind to the directory. ### LDAP CN Settings @@ -225,7 +225,7 @@ directory. 2. _Email_ - The LDAP attribute name which contains a user's email address. One common example is 'mail'. -**Always user lower case**. No matter if the directory's attribute name contains +**Always use lower case**. No matter if the directory's attribute name contains uppercase characters (e.g. `fullName`), the respective field must be filled out in lower-case (`fullname`). @@ -297,7 +297,7 @@ all directory servers, and that all directory servers are properly configured. ## Common Scenarios -These following scenarios are designed to help you see the different ways to +The following scenarios are designed to help you see the different ways to harness the power of LDAP and build a working LDAP configuration in your environment. @@ -311,7 +311,7 @@ To handle this scenario, start by creating a new local user in Cacti with read-only permissions. Name the user 'MyLdapTemplate'. Next, in Cacti's Authentication settings, set the `User Template` field to 'MyLdapTemplate'. Set the `Mode` to 'No Searching'. Set the `Distinguished Name (DN)` field to -```@example.com'```, where 'example.com' is the name of your domain. +```@example.com```, where 'example.com' is the name of your domain. When any user logs in to Cacti, their password will be checked against the LDAP directory and they'll be granted access to Cacti with read-only access (from the LDAP template user). Once a new user logs in, Cacti will create a local @@ -330,7 +330,7 @@ authorized users. To handle this scenario by manually authorizing users within Cacti, navigate to the Authentication settings, and set the `User Template` field to 'No User'. -Set the `Mode` to 'No Searching'. Set the `Distinguished Name (DN)` field t +Set the `Mode` to 'No Searching'. Set the `Distinguished Name (DN)` field to ```@example.com```, where 'example.com' is the name of your domain. Next, navigate to the `Users` page and create a new user where the username matches the username in the directory. Set the user's `Realm` to 'LDAP'. @@ -352,8 +352,8 @@ Name (DN)` to the name of the group. Set `Group Member Attribute` to 'member'. Set `Group Member Type` to 'Distinguished Name'. Set `Search Base` to the DN of the hierarchical structure in the directory which contains all the users, such as 'OU=Users,DC=example,DC=com'. Set `Search Filter` to -```'sAMAccountName='```. Set `Search Distinguished Name (DN)` to the -username of the service account you created in the directory. Set `Search +```'(sAMAccountName=)'```. Set `Search Distinguished Name (DN)` to +the username of the service account you created in the directory. Set `Search Password` to the password for the service account. Optionally, set `Full Name` to the directory attribute that contains the user's name, such as 'cn', and also set `Email` to the directory attribute that contains the user's email diff --git a/Settings-Auth-Local.md b/Settings-Auth-Local.md index 1455270..1226d72 100644 --- a/Settings-Auth-Local.md +++ b/Settings-Auth-Local.md @@ -19,11 +19,11 @@ Those options include: - **Minimum Length** - The minimum length password that is acceptable - **Require Mix Case** - Require that the password have mixed case -- **Require Number** - The password must includes a number. +- **Require Number** - The password must include a number. - **Require Special Character** - The password must include a Special Character. - **Force Complexity Upon Old Passwords** - If set, and a user attempts - to login with a password that does not meet the current complexity + to log in with a password that does not meet the current complexity requirements, they will be forced to change their password. - **Expire Inactive Accounts** - Disable inactive accounts after a certain number of days of inactivity. The Admin account is excluded @@ -40,12 +40,12 @@ If a user attempts to use an incorrect password more than a certain number of times without a successful login, Cacti can automatically lock out the user from that account for a certain amount of time. This technique prevents hackers from continually attempting to -break a users password from the Cacti interface. The images -below shows the two settings associated with this Cacti feature. +break a user's password from the Cacti interface. The images +below show the two settings associated with this Cacti feature. ![Local Lockout Settings](images/settings-auth-local-locking.png) -The settings are fairly self explanatory, so additional detail is no +The settings are fairly self-explanatory, so additional detail is not provided here. --- diff --git a/Settings-Auth.md b/Settings-Auth.md index 6534ca2..fa1973c 100644 --- a/Settings-Auth.md +++ b/Settings-Auth.md @@ -5,16 +5,16 @@ Cacti provides four Authentication methods that can be leveraged to provide Authentication services. When combined with the variety of Apache and NGINX Modules, Cacti can support just about every Authentication method available -today in the industry. Those Authentication method include: +today in the industry. Those Authentication methods include: -- **Built-in Authentication** - When using the method, Cacti will store both - the user account, and it's password on the Cacti server. When using this - method, Cacti will encrypt the users password using a strong password +- **Built-in Authentication** - When using this method, Cacti will store both + the user account and its password on the Cacti server. When using this + method, Cacti will encrypt the user's password using a strong password encryption method and it will be rehashed periodically automatically. Also, when using this method, Cacti complies with C3 password requirements. - **Web Basic Authentication** - With this method, the Web Server itself controls the Authentication. Using this method, Cacti can support protocols - such as SAML2 via OpenITC, NIS, LDAP, local password, TACAC+, etc. + such as SAML2 via OpenITC, NIS, LDAP, local password, TACACS+, etc. - **LDAP/AD Authentication** - Cacti supports direct communications with LDAP and Active Directory servers as well. When using this method, Cacti can limit what User Group may access Cacti based upon more detailed @@ -22,8 +22,8 @@ today in the industry. Those Authentication method include: - **Multiple LDAP/AD Domains** - When you have multiple security levels and/or LDAP and AD Domains that you wish to support, for example maybe you have Admins, Power Users, and General Users groups defined - and you wish to restrict who can login as who, this Authentication - method allows you to setup that type of security system. + and you wish to restrict who can log in as who, this Authentication + method allows you to set up that type of security system. For most of these `Authentication Methods`, there are some common settings showing in the image below. @@ -36,7 +36,7 @@ Those options include: is not enabled, the LDAP and Multiple LDAP/AD Domains options are not selectable. - **Support Authentication Cookies** - Provide a `Keep me signed in` option - that will keep a user logged in from a single browser instance for up-to 90 + that will keep a user logged in from a single browser instance for up to 90 days of non-use without requesting that they re-validate their passwords. - **Primary Admin** - This is the Primary Cacti Admin account. This user account will receive all Cacti Administrative notification like when @@ -44,9 +44,9 @@ Those options include: - **Guest User** - If you select a **Guest User**, people within an organization will be able to access certain Cacti pages without first authenticating. This setting is good for the pages like the **Graph Page** where you may - with to embed live Cacti **Graphs** in other corporate websites. + wish to embed live Cacti **Graphs** in other corporate websites. - **User Template**, when creating new accounts, either LDAP, Web Basic, - or new Cacti local accounts, Cacti will pull the users default Authorization + or new Cacti local accounts, Cacti will pull the user's default Authorization from this Template User account. For some Cacti **Authentication Methods**, you can have more than one Template User, for example: **Multiple LDAP/AD Domains**. diff --git a/Settings-Data.md b/Settings-Data.md index ec5485b..de85344 100644 --- a/Settings-Data.md +++ b/Settings-Data.md @@ -1,8 +1,8 @@ # Data Settings -The Cacti Data settings includes settings for gathering statistical data +The Cacti Data settings include settings for gathering statistical data about Cacti's **Data Sources** and about settings around how Cacti -stores it's **Round Robin Archives** Time Series Databases (TSDB), +stores its **Round Robin Archives** Time Series Databases (TSDB), otherwise known as RRDfiles. There are presently three sub-sections for these settings. @@ -20,7 +20,7 @@ Below you will find an image of the default settings. Those settings include: -- **Enable Data Source Statistics Collection** - This is setting +- **Enable Data Source Statistics Collection** - This setting will either enable or disable the statistics collection. - **Number of DSStats Processes** - For very large Cacti installs @@ -31,7 +31,7 @@ Those settings include: - **Daily Update Frequency** - This setting determines how often daily averages and peaks should be calculated. You can set - it to run hourly, upto every 6 hours, or after Cacti's boost + it to run hourly, up to every 6 hours, or after Cacti's boost process completes. - **Hourly Average Window** - This is a floating time window where @@ -52,7 +52,7 @@ Those settings include: ![RRD Checker](images/rrd_check.PNG) -RRDfile checker scans RRDfiles and try to find problems like stale values. +The RRDfile checker scans RRDfiles and tries to find problems like stale values. Those settings include: @@ -65,13 +65,13 @@ Those settings include: - **Check Frequency** - This setting determines how often checks should be executed. You can set - it to run hourly, upto 24 hours, or after Cacti's boost + it to run hourly, up to 24 hours, or after Cacti's boost process completes. ## Data Storage Settings These settings determine how you store your RRDfiles. This -sub-section has two layouts as showing in the images below. +sub-section has two layouts as shown in the images below. ![Data Storage Local](images/settings-data-local.png) diff --git a/Settings-Device-Defaults.md b/Settings-Device-Defaults.md index 48cb0fd..ad1a595 100644 --- a/Settings-Device-Defaults.md +++ b/Settings-Device-Defaults.md @@ -3,12 +3,12 @@ Cacti has multiple ways to create **Devices**. Those methods include: - **Manual** - Create Devices one at a time through the User Interface -- **CLI** - Through Cacti's Command Line Interfaces (CLI's) +- **CLI** - Through Cacti's Command Line Interfaces (CLIs) - **Automation** - Through Cacti's Network Discovery When using any of these methods, Cacti needs a way to apply a default for a new -**Device** if the user does not specify on, be it any of the three methods -above. That is what this settings sub-tab if for. +**Device** if the user does not specify one, be it any of the three methods +above. That is what this settings sub-tab is for. ## General Defaults @@ -29,21 +29,21 @@ Those settings include: - **Device Threads** - The default number of Device Threads to assign to a new **Device** -- **Re-index Method for Data Queries** - The default **Re-index" method for new +- **Re-index Method for Data Queries** - The default **Re-index** method for new **Device Data Queries** -- **Default Interface Speed** - If Cacti can not determine the interface speed +- **Default Interface Speed** - If Cacti cannot determine the interface speed because `ifSpeed` or `ifHighSpeed` is not set or is zero, what should the maximum value on the resulting RRDfiles be set to. -> **NOTE**: **Device Threads** is only applicable when using the spine binary +> **NOTE**: **Device Threads** is only applicable when using the Spine binary. ## SNMP Defaults Similar to the `General Defaults`, the `SNMP Defaults` control what SNMP -settings to use for new \*_Devices_ if the user does not specify any. The image +settings to use for new **Devices** if the user does not specify any. The image below shows the settings when using first SNMP v2 and then SNMP v3. If you are -using SNMP v1 or v2, you will have much less required settings. +using SNMP v1 or v2, you will have far fewer required settings. ![SNMP Defaults](images/settings-device-defaults-snmp-defaults-v1v2.png) @@ -64,7 +64,7 @@ Those settings include: - **Security Level** - The default Security Level (SNMP v3) -- **Auth Protocol** - The default Authentication Portocol to use (SNMP v3) +- **Auth Protocol** - The default Authentication Protocol to use (SNMP v3) - **Auth User** - The default Authentication User to use (SNMP v3) @@ -80,21 +80,21 @@ Those settings include: ## Availability / Reachability -Cacti's `Availability / Reachability` define how to perform initial checks prior -to polling to see if the **Device** is alive or not. Attempting to gather large -amounts of data from a **Device** that is down, is counter-productive. +Cacti's `Availability / Reachability` defines how to perform initial checks +prior to polling to see if the **Device** is alive or not. Attempting to gather +large amounts of data from a **Device** that is down is counter-productive. -Availability / Reachability is generally performned using a `ping`. These +Availability / Reachability is generally performed using a `ping`. These `pings` come in many formats, and Cacti supports all of the reasonable ones. In the image below, you can see the settings for one of the combination cases. -Depending on your `ping` method, you may receive less options. +Depending on your `ping` method, you may receive fewer options. ![SNMP Defaults](images/settings-device-defaults-availability.png) Those options include: - **Downed Device Detection** - The method by which Cacti should `ping` the - **Device**, SNMP `pings` involve querying a specific OID. Options include: + **Device**; SNMP `pings` involve querying a specific OID. Options include: - **None** - Only used for devices having their data collected through a back-end agent @@ -102,11 +102,11 @@ Those options include: through SNMP. Both methods must work for the device to be **Up** - **Ping or SNMP Uptime** - If either method works, consider the **Device Up** - **SNMP Uptime** - Only check the SNMP sysUptimeInstance of the **Device** - - **SNMP Desc** - Only check the SNMP sysDescription of the **Device** + - **SNMP Desc** - Only check the SNMP sysDescr of the **Device** - **SNMP getNext** - Only perform a basic `getnext` query for the **Device** - **Ping** - Either TCP, UDP, or ICMP pings -- **Ping Type** - When using an options that leverages **Ping** above, which +- **Ping Type** - When using an option that leverages **Ping** above, which method - **Ping Port** - When using TCP or UDP ping, the port to ping @@ -118,7 +118,7 @@ Those options include: ## Up / Down Settings The Up / Down Settings define how many polling cycles that a Device must not -respond to be considered truly `Down`, and when at device is returning from +respond to be considered truly `Down`, and when a device is returning from `Down`, how many polling cycles to keep a device in `Recovering` state before returning it to `Up`. The image below shows the two settings for the **Device**. There is really no reason to explain these two settings in any additional diff --git a/Settings-Domains.md b/Settings-Domains.md index 2130adb..089c593 100644 --- a/Settings-Domains.md +++ b/Settings-Domains.md @@ -12,24 +12,24 @@ levels controlled by an LDAP or AD User Group: - **Normal Users** - For normal entry level users with limited access. -To use the Multiple Domains setup, you must first setup at least one +To use the Multiple Domains setup, you must first set up at least one [User Domains](User-Domains.md) from the Cacti console. Once -the **Multiple LDAP/AD Domains** are setup, all users will +the **Multiple LDAP/AD Domains** are set up, all users will have to provide domain credentials as well as select from which domain they wish to authenticate from, though when enabling -this settings, **Built-in** accounts will still be able to -login, however, they will have to provide the `Local` option +this setting, **Built-in** accounts will still be able to +log in; however, they will have to provide the `Local` option from the drop-down on the login page. ## Settings -When you select the **Multiple LDAP/AD Domains** the Authentication +When you select the **Multiple LDAP/AD Domains**, the Authentication sub-tab will look like the image below. ![Multiple LDAP/AD Domains](images/settings-domains.png) The reason that it shows settings for `Built-in` accounts is that -you can still login as a local account when you choose this setting. +you can still log in as a local account when you choose this setting. --- Copyright (c) 2004-2026 The Cacti Group diff --git a/Settings-General.md b/Settings-General.md index 676b425..5171c56 100644 --- a/Settings-General.md +++ b/Settings-General.md @@ -2,12 +2,12 @@ General Settings in Cacti consist of the following categories: -- **Log Settings** - This is where you setup Cacti's logging +- **Log Settings** - This is where you set up Cacti's logging - **Internationalization (i18n)** - Settings around how Cacti handles languages other than English -- **Other Settings** - Other not object settings in Cacti +- **Other Settings** - Other miscellaneous settings in Cacti - **Site Security** - Web Site Security settings such as `Content-Security-Policy`, - use of external JavaScript API's for plugins like Google Maps, forcing https, etc. + use of external JavaScript APIs for plugins like Google Maps, forcing https, etc. - **Automation** - Miscellaneous settings around Cacti's Automation - **Graph Template Defaults** - Defaults for **Graph Templates** @@ -18,7 +18,7 @@ Each of these settings will be documented below. Cacti has the ability to log at various levels for various files. It has the ability to log to both the standard cacti.log file, as well as sending some notifications to Syslog for forwarding to centralized logging servers. The image below -show what this settings sub-tab section looks like: +shows what this settings sub-tab section looks like: ![Log Settings](images/settings-general-log-settings.png) @@ -33,8 +33,8 @@ Those settings include: - **Syslog/Eventlog Only** - Send select log data to just the System log facility - This setting is quite self explanatory, when it comes to what type of messages - are sent to the System log facility, see the `Syslog/Eventlog Item Selection` + This setting is quite self-explanatory when it comes to what type of messages + are sent to the System log facility; see the `Syslog/Eventlog Item Selection` section below. - **Generic Log Level** - This is the level of logging that Cacti will use. @@ -54,16 +54,16 @@ Those settings include: request variables that have not been validated through Cacti's validation functions. -- **Data Source Tracing** - This is a debug options for logging of program +- **Data Source Tracing** - This is a debug option for logging of program flow around the creation of **Data Sources**. - **Selective File Debug** - A Multi-select setting that allows you to place - any Cacti file to be placed into debug mode. This prevents the cacti.log + any Cacti file into debug mode. This prevents the cacti.log file from being flooded with messages as is common in a general debug context. - **Selective Plugin Debug** - For Plugins, the same level of debug that is - available for core Cacti files are available for Plugin files as well. + available for core Cacti files is available for Plugin files as well. - **Selective Device Debug** - This is a comma delimited list of Cacti `device_id` that debugging of **Data Collection** services will be enabled @@ -91,23 +91,23 @@ Those settings include: - **Auto Language Detection** - Whether or not Cacti should read the language from the browser and use that language by default. -- **Preferred Language Processor** - Some PHP distributions doe not come with +- **Preferred Language Processor** - Some PHP distributions do not come with the php-gettext module. In those cases, the various Linux distributions come with alternate GetText processors. You can select the one that works best for your environment here. - **Client TimeZone Support** - How Cacti supports Client Dates based upon the - Client browsers timezone. The options are **Disabled** and **Enabled**, and + Client browser's timezone. The options are **Disabled** and **Enabled**, and the default is **Disabled**. - **Date Display Format** - The default Date/Time display format. -- **Date Separator** - The default Data/Time separator character. +- **Date Separator** - The default Date/Time separator character. ## Other Settings These are additional settings for Cacti that fall into various categories, but that -done have enough entries to justify a separate section. The image below shows that +do not have enough entries to justify a separate section. The image below shows that sub-section. ![Other Settings](images/settings-general-other-settings.png) @@ -115,10 +115,10 @@ sub-section. Those settings include: - **Show only site specific locations** - Show only locations that are - available at a devices selected site. + available at a device's selected site. - **Has Graphs/Data Sources Checked** - If from the Console, you enter - a pages that has the various **Has** options, if checked here, the default + a page that has the various **Has** options, if checked here, the default will be to check that setting. - **RRDtool Version** - Selecting the correct RRDtool Version will unlock features @@ -149,7 +149,7 @@ Those settings include: pop-up to access form help. - **Deletion Verification** - For simple object removal, things that can be - removed by clicking and 'X' on the page, whether or not you wish to confirm + removed by clicking an 'X' on the page, whether or not you wish to confirm those deletes. - **Data Source Preservation Preset** - Whether or not you wish to preserve @@ -160,8 +160,8 @@ Those settings include: default may not be desired. - **Graphs Auto Unlock** - If when editing a Graph you wish to always unlock - it by default, select this option. Not that this does have performance - implications that may make the User Interface slower on vary large systems + it by default, select this option. Note that this does have performance + implications that may make the User Interface slower on very large systems where devices have tens of thousands of **Data Sources**. - **Local Page Help Only** - By default Cacti page help is located at @@ -175,7 +175,7 @@ Those settings include: the Intropage plugin. - **Enable Drag-N-Drop** - Certain Cacti pages allow Drag-N-Drop. If you - with to use it, check that option. + wish to use it, check that option. ## Site Security @@ -227,11 +227,11 @@ Those settings include: - **Enable Automatic Graph Creation** - If a Cacti **Device** has Non **Data Query** **Graph Templates** associated with it, create those **Graphs** automatically when - adding a new **Device**. Additionally, if you have **Graph Rules** apply those + adding a new **Device**. Additionally, if you have **Graph Rules**, apply those at **Device** creation time and save time. - **Enable Automatic Tree Item Creation** - If you have Cacti **Tree Rules** apply - then at **Device** creation and save time. + them at **Device** creation and save time. - **Automation Notification To Email** - When Network Automation finishes, send a notification to this Email address. @@ -257,7 +257,7 @@ This is where Cacti obtains defaults for **Graph Templates**. what `Image Format` should be used. There is either: **SVG** - Scalable Vector Graphics (preferred, though larger size) - **PNG** - Portable Network Graphics (backup, smaller but loose resolution + **PNG** - Portable Network Graphics (backup, smaller but lose resolution when scaled) - **Graph Template Height** - The height in pixels of the Graph Canvas for new diff --git a/Settings-Mail-Reporting-DNS.md b/Settings-Mail-Reporting-DNS.md index fc5a1c6..1cc7d38 100644 --- a/Settings-Mail-Reporting-DNS.md +++ b/Settings-Mail-Reporting-DNS.md @@ -1,15 +1,15 @@ # Mail/Reporting/DNS Settings This area of Cacti is where you configure core notification settings as well as -settings to using alternate DNS' servers associated with certain Cacti plugins. +settings for using alternate DNS servers associated with certain Cacti plugins. ## URL Linking The URL Linking settings provide the Cacti administrator a URL prefix that will point properly to the main Cacti site for both core Cacti functions and Plugins -to create URL for their use. Generally this URL should include the full DNS name -of the Cacti server, and the correct protocol, for example HTTPS. The image -below show an example of how this might be setup. +to create URLs for their use. Generally this URL should include the full DNS +name of the Cacti server, and the correct protocol, for example HTTPS. The image +below shows an example of how this might be set up. ![PHP Mail Function](images/settings-mrd-urls.png) @@ -23,23 +23,23 @@ name of the server and the Cacti URL path. Not only Cacti, but several plugins today are still leveraging Email for end user and administrative notification. Cacti uses the very popular PHP-Mailer 3rd party component to facilitate Email notification service. In this section, you -will pick the method that you wish to provide Email notification an it's +will pick the method that you wish to provide Email notification and its settings. Cacti actually provides three methods. They include: - **PHP Mail Function** - PHP has a built-in mail facility where PHP will communicate with the localhost mail facilities to send mail. This is useful if - your Cacti system is setup as an anonymous forwarder to a corporate mail + your Cacti system is set up as an anonymous forwarder to a corporate mail system. - **Sendmail Binary** - This method relies on the `sendmail` binary to properly communicate with your corporate mail systems. Like the **PHP Mail Function**, - it requires that your localhost be properly setup to send mail through a + it requires that your localhost be properly set up to send mail through a forwarding setup. - **Simple Mail Transfer Protocol (SMTP)** - This is the most configurable option where Cacti can send Emails directly to the Email server. -In the sections below, we will document each of these options in more details. +In the sections below, we will document each of these options in more detail. ## Emailing Options @@ -50,7 +50,7 @@ shown in the image below. Those settings include: -- **Notify Primary Admin of Issues** - When certain anomalous Cacti events table +- **Notify Primary Admin of Issues** - When certain anomalous Cacti events take place that justify the notification of the Cacti administrator, by checking this option, you will receive those notifications. @@ -67,8 +67,8 @@ Those settings include: the test Email. If the Email Server does not respond, Cacti does not send the test Email. -- **From Email Address** - The is the Default From Email address that will be - used by Cacti and it's plugins, unless the plugin allows overriding the +- **From Email Address** - This is the Default From Email address that will be + used by Cacti and its plugins, unless the plugin allows overriding the option. The common entry would be something of the form `noreply@mydomain.com` unless you have a desire to receive responses from recipients. @@ -79,11 +79,11 @@ Those settings include: - **Word Wrap** - If not using HTML based Emailing, this will force a word wrap on text data at the length specified. -The next sections will document the various **Mail Services** +The next sections will document the various **Mail Services**. ### PHP Mail Function -There are no settings for this function. It leverages the Cacti servers mail +There are no settings for this function. It leverages the Cacti server's mail configuration to send mail notification. ### Sendmail Binary @@ -112,7 +112,7 @@ Those options include: - **SMTP Port** - The TCP Port to use to communicate with the SMTP Server - **SMTP Username** - The username to use for SMTP communications if your SMTP Server requires authentication. -- **SMTP Password** - The password to use for SMTP communications if you SMTP +- **SMTP Password** - The password to use for SMTP communications if your SMTP Server requires authentication. - **SMTP Security** - The security protocol to use for SMTP communications. The options include: None, SSL, and TLS. The most popular being TLS today due to @@ -122,7 +122,7 @@ Those options include: ## Reporting Presets -Cacti Reporting can generate very large Email attachments. Therefore the +Cacti Reporting can generate very large Email attachments. Therefore, the **Reporting Presets** allow you to control the traffic associated with reporting. From here, you can also set presets for the image type and logging. You can see the settings from the image below. @@ -136,7 +136,7 @@ Since these settings are straightforward, no further explanation is given here. The DNS Options allow you to specify a primary and secondary DNS to use for Plugin DNS operations. Many plugins allow you to even use their own DNS Options. For plugins that require Alternate/Non-System DNS settings, see their -documentation as to how DNS is setup and used. +documentation as to how DNS is set up and used. The settings are **Primary DNS IP Address**, **Secondary DNS IP Address** and **DNS Timeout**, which is in milliseconds and defaults to 500. diff --git a/Settings-Paths.md b/Settings-Paths.md index 82943c2..7f52889 100644 --- a/Settings-Paths.md +++ b/Settings-Paths.md @@ -2,7 +2,7 @@ Cacti's Path Settings include mainly the locations of core binaries that Cacti must call in order to operate correctly. Generally, these binaries -are included in the Web Servers path, but being able to override these +are included in the Web Server's path, but being able to override these settings is important, especially for debugging issues. Cacti's Paths sub-tab is broken into the following sub-sections: @@ -11,11 +11,11 @@ sub-tab is broken into the following sub-sections: including log rotation - **Alternate Poller Path** - Locations for Cacti's spine binary and spine config file if not in the established default locations -- **RRD Cleaner** - Setting for Cacti's RRDfile disposal of removed RRDfile +- **RRD Cleaner** - Settings for Cacti's RRDfile disposal of removed RRDfile when Data Sources are removed. When using Cacti's **Remote Data Collectors** or **Remote Pollers** the -settings that refer for a `File Path`, or `Directory Path` will be local +settings that refer to a `File Path` or `Directory Path` will be local to the **Data Collector**. Therefore, you can have one set of paths for your Main Cacti site, and another set of paths for your Remote Poller, say in the case that they are on Windows. @@ -74,7 +74,7 @@ or `Monthly` Older files will be removed automatically. > **NOTE**: Some package maintainers control log rotation and therefore the log -> rotation settings may be missing from certain version of Cacti if you install +> rotation settings may be missing from certain versions of Cacti if you install > through a packaging tool such as `apt-get`, `yum` or `dnf` ## Alternate Poller Path @@ -97,7 +97,7 @@ Those settings include: - **pwd** - The same directory as spine - **../etc/** - One sibling `etc` directory of the `spine` binary directory. - - **/etc/** - The systems /etc/ directory. + - **/etc/** - The system's /etc/ directory. ## RRD Cleaner @@ -117,10 +117,10 @@ Those settings include: - **RRDfile Auto Clean Method** - This is the method to perform cleanup. Options include: - - **Delete** - Simply remote the files once the **Data Source** is removed + - **Delete** - Simply remove the files once the **Data Source** is removed - **Archive** - Archive the RRDfile to an Archive directory once it's removed. -- **Archive directory** - The Archive directory to move old RRDfile to. +- **Archive directory** - The Archive directory to move old RRDfiles to. --- Copyright (c) 2004-2026 The Cacti Group diff --git a/Settings-Performance.md b/Settings-Performance.md index 7fade95..d2e27e4 100644 --- a/Settings-Performance.md +++ b/Settings-Performance.md @@ -2,13 +2,13 @@ The Performance Settings sub-tab in Cacti contains settings that can help improve the life of your Cacti server and significantly -increase the live and lower the I/O wait of your Cacti system +increase the life and lower the I/O wait of your Cacti system through caching of RRDfile disk writes. -It will also reduce the number of CPU cores require to render -Cacti **Graphs** due to it's image cache mechanism. +It will also reduce the number of CPU cores required to render +Cacti **Graphs** due to its image cache mechanism. -We will explain how these settings work briely in the next +We will explain how these settings work briefly in the next two sections. However, there is a more detailed guide in the [Advanced Topics](Boost.md). Please refer to that guide as well. @@ -91,8 +91,8 @@ The settings include: ## Image Caching The Image Caching setting on the Performance sub-tab -basically defined where to store time sensitive -images caches of your various Cacti **Graphs**. These +basically defines where to store time sensitive +image caches of your various Cacti **Graphs**. These Cached images only live for a few minutes, but can be consumed by multiple users simultaneously. diff --git a/Settings-Poller.md b/Settings-Poller.md index a192abc..dc0adca 100644 --- a/Settings-Poller.md +++ b/Settings-Poller.md @@ -1,7 +1,7 @@ # Poller Settings -The Poller sub-tab of the Cacti settings are where you go to control -many aspects of **Data Collection** in Cacti, you control various base +The Poller sub-tab of the Cacti settings is where you go to control +many aspects of **Data Collection** in Cacti. You control various base collection frequencies, communication timeouts, and other settings that impact how Cacti's **Data Collection** works. @@ -26,7 +26,7 @@ Those settings include: any Cacti system that's participating in a multi-level Operations Framework. -- **Poller Type** - This is where you define either Cacti's built in poller +- **Poller Type** - This is where you define either Cacti's built-in poller `cmd.php`, or use the more robust poller `spine`. You will not see the `spine` drop-down option unless it has first been installed, and the `spine` binary path defined from @@ -36,7 +36,7 @@ Those settings include: this is the default `Full Sync` interval it will use. In the current Cacti design, a `Full Sync` should only be required when attempting to replicate local authentication or authorization data to - **Remote Data Collectors**, of if you have made changes that would + **Remote Data Collectors**, or if you have made changes that would otherwise impact the behavior of a **Remote Data Collector** when it was offline. @@ -49,35 +49,35 @@ Those settings include: > should be `1 Minute` as well. - **Cron/Daemon Interval** - This is the frequency at which either the Cacti - daemon (cactid.php), or the systems crontab/task-manager should relaunch - every **Data Collectors** Poller process. + daemon (cactid.php), or the system's crontab/task-manager should relaunch + every **Data Collector's** Poller process. - **Balance Process Load** - This setting will sort the devices such that each concurrent Cacti process is polling the same number of **Data Sources**. Otherwise, Cacti will simply order the hosts by their `device ids`. -- **Debug Output Width** - This is a diagnostic settings that you would only +- **Debug Output Width** - This is a diagnostic setting that you would only enable from time to time if you wish to check if the output from your **Data Collector** scripts exceeded the output width in the various - Poller tables. Since checking this have a very negative impact on + Poller tables. Since checking this has a very negative impact on polling performance, it's disabled by default. - **Disable increasing OID Check** - This setting is for performing - **Data Query** `Re-index` activities for tables whose OID's are not + **Data Query** `Re-index` activities for tables whose OIDs are not structured in an orderly way where the suffix for the OID increases in a known way. Though, in most cases enabling this setting will - not be harmless. There may be some cases where it would slow the + be harmless. There may be some cases where it would slow the `Re-index` process. - **Remote Agent Timeout** - When Cacti either needs information from a **Data Collector**, like `ping` latency from the collector to one of the **Devices** it's monitoring, or when a **Remote Data Collector** needs information from the main Cacti server, this is the timeout - for receiving a handshake from that server. It's use to keep the + for receiving a handshake from that server. It's used to keep the Website from locking up in the case a **Data Collector** is not responding due to being down. -- **SNMP Bulkwalk Fetch Size** - This controls how many OID's are +- **SNMP Bulkwalk Fetch Size** - This controls how many OIDs are returned per UDP turn when obtaining `snmpwalk` data from an SNMP enabled **Device**. @@ -96,9 +96,9 @@ Those settings include: databases that could use swap. It is disabled by default. - **Disable Resource Cache Replication** - By default Cacti will - continually replicate it's Website content with it's + continually replicate its Website content with its **Remote Data Collectors**. So, essentially, they are self - upgradable. However there are some cases where customers wish + upgradable. However, there are some cases where customers wish to upgrade the Central system before allowing the remotes to self upgrade. In those cases, you would enable this feature. @@ -120,14 +120,14 @@ Those settings include: - **Re-Index All Device Schedule** - At what frequency do you wish to Re-Index all **Devices**. This Re-Index will occur at midnight at the frequency that you select. The options are `Disabled`, `Daily`, `Weekly on Sunday` and - `Monthly on Sunady`, and the default is `Disabled`. + `Monthly on Sunday`, and the default is `Disabled`. ## Background Timeout Settings The settings below limit how long Cacti background processes will be -allowed to run before timing out and being killed the system and +allowed to run before timing out and being killed by the system and notifying the Cacti administrator. These background timeouts are -required to keep Cacti performing a peak performance by not allowing +required to keep Cacti performing at peak performance by not allowing certain tasks to re-spawn while they are still running causing system overload. Below is the image of those settings. @@ -159,11 +159,11 @@ Those settings include: - **Maintenance Background Generation Timeout** - Cacti performs daily maintenance at midnight every day. This maintenance can include: rotating logs, purging old logs, calculating **Data Source** - statistics, etc. This setting controls it maximum allowed runtime. + statistics, etc. This setting controls its maximum allowed runtime. - **Spikekill Background Generation Timeout** - If you are using Cacti's prophylactic spike-killer process on your Data Queries, this will control - it's maximum allowed run-time. + its maximum allowed run-time. ## Data Collector Defaults @@ -172,10 +172,10 @@ settings. They are maintained at the **Data Collector** level due to the fact that not all **Data Collectors** are created equally. You may have one **Data Collector** that's collecting data from 1,000 hosts, and another that is collecting from 10. Maybe one is a Raspberry Pi and the other -a two socket EPYC chip. You would not want the same settings for each. +a two-socket EPYC chip. You would not want the same settings for each. -These settings are only the defaults, when you fist create a -**Data Collector**, once you save them, the setting stays with the +These settings are only the defaults when you first create a +**Data Collector**; once you save them, the setting stays with the individual **Data Collector**. Below, you can see an image of those settings. @@ -208,13 +208,13 @@ Those settings include: which logs every error. - **Number of PHP Script Servers** - Another level of Spine parallelism - is it's ability to create a pool of memory resident PHP + is its ability to create a pool of memory resident PHP interpreters for running PHP scripts, making spine very powerful. Every concurrent process will have this many memory resident - PHP interpreters pooled fro running scripts. + PHP interpreters pooled for running scripts. - **Script and Script Server Timeout Value** - This is the timeout - to stop run-on script from blocking poller performance. If a script + to stop run-on scripts from blocking poller performance. If a script exceeds this timeout, it will generate a log message. --- diff --git a/Settings-Spikes.md b/Settings-Spikes.md index edeef63..2858a94 100644 --- a/Settings-Spikes.md +++ b/Settings-Spikes.md @@ -1,13 +1,13 @@ # Spike Kill Certain types of RRDtool based **Data Sources** can from time to time generate -what are look like to the casual observer spikes. These spikes can make your +what look like spikes to the casual observer. These spikes can make your Cacti **Graphs** unreadable. -Spike happen when you either have set no maximum value on your Cacti **Data +Spikes happen when you either have set no maximum value on your Cacti **Data Template** by using a 'U' as the Maximum Value, or when certain `COUNTER` based RRDfiles have their counter data overflow, and start counting again from zero. -When this happens recent versions of RRDtool, like version 1.7, handle these +When this happens, recent versions of RRDtool, like version 1.7, handle these overflows quite well, but for some older RRDtool versions, these changes can result in these spikes. @@ -44,10 +44,10 @@ Those settings include: - **Variance Number of Outliers** - The number of high values to ignore when calculating the Variance. -- **Max Kills Per RRA** - The maximum number of spike to remove from any given +- **Max Kills Per RRA** - The maximum number of spikes to remove from any given RRDfile Data Source. -- **RRDfile Backup Directory** - If you wish to backup RRDfiles that have been +- **RRDfile Backup Directory** - If you wish to back up RRDfiles that have been altered by Spike Kill, they will be placed in this directory. ## Batch Spike Kill Settings diff --git a/Settings-Visual.md b/Settings-Visual.md index 3f1ecf9..7d55d8a 100644 --- a/Settings-Visual.md +++ b/Settings-Visual.md @@ -28,7 +28,7 @@ Those settings include: per page. - **Autocomplete Enabled** - Many drop-downs do not scale well with thousands - of items. In those cases, Cacti has enabled a drop-down auto-complete feature + of items. In those cases, Cacti has enabled a drop-down auto-complete feature; most large installs should leverage it. However, if you are a small install you can choose to disable auto-complete. @@ -92,14 +92,14 @@ Those settings include: - **Enable Real-time Graphing** - Allow Realtime graphs to be used in Cacti. -- **Graph Timespan** - The default system level `Graph Timespan` use use when a +- **Graph Timespan** - The default system level `Graph Timespan` to use when a user opens a Realtime **Graph** for the first time. - **Minimum Refresh Interval** - The minimal supported time between **Graph** updates in the Realtime interface. This value is also used to set certain RRDfile attributes. -- **Cache Directory** - Where should Cacti cache Realtime PNG's and RRDfiles. +- **Cache Directory** - Where should Cacti cache Realtime PNGs and RRDfiles. - **Custom Watermark** - A watermark that will appear on every Cacti **Graph** @@ -155,7 +155,7 @@ Theme settings. The sizes are in pixels, and the Font Settings can either be a True Type Font file path, or a valid Pango font-config value. For more information on Pango -font-config values, see your operating systems documentation. However, you can +font-config values, see your operating system's documentation. However, you can normally see all the fonts installed on your Linux system by issuing the following command `fc-list`. diff --git a/Settings.md b/Settings.md index a96f17c..7580fbd 100644 --- a/Settings.md +++ b/Settings.md @@ -1,9 +1,9 @@ # Settings Cacti has numerous settings that can be changed from the Web -Interface. Cacti, from it's inception desired to have as many settings -as possible to be configurable without having to goto the Command Line to -make them. While, for the most part this is still true, there are +Interface. Cacti, from its inception, desired to have as many settings +as possible to be configurable without having to go to the Command Line to +make them. While, for the most part, this is still true, there are several settings that must be configured in the config.php which we will cover in a separate sub-section. @@ -16,8 +16,8 @@ The standard Settings sub-tabs include: that the Cacti administrator has control of. It also includes some settings around RRDfile maintenance. - [Device Defaults](Settings-Device-Defaults.md) - This is where you can establish - presets that every new Cacti **Device** get's by default, through - **Automation**, the CLI or though the Web Interface. + presets that every new Cacti **Device** gets by default, through + **Automation**, the CLI or through the Web Interface. - [Poller](Settings-Poller.md) - Though most **Poller** settings have been moved to the **Data Collectors**, some are still managed at the system level including the poller type to use, script server and a number @@ -27,8 +27,8 @@ The standard Settings sub-tabs include: module allows for the saving of key metrics that are important in dash-boarding plugins in Cacti. - [Visual](Settings-Visual.md) - This is where you can set some preset - like **Graph** and **Data Source** title lengths, and drop-down sizes - these Visual settings are global in nature. + like **Graph** and **Data Source** title lengths, and drop-down sizes. + These Visual settings are global in nature. - [Authentication](Settings-Auth.md) - This is where Cacti defines how **Users** are managed. There are four Classes of **Users**. @@ -37,7 +37,7 @@ The standard Settings sub-tabs include: - [Local Users](Settings-Auth-Local.md) - Authentication and Authorization all handled in Cacti. This means passwords are stored locally using strong encryption - [Basic Users](Settings-Auth-Basic.md) - Authentication outside of Cacti, - for example SAML2, TACACS+, NIS, etc.). Authorization remains in Cacti + for example SAML2, TACACS+, NIS, etc. Authorization remains in Cacti - [LDAP Users](Settings-Auth-LDAP.md) - Authentication outside of Cacti, either LDAP or Active Directory. Authorization remains in Cacti - [Multiple Domains](Settings-Domains.md) - Multiple Authentication LDAP or @@ -54,8 +54,8 @@ The standard Settings sub-tabs include: Simple Mail Transfer Protocol (SMTP) settings used for general notification across all of Cacti. -In addition, to the base settings, Cacti Plugins can extend settings -for their own purposes. When a Plugin has few settings +In addition to the base settings, Cacti Plugins can extend settings +for their own purposes. When a Plugin has a few settings that it uses, the Cacti Group has recommended a sub-tab called `Misc` for those Plugins for their purposes. Most Plugins conform to that guideline. diff --git a/Sites.md b/Sites.md index b7daf41..c45f6f9 100644 --- a/Sites.md +++ b/Sites.md @@ -6,20 +6,20 @@ Sites in Cacti can be used to separate different parts of your company with the respective location devices. For example, you can have a site called **123 main street** in which you can associate all of the devices that are in the physical location to the Cacti site. This could also -be a customer site or data center location +be a customer site or data center location. ![Cacti Sites page](images/sites.png). Below is an example of some of the attribute data you can enter for the -site/location +site/location. Enter the appropriate information for the site and click create on the -below right side +below right side. ![cacti add sites](images/add-site.png). -Once you have created a site while you are creating a device manually -you can now associate the device to the site +Once you have created a site, while you are creating a device manually, +you can now associate the device to the site. ![cacti add device site](images/add-device-site.png). diff --git a/Spikekill.md b/Spikekill.md index ab11712..6934992 100644 --- a/Spikekill.md +++ b/Spikekill.md @@ -40,7 +40,8 @@ contained inside an RRDfile, and overwriting specific data points. It offers ### GUI -Spikekill is easily run on a graph with a couple mouse clicks in the Cacti GUI: +Spikekill is easily run on a graph with a couple of mouse clicks in the Cacti +GUI: 1. On Cacti's main `Graph` tab, click the Spikekill icon ![Spikekill-icon](images/spikekill.gif) next to a graph. @@ -113,7 +114,7 @@ overwrite. The following settings are customizable: This only applies when using the `Standard Deviation` or `Variance Average` methods, and does not apply when using the `GapFill` or `Float` methods. -The above settings are maintatined individually for each Cacti user. The +The above settings are maintained individually for each Cacti user. The default values can be changed globally in the Cacti settings, found at Configuration > Settings > Spikes. A user can change her or his individual settings by selecting different choices in the Spikekill menu which appears diff --git a/Spine.md b/Spine.md index a5fa556..4275d64 100644 --- a/Spine.md +++ b/Spine.md @@ -20,7 +20,7 @@ poller.php with crontab or cactid.php for systemd! To activate Spine instead of cmd.php, please visit `Console > Configuration > Settings > Poller` and select spine and save as the `Poller Type`. If it's not showing as an available `Poller Type` this means -either it has not been installed, or it's path has not been defined on the +either it has not been installed, or its path has not been defined on the `Paths` tab within Settings. Once saved, poller.php will use Spine on all subsequent polling cycles. Before @@ -41,7 +41,7 @@ Choose Processes together with thread counts and database connection capacity. CPU count alone does not determine the appropriate settings. -When using spine, you must be senstivive to the number of connections that are +When using spine, you must be sensitive to the number of connections that are available for MySQL or MariaDB. Under `Console > Utilities > System Utilities > General` Cacti will provide a recommended `max_connection` for MySQL/MariaDB. @@ -63,8 +63,8 @@ recommended `max_connection` for MySQL/MariaDB. | Name | Description | | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Maximum OIDs Per Get Request | The maximum number of SNMP get OIDs to issue per SNMP request. Increasing this value increases poller performance over slow links. The maximum value is 60 OIDs, but that value is highly dependent on the MTU for your links to the remote devices. In some cases, using a **Remote Data Collector** is much more effective for polling remote **Davices**. Additionally, some **Device Types** do not handle large SNMP OID get requests. It's best to experiment until you find the correct setting. | -| Number of Collection Threads | The maximum number spine threads used to gather information from a **Device**. When using this setting at the **Device** level, you have to ensure that you have enough threads allocated to a process so as to not block other **Devices** being polled from the same spine binary. | +| Maximum OIDs Per Get Request | The maximum number of SNMP get OIDs to issue per SNMP request. Increasing this value increases poller performance over slow links. The maximum value is 60 OIDs, but that value is highly dependent on the MTU for your links to the remote devices. In some cases, using a **Remote Data Collector** is much more effective for polling remote **Devices**. Additionally, some **Device Types** do not handle large SNMP OID get requests. It's best to experiment until you find the correct setting. | +| Number of Collection Threads | The maximum number of spine threads used to gather information from a **Device**. When using this setting at the **Device** level, you have to ensure that you have enough threads allocated to a process so as to not block other **Devices** being polled from the same spine binary. | ### Installing Spine @@ -111,7 +111,7 @@ execution privileges merely to resolve a failed configuration check. ### Testing/Debugging spine via command line -spine offer a a few different ways at the command line to test its +spine offers a few different ways at the command line to test its functionality. Here are a few examples of some tests you can run by executing spine. @@ -179,9 +179,9 @@ SPINE: Using spine config file [../etc/spine.conf] #### Spine debug via GUI -You are also able to view spine debug information via the log file also spine -allows you to raise the level of detail it provides in the log if you want to -debug a specific device and see the spine output click enable device debug. +You are also able to view spine debug information via the log file. Also, spine +allows you to raise the level of detail it provides in the log. If you want to +debug a specific device and see the spine output, click enable device debug. Below is an example output of Spine debug info via the log file @@ -190,13 +190,13 @@ Below is an example output of Spine debug info via the log file To enable more detailed spine logging go to `Console > Configuration > Settings > Poller` -You can choose from Detailed,Summary or No logging for Invalid data +You can choose from Detailed, Summary or No logging for Invalid data Detailed Logging will be similar to cmd.php in that you will get a report for -each data source that is having an issue +each data source that is having an issue. Summary provides a count of how many data sources are having an issue per -device +device. ![spine](images/spine-parameters.png) @@ -206,15 +206,15 @@ device 2021/01/08 14:38:44 - SPINE: Poller[1] PID[14838] FATAL: Unable to read configuration file! (Spine init) ``` -Ensure that you have spine.conf in /usr/local/spine/etc on first install +Ensure that you have spine.conf in /usr/local/spine/etc. On first install, `spine.conf` may be `spine.conf.dist`. ```shell DEBUG Falling back to UDP Ping Due to SetUID Issues ``` -This is a permissions issue with spine ensure you have give spine the proper -permissions +This is a permissions issue with spine; ensure you have given spine the proper +permissions. ```shell chmod u+s /usr/local/spine/bin/spine diff --git a/Standards-Code-Formatting.md b/Standards-Code-Formatting.md index cd9d366..df2eec2 100644 --- a/Standards-Code-Formatting.md +++ b/Standards-Code-Formatting.md @@ -3,7 +3,7 @@ ## Overview Over the years Cacti has attempted to adhere to standards in code construction, -syntax, style, etc. It has been a very organic grow which has resulted in some +syntax, style, etc. It has been a very organic growth which has resulted in some mixed styles. Cacti is in the process of moving to [PHP Standards Recommendations](http://www.php-fig.org/psr/) (PSR) standards. @@ -17,7 +17,7 @@ syntax standard with the following exceptions: is acceptable, but not required, to use spaces to align the `=` or `=>` for the purpose of readability. -- Bracketing/braces should start on the same line of the statement. For example: +- Bracketing/braces should start on the same line as the statement. For example: - `if (expression) {`, - `} else {`, - and `} elseif {` @@ -33,7 +33,7 @@ syntax standard with the following exceptions: - White-space inside of evaluations is discouraged. For example: - `if (expression) {` and not `if ( expression ) {`. -- Using single quotes to enclose strings, and arrays. This save quite a bit of +- Using single quotes to enclose strings and arrays. This saves quite a bit of page processing time. Use of double quotes is acceptable in certain circumstances. All style guidelines should be followed exactly as shown in these examples, @@ -118,7 +118,7 @@ foreach ($array as $key => $value) { All function names should begin with an identifier (see below) and end with an action. -The identifier should generally be derived from the name of the file which +The identifier should generally be derived from the name of the file in which the function resides. `Returns all users` @@ -325,8 +325,8 @@ function big_array_process(&$big_array) { ## Database Calls Ensure that you indent your Database calls by a single tab per indentation level -and that you break up database calls by the various provisos. A few well defined -database queries can be seen in the examples below +and that you break up database calls by the various provisos. A few well-defined +database queries can be seen in the examples below: ```php $devices = db_fetch_assoc_prepared('SELECT * @@ -354,7 +354,7 @@ $vdefs = db_fetch_assoc("SELECT rs.*, 1) Ensure that you use prepared statements as in the first example whenever you can. -2) If you can not use prepared statements, ensure that you properly +2) If you cannot use prepared statements, ensure that you properly escape any database SQL WHERE logic properly. 3) Always use the term `AS` to define an alias. @@ -367,7 +367,7 @@ escape any database SQL WHERE logic properly. 6) In your SQL WHERE and SELECT, where functions are involved - 1. Ensure that there are spaces between parameter + 1. Ensure that there are spaces between parameters 2. Ensure operators and variables are separated by spaces ## Comments @@ -437,7 +437,7 @@ the file. All functions must be preceded by a comment describing the purpose, argument list, and return type of the function. It should be formatted per -PHP DocBlock specifications as follow: +PHP DocBlock specifications as follows: ```php /** diff --git a/Standards-Documentation.md b/Standards-Documentation.md index adbd530..1286b9d 100644 --- a/Standards-Documentation.md +++ b/Standards-Documentation.md @@ -3,7 +3,7 @@ ## Introduction The following are the standards to be used by Cacti Group members and -Contributes when maintaining the documentation of Cacti or any of its plugins. +Contributors when maintaining the documentation of Cacti or any of its plugins. The style checks are configured in `.mdlrc` and `.mdl_style.rb`. The `1.2.x` branch has no Travis CI configuration and no workflow that runs them, so check your changes locally. @@ -77,7 +77,7 @@ When creating documentation titles, they should: - not use other title definition symbols - _Whilst they are valid markdown, they will result in style errors._ + _While they are valid markdown, they will result in style errors._ The `MD001` check is disabled in `.mdl_style.rb`, so `mdl` does not report this, but titles should still follow the rule. @@ -157,7 +157,7 @@ The menus are located at the top of the page ... Titles for examples, images and tables are the only exception to the Title Level rule. These are normally set to 6 (Six) hash symbols (e.g., `######`). The format of the text should be such that it reads the type of caption, a number, -full stop, then the description +period, then the description ```markdown ###### . @@ -213,12 +213,12 @@ All lists should: `MD006 Consider starting bulleted lists at the beginning of the line` -- use a digit following by a full stop for numbered lists +- use a digit followed by a period for numbered lists -- should have a single space between the list item marker and the start of the +- have a single space between the list item marker and the start of the text -- have blanks lines around items in the same fashion as titles +- have blank lines around items in the same fashion as titles `MD030 Spaces after list markers` @@ -277,7 +277,7 @@ use the `--help` parameter on the command All code blocks must be: -- surround by blank lines to separate them from other text +- surrounded by blank lines to separate them from other text `MD031 Fenced code blocks should be surrounded by blank lines` @@ -306,7 +306,7 @@ Also ` will actually be displayed not interpreted The style used on the fenced code block should match the contents of the code block. In the above example, we used `markdown` as we were displaying a markdown -example. The following table is a basic example what is most commonly used in +example. The following table is a basic example of what is most commonly used in the documentation: | Type | Markdown Language | Usage | @@ -335,7 +335,7 @@ This would produce: [text for link](https://url/wanted) ### Horizontal Rules Horizontal rules should be made using three or more consecutive hyphens on a -single line. Again, these should be surrounded by spaces. +single line. Again, these should be surrounded by blank lines. ```markdown Paragraph 1 text @@ -348,7 +348,7 @@ Paragraph 2 text ## Link new files to README.md Before testing your changes make sure you add the necessary links to README.md -for any new files +for any new files. Running this script will help you check for any missing links. @@ -359,13 +359,13 @@ bin/check_missing_link.sh ## Testing changes To locally test the changes made to any Markdown document, you will need to have -ruby installed and then run: +Ruby installed and then run: ```console gem install mdl ``` -If this pre-requisite has already been completed, then you can simply type the +If this prerequisite has already been completed, then you can simply type the following into your shell ```console diff --git a/Standards-FileSystem-Layout.md b/Standards-FileSystem-Layout.md index 9112693..77eba0c 100644 --- a/Standards-FileSystem-Layout.md +++ b/Standards-FileSystem-Layout.md @@ -7,8 +7,8 @@ structure. The naming structure may contain a **category token** and/or an ## Token Under each category directory, functions should be broken out into multiple -files where applicable. All files must begin with the name of category (ie. its -parent directory name). Valid token names are +files where applicable. All files must begin with the name of the category +(i.e., its parent directory name). Valid token names are * auth * automation @@ -79,7 +79,7 @@ information in these files that are meaningful to the entire program. Also under the `include/` directory is a directory for each category (graph, device, etc), where information specific to that category is to be stored. -Constants that are made available everyone in the program +Constants that are made available to everyone in the program ```console include/global_constants.php @@ -132,18 +132,18 @@ include/graph_arrays.php ### lib/ -Functions that must be accessed globally should be stored in the ''lib/'' +Functions that must be accessed globally should be stored in the `lib/` directory. This is where most of the heavy lifting in Cacti occurs. Directly under the `lib/` directory, the files beginning with the `api` -prefix are core Cacti API's that are only to be used by third party +prefix are core Cacti APIs that are only to be used by third party developers and should NEVER include a call to a `$_REQUEST`, `$_POST`, or `$_GET` variable. -Files that have the `html` prefix, generally invole the rendering of page +Files that have the `html` prefix, generally involve the rendering of page content, for example the `html_form.php` library draws forms and -`html_validate.php` includes functions to validate page variables there -are other various files in the current cacti `lib/` directory that will +`html_validate.php` includes functions to validate page variables. There +are other various files in the current Cacti `lib/` directory that will over time be changing with the migration to the next major version of Cacti. So, these rules may change over time. @@ -156,9 +156,9 @@ lib/api_graph.php ### locales/ -Language-related files are stored here to handle the multi-lingual natural of +Language-related files are stored here to handle the multi-lingual nature of Cacti. These can be updated by running the `update-pot.sh` script. It is -advised to do this whenever you are submitting a change to the Cacti via Pull +advised to do this whenever you are submitting a change to Cacti via Pull Request. Otherwise, language translations can be missed. ### plugins/ @@ -172,7 +172,7 @@ INFO file that details the plugin. To reduce bloat, each file and/or function should include any and all files which it relies on. -The following function directly relies the libraries related to sequences and +The following function directly relies on the libraries related to sequences and reading graph information. The `require_once` directive is used instead of `require` to prevent PHP re-declaration errors. diff --git a/Standards-PHP-Spec-Constructs.md b/Standards-PHP-Spec-Constructs.md index cb938e7..6504d15 100644 --- a/Standards-PHP-Spec-Constructs.md +++ b/Standards-PHP-Spec-Constructs.md @@ -16,15 +16,15 @@ if ((is_array($array)) && (sizeof($array) > 0)) { } ``` -It should be noted that with PHP 7.2 use of `list() = each()` syntax will result -in warnings and/or errors. It should also be noted that 7.2 also introduced the -need for the variable to implement ICountable which are arrays and objects. You -should therefore check if `variable !=== false` before using `sizeof()` or -`count()` +It should be noted that with PHP 7.2, use of `list() = each()` syntax will +result in warnings and/or errors. It should also be noted that 7.2 also +introduced the need for the variable to implement Countable which are arrays +and objects. You should therefore check if `variable !== false` before using +`sizeof()` or `count()`. ## Error Return Values -When an a function needs to return a generic error, it is best to return boolean +When a function needs to return a generic error, it is best to return boolean `false` in PHP. This makes it very straightforward to check for. ```php @@ -36,7 +36,7 @@ if (file_list() === false) { ## Regular Expressions Are Slow Only use PHP's regular expression parsing functions (`preg_match`, -`preg_replace`, `preg_quote`, etc) when absolutely needed. Often simpler +`preg_replace`, `preg_quote`, etc.) when absolutely needed. Often simpler functions such as `strstr()`, `str_replace()`, `substr()`, and `explode()` can be used, and are much faster. @@ -81,7 +81,7 @@ and 'This is a ' . $test ``` -Don't bother trying to break out variables out of the string if you are just +Don't bother trying to break variables out of the string if you are just going to have to concatenate them. ## Including other PHP files diff --git a/Standards-Patch-Creation.md b/Standards-Patch-Creation.md index 7512118..927fbb0 100644 --- a/Standards-Patch-Creation.md +++ b/Standards-Patch-Creation.md @@ -2,12 +2,12 @@ ## Overview -In order to create a patch for inclusion into the cacti project, you need to +In order to create a patch for inclusion into the Cacti project, you need to create a pull request which holds the changes to be made. Please note, it is better if your request also includes a change to `CHANGELOG` with a brief description of your change (this is included with the distributed project). -The basic steps to creating a pull request are to fork cacti (by clicking on +The basic steps to creating a pull request are to fork Cacti (by clicking on "Fork") into your own repo on GitHub. You can use just the main develop branch of your forked repo as long as all future changes can also appear in the same pull request (until it is merged). However, it is cleaner to create a separate @@ -28,13 +28,15 @@ later. * **upstream** is the **repo** that you have forked from on GitHub * **branch** is similar to a **fork** but within an existing **repo** contains a - separate area of work * **commit** is a collection of changes that are stored + separate area of work + +* **commit** is a collection of changes that are stored together -* **git** is a command that should be installed locally on the developers +* **git** is a command that should be installed locally on the developer's machine -* **Issue-1153** is an example branch whose name is based of the number of the +* **Issue-1153** is an example branch whose name is based on the number of the issue created on GitHub _Note: During this page, any reference to Issue-1153 is the branch name that @@ -46,7 +48,7 @@ The first time you come to use `git` if you try to commit, it will use your local settings to mark the commit with a username and email address. However, if these are not defined, then it will use username@machinename as the email address and username as the name. These details will be stored against the -commit that you make so it is always advisably to set them. To change these, +commit that you make so it is always advisable to set them. To change these, use ```shell @@ -56,12 +58,12 @@ git config --global user.email "email@example.com" ## Creating your local clone -1. Fork cacti on github.com using the Fork button that appears top right of the +1. Fork Cacti on github.com using the Fork button that appears top right of the code area. ![create fork](images/patch-creation-clone.png) -2. Clone the source to your local machine, you can use one of the following two +2. Clone the source to your local machine; you can use one of the following two lines. The second allows you to clone into a directory of your own naming, whilst the first takes the repo's name. @@ -96,7 +98,8 @@ git config --global user.email "email@example.com" ![image](images/patch-creation-branch.png) To checkout the newly created branch, you need to pull down the latest GitHub -information using `git fetch` before perform the checkout. It will as follows: +information using `git fetch` before performing the checkout. It will be as +follows: ```shell git fetch @@ -104,7 +107,7 @@ git checkout Issue-1153 ``` At this point, you will have a local repo (which is a replica of your forked -cacti repo) downloaded and available to edit with the changes you wish to make. +Cacti repo) downloaded and available to edit with the changes you wish to make. At any time, whilst making changes or once all done, you can see the files that have changed using `git status` and if you want to see the actual differences then you would use `git diff`. @@ -113,7 +116,7 @@ then you would use `git diff`. To commit any changes that you have made, you must first commit them to your local repo. This does not affect the online GitHub repo that you have forked -from cacti's repo. Neither of these are touched at this time. +from Cacti's repo. Neither of these are touched at this time. 1. Add any change file to the commitment list using either `git stage` or `git add` (they are both the same command) @@ -134,14 +137,14 @@ note, this has not yet published these changes on GitHub to your forked repo. ## Update with the latest development source Before you publish your local changes back to GitHub (or even afterwards), -you've may have noticed changes being made to the cacti (upstream) project that -are you not in your origin (forked) or local repos. If you were to commit a +you may have noticed changes being made to the Cacti (upstream) project that +are not in your origin (forked) or local repos. If you were to commit a pull request using your local changes, there would be quite a few differences. You also wouldn't know if there was likely to be a conflict with your changes. -GitHub Actions checks (see `.github/workflows`) run against the cacti repo so -conflicts do usually show up there if no where else. +GitHub Actions checks (see `.github/workflows`) run against the Cacti repo so +conflicts do usually show up there if nowhere else. -In order to get these latest changes, we must pull from the upstream (cacti) +In order to get these latest changes, we must pull from the upstream (Cacti) repo and commit these to our local repo. 1. If you have previously added an upstream repo, you may skip this step. If @@ -172,12 +175,12 @@ repo and commit these to our local repo. listed as being in conflict needs to be edited by looking for the `<<<` and `>>>` points. -5. Edit these points (and there may be more that one set in a given file) as you +5. Edit these points (and there may be more than one set in a given file) as you will see both the original upstream version and your edited version. You must remove everything but the changes you desire including the chevron points before you exit the file leaving it in a full working state. -6. Once your done editing all the conflicts, you must add the file so that `git` +6. Once you're done editing all the conflicts, you must add the file so that `git` knows you wish to commit this file later. ```shell @@ -197,10 +200,10 @@ repo and commit these to our local repo. ## Getting changes back up to GitHub -In order to get changes back from your local repo back to Github in your forked +In order to get changes back from your local repo back to GitHub in your forked repo, you need to "push" the changes back up. -1. Push those latest merges up to github +1. Push those latest merges up to GitHub ```shell git push @@ -209,14 +212,14 @@ repo, you need to "push" the changes back up. At this point, if you have not saved your GitHub credentials, these will be prompted for and you will have to manually enter. -_Note: this will NOT have affected the main cacti repo at all, only your forked +_Note: this will NOT have affected the main Cacti repo at all, only your forked copy._ ## Updating other branches If you want to update to the latest develop source on the develop branch, or master on the master branch just repeat the "Update with the latest development -source" against the appropriate branches instead. eg, update origin/develop +source" against the appropriate branches instead. e.g., update origin/develop with upstream/develop or origin/master with upstream/master. ## Creating a git patch and applying it elsewhere @@ -226,7 +229,7 @@ branch, it's worth performing the following: 1. Get the commit hash number from github.com or from `git log` -2. Create a patch file of the difference by comparing the provided has with it's +2. Create a patch file of the difference by comparing the provided hash with its parent (^) ```shell @@ -245,36 +248,36 @@ convention that keeps them unique. ## Creating a pull request on the cacti repo Once you have committed and published all the changes that you need to make for -your issue/fix/enhancement, you will need to let the cacti group know that these +your issue/fix/enhancement, you will need to let the Cacti group know that these changes are available. To do this, you can browse to your code and then click on pull request ![cacti - create pull request 1](images/patch-creation-pull-request-1.png) -This will then switch you automatically over to the cacti repo, create a pull +This will then switch you automatically over to the Cacti repo, create a pull request and fill in details as much as possible. You will then have the opportunity to edit the title and enter a description. It would be wise to put -as much detail as possible, and if you referring back to a previous issue, place -a link to that too. +as much detail as possible, and if you are referring back to a previous issue, +place a link to that too. ![cacti - create pull request 2](images/patch-creation-pull-request-2.png) After you have entered the details above, double check the changes that follow and make sure you have no conflicts again. It is normal to have conflicts here -if you have no been updating your local repo with the changes from the upstream -(cacti) repo. If not, everything will look OK. +if you have not been updating your local repo with the changes from the upstream +(Cacti) repo. If not, everything will look OK. ![cacti - create pull request 3](images/patch-creation-pull-request-3.png) If you are positive that you have everything in order, click Create Pull Request -and this will be submitted to the cacti repo. Once the developers there have +and this will be submitted to the Cacti repo. Once the developers there have reviewed your changes they will either suggest some alterations or they will successfully commit your code in. Once your code has been pulled in, you should see an option to safely delete the branch that you created at the bottom of the pull request. Clicking this will -remove the repo from public view (though you can later revert this if you wish -to). +remove the branch from public view (though you can later revert this if you +wish to). ## Alternative to setting upstream on push diff --git a/Standards-SQL.md b/Standards-SQL.md index 7296b84..c17d5ab 100644 --- a/Standards-SQL.md +++ b/Standards-SQL.md @@ -1,14 +1,14 @@ # SQL Standards -Special care must be taken for Cacti to properly support multiple DBMS's. +Special care must be taken for Cacti to properly support multiple DBMSs. ## Quotes When writing queries do not use quotes around numeric values. While MySQL is not -strict about types, most DBMS's assume that any value contained within quotes is +strict about types, most DBMSs assume that any value contained within quotes is a string. -As well, single quotes are used unless a variable is referenced +As well, single quotes are used unless a variable is referenced. ```php $graphs = db_fetch_assoc('SELECT * FROM graph WHERE height >= 150'); @@ -21,8 +21,8 @@ $rows = db_fetch_cell("SELECT count(*) FROM $archive_table"); ## DBMS Functions Do not use functions in SQL queries that are provided only by a single DBMS. -These functions are generally not uniformly support or even available in all -DBMS's. Common examples of such functions are `MD5()`, `CONCAT()`, and `NOW()`. +These functions are generally not uniformly supported or even available in all +DBMSs. Common examples of such functions are `MD5()`, `CONCAT()`, and `NOW()`. ## SQL Injection @@ -40,7 +40,7 @@ db_execute_prepared('UPDATE host SET description = ? WHERE id = ?', array('Local // Escape strings if using legacy functions $hostname = db_qstr('myhost.com'); -db_execute(UPDATE host SET hostname = '$myhost' WHERE id = $id"); +db_execute("UPDATE host SET hostname = '$myhost' WHERE id = $id"); ``` @@ -52,8 +52,8 @@ db_execute(UPDATE host SET hostname = '$myhost' WHERE id = $id"); should be wrapped onto a continuation line for ease of use and readability. The following keywords should also be placed at the start of a new line: - - joins statements (excluding JOIN itself which should not be used) (eg, INNER - JOIN, LEFT JOIN, RIGHT JOIN, OUTER JOIN, CROSS JOIN) + - join statements (excluding JOIN itself which should not be used) (e.g., + INNER JOIN, LEFT JOIN, RIGHT JOIN, OUTER JOIN, CROSS JOIN) **Note:** \*Any implicit join or JOIN without one of the modifiers should be converted to an explicit join with a modifier. When converting the implicit diff --git a/Standards-Security.md b/Standards-Security.md index 3cb6d14..6e1619f 100644 --- a/Standards-Security.md +++ b/Standards-Security.md @@ -4,7 +4,7 @@ Never trust input regardless of where it is coming from! The responsibility falls on the library functions to ensure that potentially dangerous input does -not introduce a security hole. Some sort of sanitation, validation, or quoting +not introduce a security hole. Some sort of sanitization, validation, or quoting must be provided for **all** arguments in a function. This ensures that bad data does not make its way into an SQL string, a filename, an executable, or even another function. @@ -16,7 +16,7 @@ you are using unvalidated data. They include: * get_filter_request_var('somevariable') - This function call, by default, will validate that the variable `$_REQUEST['somevariable']` returned - is actually an integer, if not, Cacti will block the the page + is actually an integer, if not, Cacti will block the page function from continuing. * get_filter_request_var('somevariable', 'options') - This version of the @@ -28,7 +28,7 @@ you are using unvalidated data. They include: Generally speaking, you should never use either `$_GET`, `$_REQUEST` or `$_POST` in your Cacti code. Use the validators. When you do, you can turn on the Cacti setting `Log Input Validation Issues` when you are -developing, and you Cacti log will include warnings when an invalidate +developing, and your Cacti log will include warnings when an invalid variable has been encountered. ## Prepared Statements @@ -60,7 +60,7 @@ $somevalue = db_fetch_cell_prepared('SELECT COUNT(*) Cacti provides an escaping function to reduce the likelihood of XSS vulnerabilities in Cacti leading to exploitation of other Web Sites. -Cacti itself has a very restrictive XSS mitigation policy in affect +Cacti itself has a very restrictive XSS mitigation policy in effect by default, but following proper output escaping minimizes problems. The following example is how to, and not to escape output: diff --git a/System-Utilities.md b/System-Utilities.md index 419fa43..d9d00c4 100644 --- a/System-Utilities.md +++ b/System-Utilities.md @@ -2,8 +2,8 @@ This section will describe **System Utilities** in Cacti. -The system utilities page in cacti contains tools used for administering -cacti from this page you can do the following +The system utilities page in Cacti contains tools used for administering +Cacti. From this page, you can do the following: - Rebuild poller cache. @@ -34,26 +34,26 @@ information. Cacti technical support page. Used by developers and technical support persons to assist with issues in Cacti. Includes checks for common -configuration issues. There is also built-in checks that help you tune +configuration issues. There are also built-in checks that help you tune your Cacti installation. -For example in the technical support section under the summary, you will see a -calculation for how many MySQL connections. You should have (Cacti 1.2.16+) -you will also show poller information such as the last polling time process -count and more detailed info that can be used for a quick view of how the +For example, in the technical support section under the summary, you will see a +calculation for how many MySQL connections you should have (Cacti 1.2.16+). +You will also see poller information such as the last polling time, process +count, and more detailed info that can be used for a quick view of how the system is configured. ![System Utilities](images/system-utilities-poller.png). -You will also see all of the system variables such as allocated php memory -as well as mysql variables. +You will also see all of the system variables such as allocated PHP memory +as well as MySQL variables. ![System Utilities](images/system-utilities-db.png) -Any Variable appearing in red indicates a subpar setting and should be looked. -the recommendations are dynamic in that they change when more system resources are -detected so if you upgrade your server hardware be sure to check back to this page -to get the most out of your new hardware. +Any Variable appearing in red indicates a subpar setting and should be looked +at. The recommendations are dynamic in that they change when more system +resources are detected, so if you upgrade your server hardware be sure to check +back to this page to get the most out of your new hardware. ### Rebuild resource cache @@ -92,19 +92,19 @@ Agent Support is enabled in the Poller settings. ### RRD cleaner -`Console > utilities > System Utilities > RRDfile Cleaner` +`Console > Utilities > System Utilities > RRDfile Cleaner` When you delete Data Sources from Cacti, the corresponding RRDfiles are not removed automatically. Use this utility to facilitate the removal of these old files. -In system utilities you can manually start the RRD cleaning procedure -You can either archive the selected RRD's -to have them deleted in the next polling cycle +In system utilities you can manually start the RRD cleaning procedure. +You can either archive the selected RRDs +or have them deleted in the next polling cycle. ![System Utilities](images/system-utilities-rrdcleaner.png) -RRDfiles can also be schedule to automatically be removed this option can +RRDfiles can also be scheduled to be removed automatically. This option can be configured in `Console > Configuration > Settings > Paths` by selecting the RRDfile autoclean selection. @@ -112,7 +112,7 @@ the RRDfile autoclean selection. ### RRDfile Checker -`Console > utilities > System Utilities > RRDfile Checker` +`Console > Utilities > System Utilities > RRDfile Checker` The RRDfile checker is a tool that scans all RRDfiles at a scheduled time and tests the stored data: @@ -124,7 +124,7 @@ scheduled time and tests the stored data: For very large Cacti installs the **RRDfile checker** can take quite a long time to complete. -You can set number of concurrent parallel processes in `Console > Configuration > Settings > Data` +You can set the number of concurrent parallel processes in `Console > Configuration > Settings > Data` ### Viewing Change log from system utilities @@ -139,10 +139,10 @@ included in your version. `Console > Utilities > System Utilities > View User Log` -In system utilities you are able to view a log of user logins -both successful and failures The Log will also show what Client IP address +In system utilities you are able to view a log of user logins, +both successful and failed. The Log will also show what Client IP address the login originated from along with info -if the login was based on password or token based login +if the login was based on password or token based login. ![System Utilities](images/system-utilities-viewulog.png) @@ -150,9 +150,9 @@ if the login was based on password or token based login `Console > Utilities > System Utilities > View Boost Status` -In this view you can see statistics on how Boost is running you will be able to see -Information such as when the last time boost started, How long it ran for, -The average boost record size +In this view you can see statistics on how Boost is running. You will be able +to see information such as when the last time Boost started, how long it ran +for, and the average Boost record size. ![System Utilities](images/system-utilities-boost1.png) @@ -164,7 +164,7 @@ The average boost record size The Data Query Cache stores information gathered from Data Query input types. The values from these fields can be used in the text area of Graphs for Legends, -Vertical Labels, and GPRINTS as well as in CDEF's. +Vertical Labels, and GPRINTs as well as in CDEFs. ![System Utilities](images/system-utilities-viewdqcache.png) @@ -179,10 +179,10 @@ This is the data that is being passed to the poller each time it runs. ### Viewing the Cacti log via Log Administration You are able to view the Cacti log via the Log Administration -entry on the System utilities page this will show the RAW log -this slightly differs from the view log tab as the device names +entry on the System utilities page. This will show the RAW log. +This slightly differs from the view log tab as the device names will show the device ID rather than -the Device name this is the same view as you reading the log in the OS +the Device name. This is the same view as when you read the log in the OS. ![System Utilities](images/system-utilities-viewclog.png) diff --git a/Templates.md b/Templates.md index b58f2d7..7e40f1a 100644 --- a/Templates.md +++ b/Templates.md @@ -6,14 +6,14 @@ different types of templates with the basic Cacti installation: - **Device Templates** - Define a Collection of **Graph Templates** and **Data Queries** that belong to a class of **Devices** -- **Graph Templates** - Define how to paint the Graph, it size, legend, left and - right Axis and it Canvas +- **Graph Templates** - Define how to paint the Graph, its size, legend, left + and right Axis and its Canvas - **Data Templates** - Define how data is to be stored in the RRDfile and how often to collect that data - **Aggregate Templates** - A special class of **Graph Template** that allows - you to combine elements from multiple **Graph** of a common Template into one + you to combine elements from multiple **Graphs** of a common Template into one **Graph** - **Color Templates** - A collection of color rotations to use for **Aggregate @@ -23,7 +23,7 @@ While it is perfectly fine to define all **Data Sources** and **Graphs** without using Templates at all, the burden of this approach is high. In most installations, there are hundreds if not thousands of **Devices** of the -same kind. And there are many similar **Graph Templates**, that span multiple +same kind. And there are many similar **Graph Templates** that span multiple **Device Templates**. For example: Network Traffic information is needed for almost every **Device**. Therefore, the parameters needed to create a traffic RRDfile are defined by the **Data Template**, in this case known as "Interface - @@ -56,7 +56,7 @@ Graph Creation** is enabled. Indexed query graphs use configured [graph rules](Graph-Rules.md) or manual selection. Select measurements the device actually exposes; assignment does not guarantee every possible graph. -There's no need to create all Templates on your own! Apart from the fact, that +There's no need to create all Templates on your own! Apart from the fact that many common templates are provided out-of-the-box, there's a very simple mechanism to [import template XML](Import-Template.md) and to **Export Templates**. Signed packages use a separate package importer, which also @@ -128,12 +128,12 @@ non-templated fields. | Name | The name of the **Data Source** that will be created by using this Template. You can use the keyword `host_description` enclosed by vertical bars in this field, which will be automatically substituted with the current host description of the **Device**. There are several replacement values available to you when using a Template. | | Data Input Method | Here is where you tell Cacti how it is supposed to fetch data for this **Data Source**. There are several **Data Input Methods** that come with Cacti, and you can add your own by going to `Console > Data Collection > Data Input Methods`. If this RRDfile is being populated outside of Cacti, make sure to leave this field set to "None". | | Data Source Profile | The **Data Source Profile** will define how often to collect data for the resulting **Data Source**, and how long to keep that data in the RRDfile. | -| Data Source Active | This is a quick and easy to tell Cacti to stop gathering data for this **Data Template**. The resulting **Data Source** can still be used on **Graphs**, but no data will be fed to it until it is made active again. | +| Data Source Active | This is a quick and easy way to tell Cacti to stop gathering data for this **Data Template**. The resulting **Data Source** can still be used on **Graphs**, but no data will be fed to it until it is made active again. | -> **NOTE:** For most **Data Templates**, you will should not have to to check -> the Use Per-Graph Value check-box for the name field. The Templating should -> handle this just fine. However, the Generic SNMP OID **Data Template** has -> this value checked to allow you to create Graphs and Data Sources on a +> **NOTE:** For most **Data Templates**, you should not have to check +> the Use Per-Data Source Value check-box for the name field. The Templating +> should handle this just fine. However, the Generic SNMP OID **Data Template** +> has this value checked to allow you to create Graphs and Data Sources on a > piecemeal basis. When you are finished filling in values for the **Data Template**, click Create @@ -144,8 +144,8 @@ and you will be presented with a screen similar to the image below. #### Data Source Items Just like a **Graph**, a **Data Source** can have more than one item. This is -useful in situations where a script returns more than piece of data at one time -and both need to appear on the same **Graph**. This also applies to **Data +useful in situations where a script returns more than one piece of data at one +time and both need to appear on the same **Graph**. This also applies to **Data Queries**, so you can have a single **Data Template** that contains both Inbound and Outbound Traffic, rather than having to create a separate **Data Template** for each. @@ -196,9 +196,9 @@ change values for the fields that you checked Use Per-Data Source Value for. #### How To: Working with Templates -If you goto the following article -[How to Work with Templates](How-To-Work-With-Templates.md). There you will find -a step by step guide on how to work with variout Cacti Templates in general. +If you go to the following article +[How to Work with Templates](How-To-Work-With-Templates.md), you will find +a step by step guide on how to work with various Cacti Templates in general. ## Graph Templates @@ -212,7 +212,7 @@ checked. ### Creating a Graph Template To create a new **Graph Template**, select **Graph** under `Console > Templates` -menu selection, then click Add normally the plus sign in the upper right corner +menu selection, then click Add, normally the plus sign in the upper right corner of the **Graph Template** interface. The first thing you must do is give the **Graph Template** a name. This name has @@ -224,7 +224,7 @@ override the value on the right during Graph creation."). The nice thing about Templates in Cacti is that you can choose whether to template each field on a per-field basis. If you leave the check-box unchecked, every **Graph** owned by the **Graph Template** will inherit its value from the -Template. If the check-box is checked, every **Graph** owned by **Graph +Template. If the check-box is checked, every **Graph** owned by the **Graph Template** will have its own value for that particular field. ###### Table 13-3. Field Description: Graph Templates @@ -236,15 +236,15 @@ Template** will have its own value for that particular field. | Height | The height of the Graph Canvas in pixels. This is not the height of the overall Graph, just the Graph Canvas. | | Width | The width of the Graph Canvas in pixels | | Base Value | Should be set to 1024 for memory values and 1000 for traffic measurements. | -| Slope Mode | RRDtool graphs are composed of stair case curves by default. This is in line with the way RRDtool calculates its data. Some people favor a more "organic" look for their graphs. | -| Auto Scale | Enable auto scale for the graph. This option must be check to use the next two options. Upper/Lower limit values are ignored when using auto-scale since these boundaries are determined automatically. | -| Auto Scale Options | Choose whether you would like to use --alt-autoscale (ignoring given limits), --alt-autoscale-max (accepting a lower limit), --alt-autoscale-min (accepting an upper limit. | +| Slope Mode | RRDtool graphs are composed of staircase curves by default. This is in line with the way RRDtool calculates its data. Some people favor a more "organic" look for their graphs. | +| Auto Scale | Enable auto scale for the graph. This option must be checked to use the next two options. Upper/Lower limit values are ignored when using auto-scale since these boundaries are determined automatically. | +| Auto Scale Options | Choose whether you would like to use --alt-autoscale (ignoring given limits), --alt-autoscale-max (accepting a lower limit), --alt-autoscale-min (accepting an upper limit). | | Logarithmic Scaling | Choose if you want logarithmic y-axis scaling. | | SI Units for Logarithmic Scaling | For linear graphs, SI units (in magnitudes of k=kilo, M=mega, ...) is default. But for logarithmic graphs, exponential notation is default. Choose if you want logarithmic y-axis scaling and scientific units. | | Rigid Boundaries Mode | From the RRDtool manual "Normally rrdgraph will automatically expand the lower and upper limit if the graph contains a value outside the valid range. With this option you can disable this behavior". | | Auto Padding | If you have ever created RRDtool based graphs manually, you may have realized how annoying it can be to get text to line up properly. With this option Cacti will do its best to make the columns on your graph legend line up. This option works best when your graph legend has a consistent number of columns. | -| Upper Limit | The maximum value that will be displayed on the y-axis. This value is ignored is auto-scaling is turned on. | -| Lower Limit | The minimum value that will be displayed on the y-axis. This value is ignored is auto-scaling is turned on. | +| Upper Limit | The maximum value that will be displayed on the y-axis. This value is ignored if auto-scaling is turned on. | +| Lower Limit | The minimum value that will be displayed on the y-axis. This value is ignored if auto-scaling is turned on. | | Base Value | Whether you want to base the y-axis labels on 1000 or 1024. This field will typically be set to 1024 for memory and 1000 for traffic measurements. | | Unit Grid Value | Sets the unit value for the y-axis (--y-grid). You should probably keep the unit short as to keep it readable. | | Unit Exponent Value | Sets the 10^e scaling of the y-axis. Enter a whole number, for example 3 to display everything in 'k' (kilo). Cacti passes only non-negative values to RRDtool, so a negative value such as -6 has no effect on the rendered graph. | @@ -299,13 +299,13 @@ Template**. ![Adding a Graph Template](images/graph-template.png) -The **Common Options** are options that most every **Graph Template** included. +The **Common Options** are options that most every **Graph Template** include. The **Scaling Options** are also very common, but related to **Graph** scaling only. ![Adding a Graph Template Options](images/graph-template-options1.png) -The **Grid Options**, **Axis Options**, and **Legend Options** are must less +The **Grid Options**, **Axis Options**, and **Legend Options** are much less common but are available in Cacti should you choose to use them. ![Adding a Graph Template Options](images/graph-template-options2.png) @@ -323,10 +323,10 @@ assumptions later. | Name | Description | | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Data Source | If this graph item is to represent some sort of data, you must select a your data source here. Keep in mind that not all graph items have a data source. Graph item types such as COMMENT, VRULE, and HRULE typically do not. | +| Data Source | If this graph item is to represent some sort of data, you must select your data source here. Keep in mind that not all graph items have a data source. Graph item types such as COMMENT, VRULE, and HRULE typically do not. | | Color | Depending on the graph item type, you can select a color for the graph item. This field only applies to the graph item types AREA, STACK, LINE1, LINE2, and LINE3. | | Opacity/Alpha Channel | For a colored graph item, you may optionally select an opacity (alpha channel). This option is not available with RRDtool-1.0.x. | -| Graph Item Type | This field is important because it defines what kind of graph item this is. Types such as AREA, STACK, LINE1, LINE2, and LINE3 are used to represent data on the graph, while COMMENT and GPRINT are used put on the legend. The LEGEND type is specific to Cacti only and can be used if you want to Cacti to automatically create a GPRINT-LAST/GPRINT-AVERAGE/GPRINT-MAXIMUM graph item for you. Note: You must always put an AREA item before using STACK or your graph will not render. | +| Graph Item Type | This field is important because it defines what kind of graph item this is. Types such as AREA, STACK, LINE1, LINE2, and LINE3 are used to represent data on the graph, while COMMENT and GPRINT are used to put on the legend. The LEGEND type is specific to Cacti only and can be used if you want Cacti to automatically create a GPRINT-LAST/GPRINT-AVERAGE/GPRINT-MAXIMUM graph item for you. Note: You must always put an AREA item before using STACK or your graph will not render. | | Consolidation Function | This tells RRDtool which consolidation function to use when representing this data on the graph. You will typically use AVERAGE for most things on the graph area, and LAST/MAXIMUM as well for GPRINT items. | | CDEF Function | If you want to apply a CDEF function to the graph item, select one here. Check out the CDEF section of the manual for more information. | | Value | This field is only used with the HRULE/VRULE graph item types. Type any valid integer to draw the line at for HRULE or the time of the day HH:MM for VRULE. | @@ -354,7 +354,7 @@ every graph item input: | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Name | This will be the name used to identify the **Graph Item Input** on both the **Graph Template** and **Graph** edit pages. | | Description | (Optional) This description will be displayed on the **Graph** edit page of any **Graph** using this **Graph Template** if specified. | -| Field Type | You must choose the field that you are going to associate with one or more **Graph Item**. | +| Field Type | You must choose the field that you are going to associate with one or more **Graph Items**. | | Associated Graph Items | Choose one or more **Graph Items** to associate with the field selected for "Field Type". When the user specifies a value for the field, it will be applied to all of the items you select here. | ### Applying Graph Templates to Graphs @@ -365,10 +365,10 @@ select the **Graph** you want to apply the template to under **Graph Management**. Under the **Graph Template** Action drop-down, select the **Graph Template** that you want to apply to the **Graph** and click Save. If this is a new **Graph** or the **Graph** and **Graph Template** contain an equal number of -**Graph Items**, the **Graph Template** will be automatically applied. If number -of **Graph Items** varies from the **Graph** to the target **Graph Template**, -you will be prompted with a warning that your **Graph** will be changed, and not -always for the better. +**Graph Items**, the **Graph Template** will be automatically applied. If the +number of **Graph Items** varies from the **Graph** to the target **Graph +Template**, you will be prompted with a warning that your **Graph** will be +changed, and not always for the better. Once the **Graph Template** is applied to the existing **Graph**, you will notice that you can only change values for the fields that you checked Use @@ -382,10 +382,10 @@ applied to each **Graph Item** tied to the **Graph Item Input**. ## Device Templates -**Device Templates** in Cacti, often times referred to as Host Templates serve +**Device Templates** in Cacti, often times referred to as Host Templates, serve as a way to group a set of common **Graph Templates** and **Data Queries** to **Devices** of a certain class, say a Cisco Router or Linux host using Net-SNMP. -It really accelerates the deployment of a Cacti system across and enterprise of +It really accelerates the deployment of a Cacti system across an enterprise of Devices. ### Adding a Device Template @@ -406,10 +406,10 @@ Graph Templates and Data Queries available for this Class of **Devices**. ## Import Templates -Assume, you're searching for a specific set of templates to monitor a special +Assume you're searching for a specific set of templates to monitor a special type of device. Apart from designing templates from scratch, there's a good chance to find a solution in the -[Scripts and Templates Forum](http://forums.cacti.net/forum-12.html). The set of +[Scripts and Templates Forum](https://forums.cacti.net/forum-12.html). The set of templates is usually provided as a single XML file holding all required definitions for a data template and a graph template. Depending on the goal of the original author, he/she may have provided a **Device Template** as well as @@ -429,7 +429,7 @@ If the XML file was downloaded, simply select that file from the Downloads location on your local system. Cacti no longer supports pasting the XML into the browser window. -Please pay attention the the `Data Source Profile` field. By default, cacti will +Please pay attention to the `Data Source Profile` field. By default, Cacti will attempt to use your default **Data Source Profile**. However, you can change that at import time to use an alternate **Data Source Profile** or even the one from the **Template** itself, if it includes one. diff --git a/Tree-Rules.md b/Tree-Rules.md index 98e02f8..879b963 100644 --- a/Tree-Rules.md +++ b/Tree-Rules.md @@ -3,12 +3,13 @@ This section will describe **Tree Rules** in Cacti. Tree rules allow Automation to bunch up devices based on matches -on rules we come up with you can say bunch all Cisco devices on to a Cisco tree. -Or if you have a site where all of the hostnames start with siteb you can -have a site b tree etc see below for some examples. +on rules we come up with. You can say bunch all Cisco devices onto a Cisco tree. +Or if you have a site where all of the hostnames start with siteb, you can +have a site b tree, etc. See below for some examples. -To get started you will need to create a Tree rule on the top right click the + -to start a new rule you are also able to duplicate rules to make it easier as well. +To get started, you will need to create a Tree rule. On the top right, click the ++ to start a new rule. You are also able to duplicate rules to make it easier as +well. ![Tree Rules](images/automation-tree-rules.png) @@ -16,13 +17,13 @@ to start a new rule you are also able to duplicate rules to make it easier as we ![Tree Rules Item Edit](images/automation-tree-rules-edit2.png) -We need a way to tell automation what device we are looking for -in the example above we are looking for a device with the hostname Linux +We need a way to tell Automation what device we are looking for. +In the example above we are looking for a device with the hostname Linux; this is done via a REGEX using the `matches regular expression` operator, which the database evaluates with its `REGEXP` operator. -To test this REGEX on existing devices you can click the show eligible Objects -this will check the Devices currently in cacti for a match. +To test this REGEX on existing devices you can click the show eligible Objects. +This will check the Devices currently in Cacti for a match. ![Tree Rules Preview](images/automation-tree-rules-edit4.png) diff --git a/Trees.md b/Trees.md index 925b6f4..97549b4 100644 --- a/Trees.md +++ b/Trees.md @@ -7,7 +7,7 @@ Each **Tree** consists of zero or more branches that contain leaf nodes such as **Graphs**, **Devices** and **Sites**. It's a very powerful way of organizing your **Graphs**. -Below we can see the current **Trees** we have setup on our Cacti +Below we can see the current **Trees** we have set up on our Cacti server. To get to this screen click `Console > Management > Trees`. From this page you can add or remove **Trees** as required. @@ -31,26 +31,22 @@ see the below page where you are able to add **Devices** to the **Tree**. To add devices to the new tree simply drag an available device to the tree and it will be added to the tree. Cacti currently supports four `Sort Types` and an `Inherit Parent Sorting` option, which can be either -inherited, of left to the author to define inheritance and at what level. See the image below for a visual representation -of how Tree Sorting is accomplished. +inherited, or left to the author to define inheritance and at what level. See +the image below for a visual representation of how Tree Sorting is accomplished. ![Tree Sorting](images/tree-options-sorting.png) -### Table 8-1. Tree Sporting Type Definitions +### Table 8-1. Tree Sorting Type Definitions Field | Value | Description --- | --- | --- -Name | Name of the tree entry. | The sort order of all trees themselves is -always alphabetical -Sorting Type | Manual Ordering (No Sorting) | Y -ou may chance the sequence at your will -Alphabetic Ordering | 1, Ab, ab | All sub-trees are ordered alphabetically, -unless specifies otherwise (you may chance sort options at sub-tree label) +Name | Name of the tree entry. | The sort order of all trees themselves is always alphabetical +Sorting Type | Manual Ordering (No Sorting) | You may change the sequence at your will +Alphabetic Ordering | 1, Ab, ab | All sub-trees are ordered alphabetically, unless specified otherwise (you may change sort options at sub-tree label) Natural Ordering | ab1, ab2, ab7, ab10, ab20 | N/A -Numeric Ordering | 01, 02, 4, 04 | Leading zeroes are not taken into account -when ordering numerically +Numeric Ordering | 01, 02, 4, 04 | Leading zeroes are not taken into account when ordering numerically -End users will not be able to view the **Tree** or it's Graphs until you +End users will not be able to view the **Tree** or its Graphs until you publish it. To edit a **Tree**, you will be required to lock it for your use by pressing the **Edit Tree** button. The locking is designed to prevent multiple users from editing a **Tree** @@ -58,8 +54,8 @@ simultaneously. When a Tree is locked, you can drag & drop the **Sites**, **Devices** and **Graphs** over to the Tree menu. To add a 'Root Branch', simply press the -**Add Root Branch** button, once you have Root Branches, you may right click on -the to create sub-branches on the Tree. +**Add Root Branch** button; once you have Root Branches, you may right click on +them to create sub-branches on the Tree. When you single click on a **Site**, the **Devices**, and **Graphs** associated with that **Site** should appear in their respective sections. You can also type into diff --git a/User-Domains.md b/User-Domains.md index 5e86bcc..a3606bf 100644 --- a/User-Domains.md +++ b/User-Domains.md @@ -3,30 +3,30 @@ User Domains in Cacti are a way of providing Custom Login experiences to differing groups of users and using LDAP or Active Directory Group Permissions to limit who -can login using those customer permissions. +can log in using those custom permissions. -Once a user login in for the first time, their permissions -will enherit the Template accounts permission settings +Once a user logs in for the first time, their permissions +will inherit the Template account's permission settings including User Group's and their permissions. So, as the name implies, you can have from one to many LDAP and Active directory listings in User Domains. -A use example would be for example 3 levels of customers -who will have access to the system. For example lets +An example use would be 3 levels of customers +who will have access to the system. For example, let's say those three groups are: -- Adminnistrators +- Administrators - Managers - Client Team -Each of these users groups are controlled by Active Directory -there are AD User Groups that map one-to-one with these -Groups. When you have these three Domains setup and enabled, -when you goto the Cacti Login screen there will be a drop-down -settings with the three Domains listed in the drop-down. +Each of these user groups is controlled by Active Directory. +There are AD User Groups that map one-to-one with these +Groups. When you have these three Domains set up and enabled, +when you go to the Cacti Login screen there will be a drop-down +with the three Domains listed in it. -If a normal user tries logging as an Administrator, their +If a normal user tries logging in as an Administrator, their login will be blocked and so on. The first image shows the list of domains, which domain is @@ -43,7 +43,7 @@ you can then specify the AD and LDAP User Group paths. ![User Domains Edit](images/user-domains-edit1.png) In the last images, you can see the Group Settings information, and -if you have the users Full Name and Email stored in LDAP or +if you have the user's Full Name and Email stored in LDAP or AD, you can pull that information and make it a part of the Cacti wrapper account when it's first created. diff --git a/User-Group-Management.md b/User-Group-Management.md index 60e8ebd..a3293d1 100644 --- a/User-Group-Management.md +++ b/User-Group-Management.md @@ -2,20 +2,20 @@ Cacti supports from one to many static User Groups in the current design. User Groups closely mimic the normal user. You see things like **Graph** -permissions, Roles and Realms, Default pages, and settings, it's all there. +permissions, Roles and Realms, Default pages, and settings; it's all there. -The way that a Cacti User Group works is that it's combined with the Users +The way that a Cacti User Group works is that it's combined with the User's permission, and then the resulting permission is the most permissive. So, if a User does not have a permission, but the User Group that they belong to does, the user then gains the permission. There are other types of settings that the User Group can own the -permission as well. There are only a few of these permissions however. +permission as well. There are only a few of these permissions, however. In the next series of images, we will walk through the User Group interface. -In this first images, we can see the main User Group interface. +In this first image, we can see the main User Group interface. From here, you can see all of the Groups defined on the system and -the number of Users in the Group, if the User Group is enabled or +the number of Users in the Group, and whether the User Group is enabled or disabled. Lastly, in the Action drop-down, you can see the actions that you can take with a User Group. @@ -33,26 +33,26 @@ Edit page has multiple Sub-tabs. They include: - **Device Perms** - User Group Device Permissions - **Template Perms** - Graph Template Permissions - **Tree Perms** - Tree Permissions -- **User Settings** - Settings for the User of the Group if they can not manage +- **User Settings** - Settings for the User of the Group if they cannot manage settings on their own -The first form elements are pretty self explanitory. The Tree, -Graph List, and Preview rights speak to Cacti three Graph Viewing modes +The first form elements are pretty self-explanatory. The Tree, +Graph List, and Preview rights speak to Cacti's three Graph Viewing modes which are explained in the Viewing Graphs section of the Document. -Lastly Login options, are how the user should be re-directed after logging. -This is again, pretty self explanitory. +Lastly, Login options are how the user should be redirected after logging in. +This is again, pretty self-explanatory. ![User Groups General](images/user-groups-edit-general.png) -The next image shows the Member list. This one is pretty self explanitory. +The next image shows the Member list. This one is pretty self-explanatory. You can see all the users defined on the system and whether or not they -below to the User Group, and the ability to add or remove them enmass. +belong to the User Group, and the ability to add or remove them en masse. ![User Groups Members](images/user-groups-edit-members.png) The next image shows Cacti's Roles and Realms within those Roles. Cacti -organizes it's Authorization Realms into Pre-defined Roles. Plugin +organizes its Authorization Realms into Pre-defined Roles. Plugin Developers can create their own Roles as well. So, when you Extend Cacti using Plugins, you may find additional Roles. @@ -60,7 +60,7 @@ Cacti using Plugins, you may find additional Roles. In this last image on the page, you can see every **Graph** in the Cacti system and whether or not the User Group has permission to view it. This -permission can granted by giving the Group permission to a **Device** +permission can be granted by giving the Group permission to a **Device** or the **Graph Template** in the **Permissive** permission mode, or in the **Restrictive** permission mode, they have to have both **Device** and **Graph Template** permissions to gain access to the **Graph**. Finally, @@ -69,10 +69,11 @@ choose. ![User Groups Graph Permissions](images/user-groups-edit-graph-permissions.png) -You can find the **Permission** and **Restrictive** permission setting on Cactis -configuration page at `Console > Configuration > Settings > General`. We have -not covered the **Device**, **Template**, **Tree** or **Settings** sub-tabs -here. If you would like more information on them, see the User documentation. +You can find the **Permissive** and **Restrictive** permission setting on +Cacti's configuration page at `Console > Configuration > Settings > General`. +We have not covered the **Device**, **Template**, **Tree** or **Settings** +sub-tabs here. If you would like more information on them, see the User +documentation. --- Copyright (c) 2004-2026 The Cacti Group diff --git a/User-Management.md b/User-Management.md index 960b8ed..722e2ee 100644 --- a/User-Management.md +++ b/User-Management.md @@ -5,18 +5,18 @@ enables you to manage **User** and **User Group** access to those **Graphs** as well as various other areas of Cacti. Each **User** has a variety of settings and permissions. Some of these settings can be controlled by the individual **User** via editing their Profile, or controlled by the Cacti Administrator. A -**Users** Cacti permissions are only modifiable by authorized Cacti +**User's** Cacti permissions are only modifiable by authorized Cacti Administrators. -Note: for a users to see new settings, they will have to log off and back in +Note: for users to see new settings, they will have to log off and back in again to view. ![User Management](images/users-list.png) Out of the box, there are two users that come with every Cacti installation. The "admin" user - the main user that by default has access to see and change -everything in Cacti. This is the user that you first login with in Cacti, and it -is probably a good idea to keep around unless you know otherwise. The second +everything in Cacti. This is the user that you first log in with in Cacti, and +it is probably a good idea to keep around unless you know otherwise. The second user is the "guest" user, which controls which areas/graphs are allowed for unauthenticated users. @@ -30,24 +30,24 @@ disabling "guest" (Unauthenticated) access to Cacti. ## Editing an existing User To edit an existing user, select the Users item under the Configuration -heading on the Cacti menu. Once at the user management screen, click username of -the user you wish to edit. You will see a screen that looks similar to the image -below. +heading on the Cacti menu. Once at the user management screen, click the +username of the user you wish to edit. You will see a screen that looks similar +to the image below. ![Editing a User](images/users-edit.png) At minimum, you must specify a User Name and a Password for each user. Each user field is described in more detail below. In addition to these fields, each user -can have their own realm permissions", graph permissions, and graph settings. -Each of these items are described in this section of the manual. +can have their own realm permissions, graph permissions, and graph settings. +Each of these items is described in this section of the manual. ### User Management Options - **_User Name_** This field contains the login name for the user. There are no character limits - this field, but it would make sense to keep it to alphanumeric characters to - maintain simplicity. + on this field, but it would make sense to keep it to alphanumeric characters + to maintain simplicity. - **_Full Name_** @@ -66,7 +66,7 @@ Each of these items are described in this section of the manual. - **_Enabled_** - Determines if the user is able to login. + Determines if the user is able to log in. - **_Locked_** @@ -144,8 +144,8 @@ need Console Access and any additional realms that you see fit. **Graph Permissions** control which graphs a user is allowed to view. However, in general, these permissions do not apply to editing graphs. You can edit a -**Users** **Graph Permissions** either by assigning that **User** to one to many -**User Groups**, or by modifying their **Graph Permissions** directly. +**User's** **Graph Permissions** either by assigning that **User** to one to +many **User Groups**, or by modifying their **Graph Permissions** directly. ![User Realm Management](images/users-permissions-graph.png) @@ -153,7 +153,7 @@ Cacti supports four Graph Permission models. There is the `Permissive` Graph permission which states that if a user has access either to the Graph, the Device or Graph Template, the user will have access to all the Graphs that match that class. For example, in the `Permissive` model, if you have access to the -**Device**, you have access to all it's **Graphs**. If you have access to a +**Device**, you have access to all its **Graphs**. If you have access to a **Graph Template**, you have access to every **Device Graph** that matches that **Graph Template**. @@ -172,16 +172,17 @@ Perms** sub-tab is not shown for a **User**. When `Graph Template Based` is selected, the **Device Perms** sub-tab is not shown. We introduced these new permission models and administrative processes to -simplify the Cacti permission system, and to increase it's usability. +simplify the Cacti permission system, and to increase its usability. In addition to the Graph Permission models, which can be set from **Console > Configuration > Settings > General**, a **User** or **User Group** is either `Allowed` or `Denied` all **Graphs**, **Devices** and **Graph Templates** through a setting called the **Default Policy** in each of the Permission Tabs. The **Graph Permissions** tab includes an `Effective Policy`, -which combines all the **Users** various **User Group** and **User** permissions -to provide an effective permission. If the **Graph** is ultimately permitted for -the **User** to view, you will see for what reason from this Permission tab. +which combines all the **User's** various **User Group** and **User** +permissions to provide an effective permission. If the **Graph** is ultimately +permitted for the **User** to view, you will see for what reason from this +Permission tab. Note: even if a **User** is denied access to a **Device** or **Graph Template**, but has access to at least one **Graph** from that **Device** or **Graph @@ -220,19 +221,19 @@ mentioned above, revoking **Graph Template** access does not necessarily block a Cacti allows the Administrator to `Grant` and `Revoke` **Tree** permissions from this tab. The Cacti **Tree** permissions are a single level security object. -However, when you browse a **Tree** to it's various branches, a user will only +However, when you browse a **Tree** to its various branches, a user will only be allowed access to the Graphs and Devices that they have access to. Managing permissions to **Trees** is identical to **Graphs**, **Devices** and **Graph -Templates** otherwise. Additionally, Cacti has will hide branches from a +Templates** otherwise. Additionally, Cacti will hide branches from a **User** when they have no access to any **Devices** or **Graphs** within it. ## User Specific Settings Cacti optionally allows **Users** to control certain **User Settings** such as their `Email Address` and `Full Name`. However, the Cacti Administrator also has -the ability to view a **Users** settings and modify them for the **User** from +the ability to view a **User's** settings and modify them for the **User** from the **User Settings** tab. This feature allows the Cacti Administrator to better -support their **Users**. However, you can disable a **Users** ability to modify +support their **Users**. However, you can disable a **User's** ability to modify defaults from the `General` **User Management** tab. This is important for the `guest` account for example. @@ -247,7 +248,7 @@ defaults from the `General` **User Management** tab. This is important for the In order to increase Cacti User Interface performance, when a **User** first checks for their permissions after login to either **Devices** or **Graph Templates** those permissions are cached for their entire login session. If you -change a **Users** **Device** or **Graph Template** permissions, they will not +change a **User's** **Device** or **Graph Template** permissions, they will not see those permission changes until their next login. ## Creating a New User @@ -285,35 +286,35 @@ From this sub-tab, you can assign or remove users from various **User Groups**. ### Graph Perms -From this sub-tab, you can view a users `Effective` Graph permissions and also +From this sub-tab, you can view a user's `Effective` Graph permissions and also `Grant` or `Revoke` access to **Graphs** for an individual **User**. ![Graph Permissions](images/users-permissions-graph.png) ### Device Perms -From this sub-tab, you can view and edit a users **Device** permissions. Note -that removing a users permission to a **Device** can be overridden if they have +From this sub-tab, you can view and edit a user's **Device** permissions. Note +that removing a user's permission to a **Device** can be overridden if they have access to either a **Graph** or, depending on the permission model you have -chosen, a **Devices** **Graph Template**. +chosen, a **Device's** **Graph Template**. ![Graph Permissions](images/users-permissions-device.png) ### Template Perms -From this sub-tab, you can `Grant` or `Revoke` a **Users** access to various +From this sub-tab, you can `Grant` or `Revoke` a **User's** access to various Cacti **Graph Templates**. ![Graph Permissions](images/users-permissions-templates.png) ### Tree Perms -From this sub-tab, you can `Grant` or `Revoke` a **Users** access to the various -Cacti **Trees**. +From this sub-tab, you can `Grant` or `Revoke` a **User's** access to the +various Cacti **Trees**. ### User Settings -From this sub-tab, you can modify a **Users** settings to assist the **User** +From this sub-tab, you can modify a **User's** settings to assist the **User** with their use of Cacti, or to set defaults for that **User**. ![User Settings](images/users-settings.png) @@ -331,7 +332,7 @@ will be used as the source **User**. ![Copy a User Part 2](images/users-copy2.png) Specify the New Username, New Full Name and New Realm of the new user. Click -`Continue` to copy the selected template user to the the designated new user. An +`Continue` to copy the selected template user to the designated new user. An error will be returned if you attempt to copy over an existing user. If you would like to copy over an existing user, use Batch Copy. @@ -361,14 +362,14 @@ you. To Batch Copy a set of or a single user, select the **Users** interface under **Console > Configuration**. Once at the **Users** interface, highlight the **Users** you would like to batch copy information to and select `Batch Copy` -from the `Choose and action` drop down selection box, click `Go` to continue. +from the `Choose an action` drop down selection box, click `Go` to continue. ![Batch Copy Users Part 2](images/users-batch-copy2.png) Select the `Template User` and confirm that you want to `Batch Copy` the listed **Users**. Click `Continue` to perform the action. -It is important to note that when using `Batch Copy` the original **Users** +It is important to note that when using `Batch Copy` the original **User's** `Full Name`, `Password`, `Login Realm` and `Enable` status will be retained, all other fields will be overwritten with values from the selected `Template User`. @@ -376,11 +377,9 @@ other fields will be overwritten with values from the selected `Template User`. ![Delete Users Part 1](images/users-delete1.png) -To delete a set of or a single **User**, highlight the **Users** from -****Console - -> Configuration > Users**** interface, then select `Delete` from the -> `Choose an action` drop down selection box and press `Go` to continue. +To delete a single **User** or a set of **Users**, highlight them in the +**Console > Configuration > Users** interface, then select `Delete` from the +`Choose an action` drop down selection box and press `Go` to continue. ![Delete Users Part 2](images/users-delete2.png) @@ -393,8 +392,8 @@ By default, Guest or Anonymous access is disabled in Cacti. Enabling "Guest" access is easy. But, you must understand that you should only allow the designated "Guest" user access to what you authorized. It is not suggested that you give the designated "Guest" user more than just access to graphs. To enable -guest access, first, need a designated "Guest" user. Cacti by default comes with -one already created that has access to only graphs. +guest access, first, you need a designated "Guest" user. Cacti by default comes +with one already created that has access to only graphs. It is important to note that the default guest user has access to all graphs on the system. Once you have created the "Guest" user, you need to tell Cacti what diff --git a/VDEFs.md b/VDEFs.md index 891a5e9..30d66f4 100644 --- a/VDEFs.md +++ b/VDEFs.md @@ -2,16 +2,16 @@ ## Background -VDEF's in Cacti are a one to one analog to VDEF's in RRDtool. Cacti -simply provides and interface to create and manage them. Once the -VDEF's are created in Cacti they can be imported and exported globally. +VDEFs in Cacti are a one to one analog to VDEFs in RRDtool. Cacti +simply provides an interface to create and manage them. Once the +VDEFs are created in Cacti they can be imported and exported globally. -VDEFS's are mathematical formulas that instead of operating on just -one Data Point in the RRDfile, oerate on the entire Data Set in the time -range selected. So, VDEF's become an excellent tool to replace +VDEFs are mathematical formulas that instead of operating on just +one Data Point in the RRDfile, operate on the entire Data Set in the time +range selected. So, VDEFs become an excellent tool to replace Nth Percentile and Bandwidth function in Cacti with the VDEF equivalents. -The are referenced in Cacti graphs as VNAMES. However, as mentioned before +They are referenced in Cacti graphs as VNAMES. However, as mentioned before Cacti automatically assigns VNAMES. So, to perform complex operations, you will have to experiment to determine the VNAME of your VDEF as you build your **Graph Template**. But in their simplest forms, they are @@ -25,18 +25,19 @@ it's not broken. ## VDEF Interface -In the image below, you can see all the VDEF's that are included in Cacti by -default. They are included just to get you thinking about how your would use -them. You can see straight away the first and the last items are 95th Percentile -and Bandwidth (or Total) VDEF's. Other examples are pretty self explanatory. +In the image below, you can see all the VDEFs that are included in Cacti by +default. They are included just to get you thinking about how you would use +them. You can see straight away the first and the last items are 95th +Percentile and Bandwidth (or Total) VDEFs. Other examples are pretty self +explanatory. -You will also note that you can Delete or Duplicate the VDEF's, but as with -CDEF's you can not Delete a VDEF that is being used in a **Graph**. +You will also note that you can Delete or Duplicate the VDEFs, but as with +CDEFs, you cannot Delete a VDEF that is being used in a **Graph**. ![VDEFS](images/vdefs.png) In the image below, you can also see that their interface very closely resembles -the CDEF Interface. Unlike the CDEF's, there is presently only one +the CDEF Interface. Unlike the CDEFs, there is presently only one `Special Data Source` and that's the Current Data Source, which makes sense when you think about it. diff --git a/Variables.md b/Variables.md index 1cfd532..40fb68d 100644 --- a/Variables.md +++ b/Variables.md @@ -2,7 +2,7 @@ ## Graph Variables -Graphs Variables are special use replacement variables used to take information +Graph Variables are special use replacement variables used to take information from the following objects and use them in the context of a Cacti Graph: - **Cacti Device** - host information @@ -10,7 +10,7 @@ from the following objects and use them in the context of a Cacti Graph: - **Data Input** - input variables - **Nth Percentile** - formulas -It also allows you additional one single use replacement variables like: +It also allows you additional single-use replacement variables like: - **Data Source Name** - The name of your Data Source - **Date Time** - The date and time the graph was rendered. @@ -50,7 +50,7 @@ See attached examples to understand usage. ![Example of a Graph Template using |data_source_title|](images/graph-variables-data-source-title.png) -The example graphs below, show how the output may look, but for a slightly +The example graphs below show how the output may look, but for a slightly different Case. ![Example 1 of a Graph making use of |data_source_title|](images/data-source-title-example1.png) @@ -63,7 +63,7 @@ different Case. |query_field_name| ``` -You can place the value of any data query field on the by including this +You can place the value of any data query field on the graph by including this variable. Make sure to substitute "field_name" with the actual data query field name. @@ -94,11 +94,11 @@ name. Nth percentile is often used by hosting providers to bill customers based on their peak traffic usage while ignoring their top (100 - Nth) percent. This way if a customer has a fairly consistent traffic pattern and decides to download a -huge file one day, the large spike will be ignored. Common Nth percentile is 95, -which would cut off the top 5% of the traffic. +huge file one day, the large spike will be ignored. The common Nth percentile is +95, which would cut off the top 5% of the traffic. -The Nth Percentile variables, when placed in Graph Comments will be detected and -the syntax will be parsed and the reulting numeric value will replace the +The Nth Percentile variables, when placed in Graph Comments, will be detected +and the syntax will be parsed and the resulting numeric value will replace the formula. They are used in both 95th Percentile and Bandwidth Traffic Graphs today. @@ -121,7 +121,7 @@ variable you must give it five arguments: | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | current | Calculates the Nth percentile based off the selected data source on the graph item which the variable is used. This type requires a selected Data Source Item in the graph item in which it is defined. | | total | Calculates the Nth percentile based off the selected data source on the graph item which the variable is used. But unlike current, this function totals the Nth percentile results of all same named data source names on the graph. Example, all traffic_in would have their Nth percentile calculated and then totaled. This type requires a selected Data Source Item in the graph item in which it is defined. | -| max | Calculates the Nth percentile based off the selected data source on the graph item which the variable is used, but it is important to note that it selects the higher of the values for each row in data source and then uses the resulting set to calculate the Nth percentile. Example, you have selected a interface data source for traffic_in, this will evaluate traffic_out and traffic_in for that selected data source (RRDtool file) and select the higher of the two values for each row of data. The resulting max values are used to calculate the Nth percentile value. This type requires a selected Data Source Item in the graph item in which it is defined. | +| max | Calculates the Nth percentile based off the selected data source on the graph item which the variable is used, but it is important to note that it selects the higher of the values for each row in data source and then uses the resulting set to calculate the Nth percentile. Example, you have selected an interface data source for traffic_in, this will evaluate traffic_out and traffic_in for that selected data source (RRDtool file) and select the higher of the two values for each row of data. The resulting max values are used to calculate the Nth percentile value. This type requires a selected Data Source Item in the graph item in which it is defined. | | total_peak | Calculates the Nth percentile based on the max for each data source defined on the graph. Example, the max is taken for each data source defined on the graph, but it\'s the max of traffic_in or traffic_out for that data source (RRDtool file). The resulting max values are summed and returned. | | all_max_current | Calculates the Nth percentile based off the selected data source on the graph item which the variable is used, but it only selects the highest (max) value of all the data source items on the graph. Example, there are 3 data sources defined on the graph, the selected data source is traffic_in, all data sources for traffic_in will be compared against each other and the highest Nth value of all graph items will be selected as the result. This type requires a selected Data Source Item in the graph item in which it is defined. | | all_max_peak | Calculates the Nth percentile by selecting the highest (max) calculated max Nth percentile value for each data source (RRDtool file) selected on the graph. Example, 3 data sources are defined on the graph, for each data source, the max Nth percentile is calculated, and out of the resulting set of values, the highest value is selected and returned. | @@ -176,7 +176,7 @@ this variable you must give it four arguments: Host variables represent host data and can be placed in graph or data source titles. The following table describes which host variables can be used and which -host fields the correspond to. +host fields they correspond to. ###### Table 15-4. Host Variables @@ -230,7 +230,7 @@ how they are used for suggested names. ![Suggested Names](images/graph-variables-suggested-names.png) -And in Bandwidth Graph Template. +And in the Bandwidth Graph Template. ![Graph Template Bandwidth](images/graph-variables-graph-template.png) diff --git a/Version-Specific-Release-Notes.md b/Version-Specific-Release-Notes.md index 541f7b9..c9a0a69 100644 --- a/Version-Specific-Release-Notes.md +++ b/Version-Specific-Release-Notes.md @@ -2,10 +2,10 @@ ## Summary -Below you will find the release note for all versions of Cacti 1.0.0 and above. +Below you will find the release notes for all versions of Cacti 1.0.0 and above. Release notes for earlier Cacti versions have been excluded due to the large list of changes that have occurred over the years, and since Cacti 0.8.x is no -longer supported, it's a good time to for the purposes of this document, move +longer supported, it's a good time to, for the purposes of this document, move them aside. For Cacti 1.2.31, use the [published release notes][release-1231] and the @@ -47,20 +47,21 @@ The following plugins have been merged into the core Cacti code as of version | autom8 | Graph and Tree creation automation | | discovery | Network Discovery and Device automation | | spikekill | Removes spikes from Graphs | -| superlinks | Allows administrators to links to additional sites | +| superlinks | Allows administrators to link to additional sites | ## ChangeLog for All Cacti 1.x Releases -The following shows the naming convention used for issues and features listed in the CHANGELOG for both cacti and it's plugins +The following shows the naming convention used for issues and features listed in the CHANGELOG for both cacti and its plugins | Category | Description | | ---------------- | ----------------------------------------------------------------------------- | | issue[issue#] | Normal issues either experienced by a Developer or logged in GitHub and fixed | | feature[issue#] | Features either implemented or logged in GitHub and addressed | | security[issue#] | Security vulnerability either fixed or logged in GitHub and addressed | -| bug[bug#] | Feature of Bug reported in the old Cacti Mantis system that was addressed. | +| bug[bug#] | Feature or Bug reported in the old Cacti Mantis system that was addressed. | Below are a few examples of the version, type and description that can be found in the CHANGELOG + | Version | Feature/Bug | Description | | ------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------- | | 1.2.17 | issue#3981 | Missing API include leads to runtime errors in Automation | diff --git a/Viewing-Graphs.md b/Viewing-Graphs.md index e395376..91f0bc3 100644 --- a/Viewing-Graphs.md +++ b/Viewing-Graphs.md @@ -2,11 +2,11 @@ ## Background -Cacti, when it was first invented in 2001 by Ian Berry, his vision was to make it +When Cacti was first invented in 2001 by Ian Berry, his vision was to make it the fastest and easiest way to view and render Network Monitoring **Graphs** for -people in the Network, Site, and Data Center Operations Space. As such, it's focus -from the very beginning was on render just one thing, **Graphs**. So, as such, -the second **Top Tab** on a Cacti system is the **Graphs** tab. +people in the Network, Site, and Data Center Operations Space. As such, its +focus from the very beginning was on rendering just one thing, **Graphs**. So, +as such, the second **Top Tab** on a Cacti system is the **Graphs** tab. ## The Graphs Top Tab @@ -67,7 +67,7 @@ per Page setting, you can press the `Save` button, if you have the correct permissions and save those defaults for your next login. Depending again on permissions, to the right of the **Graphs**, you will find a -number of action icons that allow you to operate on the **Graphs** +number of action icons that allow you to operate on the **Graphs**. The image below shows what that might look like if you have the **Thold** and **QuickTree** **Plugins** installed. @@ -93,7 +93,7 @@ zooming, you will zoom all the **Graphs** on a page. It's quite powerful. ![Graph Zoom Context Menu](images/graph-view-zoom-context-menu.png) -There are many options for the Zoom menu. Instead of explaining them here +There are many options for the Zoom menu. Instead of explaining them here, try them out for yourself. --- diff --git a/supported-plugins.md b/supported-plugins.md index bbf9182..58b8deb 100644 --- a/supported-plugins.md +++ b/supported-plugins.md @@ -1,11 +1,11 @@ # Supported plugins -Cacti group has developed and is still developing a large number of plugins -extending cacti. Some of them are adopted from the community. +The Cacti Group has developed, and is still developing, a large number of +plugins extending Cacti. Some of them are adopted from the community. -Of course plugins can be developed by anyone, our documentation contains +Of course, plugins can be developed by anyone; our documentation contains everything needed. We do our best to keep the plugins we support working -with current versions of cacti. +with current versions of Cacti. Here is a list of the plugins we support and a short description of them. @@ -14,7 +14,8 @@ Here is a list of the plugins we support and a short description of them. The Cacti thold plugin is designed to be a fault management system driven by Cacti's Graph information. It provides the facility to inspect data in a Cacti Graph and the underlying RRDfile, and generate alerts for management and operations personnel. It provides Email, Syslog, and SNMP Trap or Inform escalations. - In addition, it also can notify personnel of Cacti Device status changes. + In addition, it can notify personnel of Cacti Device status changes through + Email, Syslog, and either SNMP Trap or Inform. - Hi/Low, Time Based and Baseline deviation thresholds - Realerting - Multiple Data Manipulation types, including: Exact Value, CDEF, Percentage, and RPN Expression @@ -25,7 +26,8 @@ Here is a list of the plugins we support and a short description of them. - **Intropage** - User defined dashboards for Cacti. Each user can create own dashboards. + User-defined dashboards for Cacti. Each user can create their own + dashboards (up to nine). - Displays useful information about Cacti - Add graphs to dashboard - Support plugins like thold, syslog, ... @@ -36,7 +38,8 @@ Here is a list of the plugins we support and a short description of them. - **Maint** - Plugin is for the scheduling of maintenance so that Thold/Servcheck and other plugins will not alert during that time period. + This plugin is for scheduling maintenance, so that Thold, Webseer, Servcheck, + and other plugins will not alert during that time period. - One time or Recurring schedule [Maint plugin homepage](https://github.com/Cacti/plugin_maint) @@ -45,6 +48,7 @@ Here is a list of the plugins we support and a short description of them. This plugin allows you to view at a glance all your critical Cacti hosts, and will alert you audibly and via Email when a Device or Devices go down. + It requires the Thold plugin, version 1.2.1 or later. - Data Center Dashboard - Audible and Visual Alerting - Respects Cacti's user permissions @@ -63,7 +67,7 @@ Here is a list of the plugins we support and a short description of them. - Graphs of Wireless and PPPoE Users - Table views of Wireless and PPPoE User utilization - Graphs of MikroTik environmental data such as temperature and voltage - - Viewing of Devices and summary statistics, Users, Queue Trees, Access Points, HotSpots, Interfaces, and Wireless Station information + - Viewing of Devices and summary statistics, Users, Queue Trees, Access Points, HotSpots, Interfaces, Wireless Station, and Health (sensor) information [Mikrotik plugin homepage](https://github.com/Cacti/plugin_mikrotik) @@ -71,13 +75,18 @@ Here is a list of the plugins we support and a short description of them. The routerconfigs plugin is designed to receive and create backups from your network devices. It also provides the ability to view and diff those router configurations as they change over time. - It is designed primarily for Cisco device types, but may work with other device types. + Devices are backed up with TFTP transfers or SSH command capture, depending + on the device type, and the built-in device types cover many vendors, not + only Cisco. TFTP device types need a reachable TFTP server; SSH capture + device types need PHP's `ssh2` extension. [Routerconfigs plugin homepage](https://github.com/Cacti/plugin_routerconfigs) - **ReportIt** - This plugin creates tabular reports which can be exported to CSV, SML and XML as well. + This plugin creates tabular reports that can also be exported to CSV, SML, + and XML. Version 3.0, on the plugin's development branch, requires Cacti + 1.3.0; the published 1.1.4 release requires Cacti 1.2.27 or later. - Definition of individual report templates by using measurands and variables in a mathematical way - Individual configuration of working days, working time, timezone and subheads per data item - Scheduled reporting with sliding time frames @@ -105,7 +114,7 @@ Here is a list of the plugins we support and a short description of them. - Associate IP and MAC - Where is device connected - ARPwatch support - - Finds Stolen/Lost PC's + - Finds Stolen/Lost PCs - Tells you when someone is connected who shouldn't be [Mactrack plugin homepage](https://github.com/Cacti/plugin_mactrack) @@ -126,9 +135,9 @@ Here is a list of the plugins we support and a short description of them. Internet services (http, imap, ldap, ...) monitoring plugin. This plugin allows you to add service monitoring to Cacti. You simply add service check, allow service specific test - (like certificate test) and you can add the expected response. Servcheck periodically runs test - and notifies if a service check fails. The plugin records statistics about the connection, - it's response, and can alert when the status changes. + (like certificate test) and you can add the expected response. Servcheck periodically runs tests + and notifies if a service check fails. The plugin records statistics about the connection + and its response, and can send an email or run a script when the status changes. - tests for scp, tftp, ftp, smb, .. - import own certificate for test - notify about soon certificate expiration @@ -139,8 +148,9 @@ Here is a list of the plugins we support and a short description of them. - **HMIB** The hmib plugin is designed to collect SNMP information from Cacti Devices that support the - SNMP Host Resources Mib structure. This SNMP information includes performance metrics like - CPU utilization, running processes and applications, hardware details, ... + SNMP Host Resources MIB (HOST-RESOURCES-MIB). This SNMP information includes + performance metrics like CPU utilization, running processes and applications, + memory and storage utilization, hardware details, and installed software. [Hmib plugin homepage](https://github.com/Cacti/plugin_hmib) @@ -148,19 +158,19 @@ Here is a list of the plugins we support and a short description of them. Weathermap is one of many implementations of the same basic idea - take data from your network devices and use it to provide a single-page overview of the current - state of network, like the one to the right. + state of the network. [Weathermap plugin homepage](https://github.com/Cacti/plugin_weathermap) - **Syslog** - It provides a simple Syslog event search an Alert generation and notification + It provides a simple Syslog event search, alert generation, and notification interface that can generate both HTML and SMS messages for operations personnel who wish to receive notifications inside of a data or network operations center. - When combined by the Linux SNMPTT package, it can be converted into an SNMP Trap + When combined with the Linux SNMPTT package, it can be converted into an SNMP Trap and Inform receiver and notification engine as the SNMPTT tool will receive SNMP Traps and Informs and convert them into Syslog messages on your log server. - These syslog messages can then be consumed by the syslog plugin. So, this tool is quite handy + These syslog messages can then be consumed by the syslog plugin. - Message filtering - Message searching - Message Alerting @@ -173,8 +183,8 @@ Here is a list of the plugins we support and a short description of them. - **Slowlog** - The plugin will allow a Cacti Administrator to import their slow - Query log and perform analysis of that slow log. + The plugin allows a Cacti Administrator to import a MySQL or MariaDB slow + query log into the Cacti database and analyze it. [Slowlog plugin homepage](https://github.com/Cacti/plugin_slowlog) @@ -182,10 +192,11 @@ Here is a list of the plugins we support and a short description of them. This plugin is to be used to track UPS status from the apcupsd daemon as well as SNMP enabled UPS. The apcupsd daemon is able to provide information - on APC and other types of UPS' over various network typologies such as USB, + on APC and other types of UPS' over various network topologies such as USB, Modbus, Ethernet, etc. We have added basic SNMP support in order to provide - direct access to certain models over the SNMP protocol thus removing the need - for an apcupsd host to provide the monitoring details as well. + direct access to certain models over the SNMP protocol, thus removing the need + for an apcupsd host to provide the monitoring details as well. Version 1.4.0 + also adds support for UPSs served by a Network UPS Tools (NUT) server. - Track UPS status - Log information to Cacti database @@ -195,9 +206,11 @@ Here is a list of the plugins we support and a short description of them. - **WMI** The WMI Plugin provides data collection services for devices that support the - WMI protocol. It operates asyncrhonously to the Cacti data collection and + WMI protocol. It operates asynchronously to the Cacti data collection and stores the resulting information into cache tables. These cache tables can - then be used to generate graphs, thresholds and alerts. It relies on the 'wmic' - command in Linux, and WMI services via Microsofts COM protocol from Windows Cacti servers. + then be used to generate graphs, thresholds and alerts. On a Linux Cacti + server it relies on the 'wmic' client; on a Windows Cacti server it uses + PowerShell (CIM) over WinRM. The plugin is still under development and is + not recommended for production systems. [WMI plugin homepage](https://github.com/Cacti/plugin_wmi)