From c4be40ab53331708a339469fa90c6b874b4e6d01 Mon Sep 17 00:00:00 2001 From: Thomas Vincent Date: Mon, 23 Nov 2026 12:12:12 -0800 Subject: [PATCH] docs(settings): [1.2.x] correct settings, authentication and user management pages against the source (#265) * docs(settings): [1.2.x] correct settings pages against the source Align setting names, options, defaults and descriptions on the General, Paths, Device Defaults, Poller, Data, Visual, Performance, Spikes and Mail/Reporting/DNS pages with include/global_settings.php on 1.2.x. Signed-off-by: Thomas Vincent * docs(auth): [1.2.x] correct authentication settings pages against the source Align option labels and the Basic Auth mapfile behavior with include/global_settings.php and lib/auth.php on 1.2.x. Signed-off-by: Thomas Vincent * docs(users): [1.2.x] correct user, log, utilities and navigation pages against the source Align menu paths, form labels, permission models, log filters and utilities entries with the 1.2.x source. Signed-off-by: Thomas Vincent * docs(settings): [1.2.x] correct the authentication class count on the Settings page include/global_arrays.php defines four authentication methods. Signed-off-by: Thomas Vincent * docs(settings): [1.2.x] fix the PNG and SVG expansions on the General page The page expanded PNG as Petri Net Graphs and SVG as Scalable Vector Graphs. The source only has the labels PNG and SVG. Signed-off-by: Thomas Vincent * docs(settings): [1.2.x] document settings missing from the pages Add entries from include/global_settings.php, links.php and utilities.php on 1.2.x. Signed-off-by: Thomas Vincent --------- Signed-off-by: Thomas Vincent --- Cacti-Log.md | 8 ++- External-Links.md | 30 +++++++++ Navigating-The-User-Interface.md | 3 +- Settings-Auth-Basic.md | 8 ++- Settings-Auth-LDAP.md | 40 ++++++++++-- Settings-Auth-Local.md | 5 +- Settings-Auth.md | 10 +-- Settings-Data.md | 25 +++++--- Settings-Device-Defaults.md | 9 +-- Settings-General.md | 104 +++++++++++++++++++++++-------- Settings-Mail-Reporting-DNS.md | 15 +++-- Settings-Paths.md | 2 +- Settings-Performance.md | 33 +++++----- Settings-Poller.md | 46 +++++++++++--- Settings-Spikes.md | 31 +++++++-- Settings-Visual.md | 59 +++++++++++++++--- Settings.md | 2 +- System-Utilities.md | 49 ++++++++++++--- User-Domains.md | 4 +- User-Management.md | 53 +++++++++++----- 20 files changed, 417 insertions(+), 119 deletions(-) diff --git a/Cacti-Log.md b/Cacti-Log.md index cac56ab..7b96535 100644 --- a/Cacti-Log.md +++ b/Cacti-Log.md @@ -7,7 +7,8 @@ are sent to. Cacti can optionally log some information to your syslog or event l depending on your OS type. The Cacti Log is by default ordered from newest event to oldest event, and -the Cacti Log is rotated by Cacti itself once a day. +the Cacti Log is rotated by Cacti itself, by default once a day. The rotation +frequency is set by **Rotation Frequency** in the Paths settings. If you have the User Level permission, you can view any available Cacti Standard Output or Standard Error log. If you have the Administrative level access, @@ -33,9 +34,11 @@ The filters include: 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 Order** - The order to display the Log lines, either *Newest First* or *Oldest First*. +- **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. + A second drop-down selects whether to show lines that `Matches` or + `Does Not Match` the expression. The Cacti Log **Types** include the following: @@ -48,6 +51,7 @@ The Cacti Log **Types** include the following: - **Errors** - Anything that includes the word **ERROR** - **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 Cacti automation of Devices, Graphs, and Trees - **Non Stats** - Anything that does not include the word **STATS**. diff --git a/External-Links.md b/External-Links.md index c6787c7..b2d5a2e 100644 --- a/External-Links.md +++ b/External-Links.md @@ -9,6 +9,36 @@ 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. +The settings for an External Link include: + +- **Style** - Where should this page appear? The options are `Top Tab`, + `Console Menu`, `Bottom of Console Page` and `Top of Console Page`. + +- **Console Menu Section** - Under which Console heading should this item + appear? All External Link menus will appear between Configuration and + Utilities. + +- **New Console Section** - If you don't like any of the choices above, type a + new title in here. + +- **Tab/Menu Name** - The text that will appear in the tab or menu. + +- **Content File/URL** - The file that contains the content for this page. This + file needs to be in the Cacti `include/content/` directory. Select + `Web URL Below` to use a URL instead. + +- **Web URL Location** - The valid URL to use for this external link. It must + include the type, for example `http://www.cacti.net`. Note that many websites + do not allow them to be embedded in an iframe from a foreign site, and + therefore External Linking may not work. The default is + `http://www.cacti.net`. + +- **Enabled** - If checked, the page will be available immediately to the admin + user. It is checked by default. + +- **Automatic Page Refresh** - How often do you wish this page to be refreshed + automatically. The options are `Disabled` and the poller intervals. + ![External Links](images/external-links.png) ![External Link Edit](images/external-links-edit1.png) diff --git a/Navigating-The-User-Interface.md b/Navigating-The-User-Interface.md index eeb499a..723e729 100644 --- a/Navigating-The-User-Interface.md +++ b/Navigating-The-User-Interface.md @@ -161,7 +161,8 @@ into separate sub-menus. We will describe the purpose of each next. and **Trees**. - **Presets** - This area contains meta objects that cross Template boundaries and are Global in nature. They include; **Data Source Profiles**, - **CDEFs**, **VDEFs**, **GPrint Presets**, and **Colors** + **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**, diff --git a/Settings-Auth-Basic.md b/Settings-Auth-Basic.md index 6e3e3ce..7fad863 100644 --- a/Settings-Auth-Basic.md +++ b/Settings-Auth-Basic.md @@ -27,7 +27,7 @@ Those settings include: - **Primary Admin** - This is the Cacti primary administrative account this account will receive Cacti notifications and can not be deleted. -- **Guest Account** - This is a special account that allows users to +- **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 @@ -47,8 +47,10 @@ UNIX login account may be `jschmoe`, which grants you certain plugin permissions, like controlling your own workload. The mapfile is a file in CSV format, with the first column -being the Basic account (aka joe.schmoe@company.com), and the second -column being the login account (jschmoe). It is up-to the Cacti +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 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 74fd458..a0ab08e 100644 --- a/Settings-Auth-LDAP.md +++ b/Settings-Auth-LDAP.md @@ -86,14 +86,14 @@ LDAP authentication. 1. _None_ - This is plain-text, normally on port tcp/389. Passwords are transmitted over the network in clear text between Cacti and the directory. -2. _SSL_ - Commonly known as LDAPS, this is just like LDAP, but encrypted. This +2. _LDAPS_ - This is just like LDAP, but encrypted. This normally runs on port tcp/636. Please note, this is not enabled by default for Microsoft's Active Directory because it requires an encryption key and certificate to be installed on the AD controller(s). -3. _TLS_ - This is plain LDAP, but a START_TLS command is sent by the client to - the server to initiate encryption. Normally runs on port tcp/389 and can be - entered into during a regular LDAP session. +3. _LDAP + TLS_ - This is plain LDAP, but a START_TLS command is sent by the + client to the server to initiate encryption. Normally runs on port tcp/389 + and can be entered into during a regular LDAP session. Please note that some directories will limit the request types to which they respond when there is no encryption on the LDAP communication. @@ -106,6 +106,38 @@ obtained. In the case of a replicated directory such as Microsoft's Active Directory, the referral may contain an LDAP URL which could resolve to any participating LDAP server, whether correctly configured or not. +#### Other General Settings + +The remaining LDAP General Settings are: + +- _Server(s)_ - A space delimited list of DNS hostnames or IP addresses for + valid LDAP servers. Cacti will attempt to use the LDAP servers from left to + right to authenticate a user. + +- _Port Standard_ - TCP port for Non-SSL communications including LDAP + TLS. + The default is 389. + +- _Port SSL_ - TCP port for LDAPS for SSL communications. The default is 636. + +- _Protocol Version_ - Protocol Version to connect to the server with. The + options are `Version 2` and `Version 3`, and the default is `Version 3`. + +- _Connect Timeout_ - The Network Connect Timeout in seconds. The default is 2. + +- _Bind Timeout_ - The Bind Timeout in seconds. The default is 5. + +- _LDAP Debug Mode_ - If checked, Cacti will log extra LDAP information to the + Cacti log during Binding and Searching activities. It is disabled by default. + +- _TLS Certificate Requirements_ - Should LDAP verify TLS Certificates when + received by the Client. The options are `Never`, `Hard`, `Demand`, `Allow` + and `Try`, and the default is `Demand`. + +- _Require Group Membership_ - Require the user to be a member of a group to + authenticate. Group settings must be set for this to work. Enabling it + without proper group settings will cause authentication failure. It is + disabled by default. + ### LDAP Group Settings Cacti can enforce that a user be a member of a specific directory group to be diff --git a/Settings-Auth-Local.md b/Settings-Auth-Local.md index ee001e4..1455270 100644 --- a/Settings-Auth-Local.md +++ b/Settings-Auth-Local.md @@ -26,7 +26,10 @@ Those options include: to login 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. + a certain number of days of inactivity. The Admin account is excluded + from this policy. +- **Expire Password** - The maximum number of days before a password is set + to expire. - **Password History** - Maintain a list of previous passwords, and do not allow a user to use one of those prior passwords during their password changes. diff --git a/Settings-Auth.md b/Settings-Auth.md index 2cc1bd2..6534ca2 100644 --- a/Settings-Auth.md +++ b/Settings-Auth.md @@ -32,10 +32,12 @@ showing in the image below. Those options include: -- **Authentication Method** - One of the options below. -- **Support Authentication Cookies** - Provide Remember me that will keep a user - logged in from a single browser instance for up-to 90 days without - requesting that they re-validate their passwords. +- **Authentication Method** - One of the options below. If PHP's LDAP module + 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 + 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 the Cacti system is experiencing issues. diff --git a/Settings-Data.md b/Settings-Data.md index 1b0887a..ec5485b 100644 --- a/Settings-Data.md +++ b/Settings-Data.md @@ -5,7 +5,7 @@ about Cacti's **Data Sources** and about settings around how Cacti stores it's **Round Robin Archives** Time Series Databases (TSDB), otherwise known as RRDfiles. -There are presently to sub-sections for these settings. +There are presently three sub-sections for these settings. ## Data Source Statistics @@ -40,7 +40,7 @@ Those settings include: default it's stored in a memory table. You can run out of space. - **Maintenance Time** - This is the time in the day that Cacti - will calculate Monthly and Yearly numbers and perform table + will calculate Weekly, Monthly and Yearly numbers and perform table maintenance. - **Memory Limit for Data Source Statistics Data Collector** - This @@ -48,7 +48,7 @@ Those settings include: will be allowed to use. Most systems can work fine using the default 1GByte setting. -## RRDfile Checker +## RRDfile Check ![RRD Checker](images/rrd_check.PNG) @@ -56,10 +56,10 @@ RRDfile checker scans RRDfiles and try to find problems like stale values. Those settings include: -- **Enable RRDfile Checker** - This setting +- **Enable RRDfile Check** - This setting will either enable or disable the RRD checker. -- **Number of RRDfile Checker Processes** - For very large Cacti installs +- **Number of RRDfile Check Processes** - For very large Cacti installs the **RRDfile Checker** can take quite a long time to complete. This setting allows Cacti to perform the checks at orders of magnitude faster. @@ -80,11 +80,22 @@ The settings above include: - **Location** - Either Local or RRDtool Proxy Server. The example above shows the local storage option. -- **Structured RRD Paths** - In very large systems having a flat +- **Enable Structured Paths** - In very large systems having a flat directory structure has severe performance consequences. However, with the Structured Paths option, Cacti will separate RRDfiles by Device ID and use the Data Source ID as the RRDfile name. +- **Directory Pattern** - Which Directory Pattern to use for Structured RRD + Paths. The options are `Device ID`, which is the default, + `Device ID/Data Query ID`, `Device Hash/Device ID` and + `Device Hash/Device ID/Data Query ID`. Use `Device ID/Data Query ID` when + you have **Devices** with thousands of **Graphs**. After changing the + Directory Pattern, you must run the Structured Path CLI script again. + +- **Max Device Hash Directories** - The maximum number of **Device** + directories to be created based upon hashed **Device** IDs. The default is + 100. + > **NOTE**: If you are migrating from non-structured to structured > paths setup, you must run the CLI script to move those files > per the updated specification right after making this change. @@ -104,7 +115,7 @@ The settings above include: server. - **Proxy Port Number** - The port number to connect to in order to - communicate with the RRD Proxy. + communicate with the RRD Proxy. The default is 40301. - **RSA Fingerprint** - The fingerprint of the current public RSA key the proxy is using. This is required to establish a trusted diff --git a/Settings-Device-Defaults.md b/Settings-Device-Defaults.md index 3412740..48cb0fd 100644 --- a/Settings-Device-Defaults.md +++ b/Settings-Device-Defaults.md @@ -32,8 +32,9 @@ Those settings include: - **Re-index Method for Data Queries** - The default **Re-index" method for new **Device Data Queries** -- **Default Interface Speed** - If the **Device** does not include `ifHighSpeed` - what should the maximum speed of the interface be set to. +- **Default Interface Speed** - If Cacti can not 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 @@ -67,11 +68,11 @@ Those settings include: - **Auth User** - The default Authentication User to use (SNMP v3) -- **Auth Password** - The default Authentication password to use (SNMP v3) +- **Auth Passphrase** - The default Authentication Passphrase to use (SNMP v3) - **Privacy Protocol** - The default Privacy Protocol to use (SNMP v3) -- **Privacy Pass-phrase** - The default Privacy Pass-phrase to use (SNMP v3) +- **Privacy Passphrase** - The default Privacy Passphrase to use (SNMP v3) - **SNMP Context** - The default SNMP Context to use (SNMP v3) diff --git a/Settings-General.md b/Settings-General.md index 3fb307e..676b425 100644 --- a/Settings-General.md +++ b/Settings-General.md @@ -28,27 +28,27 @@ Those settings include: Options include: - **Logfile Only** - Only send log data to the Cacti log file - - **Logfile and Syslog** - Send log data to both the Cacti log file and the - System log facility - - **Syslog Only** - Send select log data to just the System log facility + - **Logfile and Syslog/Eventlog** - Send log data to both the Cacti log file + and the System log facility + - **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` section below. -- **General Log Level** - This is the level of logging that Cacti will use. +- **Generic Log Level** - This is the level of logging that Cacti will use. Options include: - - **NONE** - Don't perform any logging, not recommended. + - **NONE** - Syslog Only if Selected, not recommended. - **LOW** - Statistics and Errors - **MEDIUM** - Statistics, Errors and Results - **HIGH** - Statistics, Errors, Results and Major I/O Events - **DEBUG** - Statistics, Errors, Results, I/O and Program Flow - - **DEVEL** - Developer level messages, mainly **SQL Queries** + - **DEVEL** - Developer DEBUG Level Select the log level that works best for your logging needs. Be advised that - **DEBUG** generates a large amount of log data. **DEVEL** should only log - **SQL Queries**. + **DEBUG** generates a large amount of log data. - **Log Input Validation Issues** - This is a Developer option to log the use of request variables that have not been validated through Cacti's validation @@ -65,8 +65,9 @@ Those settings include: - **Selective Plugin Debug** - For Plugins, the same level of debug that is available for core Cacti files are available for Plugin files as well. -- **Device Debug** - This is a comma delimited list of Cacti `device_id` that - debugging of **Data Collection** services will be enabled for. +- **Selective Device Debug** - This is a comma delimited list of Cacti + `device_id` that debugging of **Data Collection** services will be enabled + for. - **Syslog/Eventlog Item Selection** - In order to not saturate the System logging facility, Cacti will only forward some events as defined @@ -95,6 +96,10 @@ Those settings include: 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 + the default is **Disabled**. + - **Date Display Format** - The default Date/Time display format. - **Date Separator** - The default Data/Time separator character. @@ -109,6 +114,9 @@ sub-section. Those settings include: +- **Show only site specific locations** - Show only locations that are + available at a devices 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 will be to check that setting. @@ -116,10 +124,20 @@ Those settings include: - **RRDtool Version** - Selecting the correct RRDtool Version will unlock features expected in modern graphing frameworks that leverage SVG (Canvas) rendering. -- **Graph Permission Method** - This defined if a user needs to have access to - both a **Device** and **Graph Template** to view a **Devices** **Graphs**, - otherwise known as **Restrictive** or that to view a **Devices** **Graphs** - the user only needs either the **Device** or **Graph Template** permission. +- **Enable Gradient Support** - Enable Gradient Support for AREA and STACK + charts. + +- **Graph Permission Method** - There are four methods for determining a User's + Graph Permissions. Under **Permissive**, the default, a User only needs + access to either the **Graph**, **Device** or **Graph Template** to gain + access to the **Graphs** that apply to them. Under **Restrictive**, the User + must have access to the **Graph**, or to both the **Device** and the + **Graph Template**. These first two methods have scalability problems for + very large installs, so two additional options are available. **Device + Based** means that if you have access to the **Device**, you get access to its + **Graphs**. **Graph Template Based** means that if you have access to the + **Graph Template**, you get access to all **Device Graphs** of that + **Graph Template**. - **Graph/Data Source Creation Method** - If you wish to only create **Graphs** from **Graph Templates** choose the **Simple** method. The **Advanced** @@ -130,9 +148,9 @@ Those settings include: able to read all form/setting help inline. Otherwise, you will receive a pop-up to access form help. -- **Delete Verification** - For simple object removal, things that can be removed - by clicking and 'X' on the page, whether or not you wish to confirm those - deletes. +- **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 + those deletes. - **Data Source Preservation Preset** - Whether or not you wish to preserve **Data Sources** by default, or remove them when deleting **Graphs**. In @@ -141,11 +159,17 @@ Those settings include: are managed externally to Cacti, and removing those **Data Sources** by default may not be desired. -- **Graph Auto Unlock** - If when editing a Graph you wish to always unlock +- **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 where devices have tens of thousands of **Data Sources**. +- **Local Page Help Only** - By default Cacti page help is located at + docs.cacti.net. If your system does not have access to the Internet, you can + download the documentation locally in HTML format and host it in the `docs` + location of your Cacti server. Check this option to use only that local + location for page help. + - **Hide Cacti Dashboard** - This is an option used by some plugin developers who replace the default Cacti `Console` with their own contents, for example the Intropage plugin. @@ -164,13 +188,34 @@ Those settings include: - **Force Connections over HTTPS** - Even if the web site allows http, redirect their browsers to HTTPS. -- **Content-Security Allow Unsafe JavaScript eval() calls** - Allow plugins to use - the JavaScript `eval()` function call, which is historically unsafe. However, - some older plugins require it. +- **Allow Unsafe Remote Data Collector HTTPS** - Allow the use of Self Signed + Certificates and allow the hostname of the Certificate to differ from that of + the Remote Data Collector. This option is enabled by default. + +- **Allow Unsafe Metacharacters in Data Input Methods** - When unchecked, the + default, Cacti restricts shell-style metacharacters such as quotation marks, + curly brackets, vertical bars, backslashes, and backticks in + **Data Input Methods**. Check it only if you have older **Data Input + Methods** that contain these characters and have not converted them to local + scripts in the `scripts` directory. + +- **Content-Security Script Policy** - Controls the `script-src` Content + Security Policy. The options are **Allow Non-Nonced Inline JavaScript**, + **Allow both unsafe-eval and Non-Nonced Inline JavaScript**, and + **Nonce Mode - Reporting Only**. In the nonce mode, Cacti Plugins that use + inline JavaScript must include the nonce attribute from Cacti's built-in + function `CactiSecureHeaders::getNonceAttribute()`. - **Content-Security Alternate Sources** - If for some reason your Cacti site requires content from a CDN or a third party site, you can include a space - delimited list of URLs that will be able to be traversed for Cacti content. + delimited list of domain names that will be permitted to be accessed outside + of the Web Server itself. Sources can include wildcards, for example + `*.mydomain.com`, or a protocol, for example `https://*.example.com`. These + Alternate Sources include Image, CSS and JavaScript types only. + +- **CSP Violation Report URI** - The URL where browsers POST CSP violation + reports in the nonce modes. Leave it empty to use `csp_report.php` in the + Cacti installation. ## Automation Settings @@ -193,8 +238,8 @@ Those settings include: - **Automation Notification From Name** - The `From Name` on the Automation Email. -- **Automation From Email** - The `From Email` such as noreply@cacti.net that - will be used for Automation notifications. +- **Automation Notification From Email** - The `From Email` such as + noreply@cacti.net that will be used for Automation notifications. ## Graph Template Defaults @@ -202,11 +247,18 @@ This is where Cacti obtains defaults for **Graph Templates**. ![Graph Template Defaults](images/settings-general-graph-template-defaults.png) +- **Graph Template Test Data Source** - Check this to test the **Data Sources** + prior to their creation for new and newly imported **Graph Templates**. With + test **Data Sources** enabled, if a **Data Source** does not return valid + data, the **Graph** will not be created. Note that a long running script as + a **Data Source** increases the time to create **Graphs**. + - **Graph Template Image Format** - When creating a new **Graph Template** what `Image Format` should be used. There is either: - **SVG** - Scalable Vector Graphs (preferred, though larger size) - **PNG** - Petri Net Graphs (backup, smaller but loose resolution when scaled) + **SVG** - Scalable Vector Graphics (preferred, though larger size) + **PNG** - Portable Network Graphics (backup, smaller but loose resolution + when scaled) - **Graph Template Height** - The height in pixels of the Graph Canvas for new **Graph Templates** diff --git a/Settings-Mail-Reporting-DNS.md b/Settings-Mail-Reporting-DNS.md index 0e037e8..fc5a1c6 100644 --- a/Settings-Mail-Reporting-DNS.md +++ b/Settings-Mail-Reporting-DNS.md @@ -13,6 +13,11 @@ below show an example of how this might be setup. ![PHP Mail Function](images/settings-mrd-urls.png) +The setting is **Server Base URL**. This is the server location that will be +used for links to the Cacti site. This should include the subdirectory if Cacti +does not run from the root folder. The default is `http://` followed by the host +name of the server and the Cacti URL path. + ## Mail Settings Not only Cacti, but several plugins today are still leveraging Email for end @@ -54,12 +59,13 @@ Those settings include: is working. The Email that you put on this line will receive the test Email. - **Mail Services** - This is where you pick one of the three options above for - providing Mail Services. + providing Mail Services. The drop-down lists them as `PHP Mail() Function`, + `Sendmail` and `SMTP`. `Sendmail` is not offered when Cacti runs on Windows. - **Ping Mail Server** - When using the SMTP Mail Services provider, Cacti can first ping the Email Server to ensure that it's operational before sending - Emails. If the Email Server does not respond, Cacti will issue a warning and - continue operations. + 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 @@ -132,7 +138,8 @@ 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. -The image below shows the two settings. +The settings are **Primary DNS IP Address**, **Secondary DNS IP Address** and +**DNS Timeout**, which is in milliseconds and defaults to 500. ![DNS Options](images/settings-mrd-dns-options.png) diff --git a/Settings-Paths.md b/Settings-Paths.md index 0d64ed5..82943c2 100644 --- a/Settings-Paths.md +++ b/Settings-Paths.md @@ -20,7 +20,7 @@ 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. -## Required Tools Paths +## Required Tool Paths The image below shows Cacti's **Required Tool Paths** settings. diff --git a/Settings-Performance.md b/Settings-Performance.md index 16da58f..7fade95 100644 --- a/Settings-Performance.md +++ b/Settings-Performance.md @@ -49,13 +49,11 @@ The settings include: begin to be cleared. This setting works together with the **How Often** setting. -- **Maximum Data Sources Items Per Pass** - Cacti will count - the number of distinct data sources in your system, and then - divide it by this amount, and then make X number of passes - through the data. If you have 1M **Data Sources** and 100M - records in the cache, and set the setting to 100k, Cacti - will make 10 passes through the **Data Sources** each pass - processing approximately 10M cache entries. +- **Target Archive Rows Per Range** - The Boost updater assigns + complete Local Data IDs to contiguous ranges near this row count. + A single Local Data ID is never split, so a range can exceed the + target. Lower this value to reduce updater memory and query time. + The default value is 50000. - **Maximum Argument Length** - This is the longest RRDtool update command to use. Most Linux systems allow for a very @@ -72,14 +70,19 @@ The settings include: the primary Cacti admin. The process will be allowed to continue to run, but will issue a WARNING. -- **Enable direct population of poller_output_boost table** - - Originally a `spine` only setting, this setting is now - supported in both `spine` and `cmd.php`. Instead of having - to move records inside of the **Data Collector** Cacti - simply makes two writes, one into the main output table - and another into the boost table. Cacti has to write - to the primary output table as some plugins require that - data to be there immediately for fault management. +- **Maximum Failed RRDs Queued** - The maximum number of RRD + destinations retained for automatic Boost retry. Only the latest + complete failed update is retained per destination. The default is + 10000. + +- **Failed RRD Retry Budget** - The maximum number of queued RRD + destinations retried by one scheduled Boost run. The default is 100. + +- **Maximum Failed RRD Retries** - Queued RRD updates are explicitly + discarded after this many failed automatic attempts. The default is 8. + +- **Maximum Failed RRD Age** - The number of days to retain the latest + failed RRD update before it is explicitly discarded. The default is 7. - **Boost Debug Log** - If non-blank and points to a location that is writable, Cacti will log the RRDtool diff --git a/Settings-Poller.md b/Settings-Poller.md index f8bfdf5..a192abc 100644 --- a/Settings-Poller.md +++ b/Settings-Poller.md @@ -62,7 +62,7 @@ Those settings include: Poller tables. Since checking this have a very negative impact on polling performance, it's disabled by default. -- **Disable Decreasing OID Check** - This setting is for performing +- **Disable increasing OID Check** - This setting is for performing **Data Query** `Re-index` activities for tables whose OID's 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 @@ -90,6 +90,11 @@ Those settings include: setting when using Cacti's SNMP API natively in your scripts and Plugins. +- **Refresh Poller Table Per Cycle** - This setting is for single poller + systems only. It rebuilds the poller output table on each polling cycle to + prevent the memory table from swapping on very large systems with large + 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 **Remote Data Collectors**. So, essentially, they are self @@ -97,6 +102,26 @@ Those settings include: to upgrade the Central system before allowing the remotes to self upgrade. In those cases, you would enable this feature. +- **Enable MD5 and DES for SNMPv3** - The MD5 authentication and DES privacy + algorithms are legacy, weak, and unavailable on hardened (FIPS) PHP and + Net-SNMP builds. When this is disabled, the default, MD5 and DES are removed + from the SNMPv3 Authentication and Privacy Protocol drop-downs shown when + editing a **Device** and in the Automation SNMP Options, leaving only the + stronger SHA and AES algorithms. + +- **Enable Credential Cache** - Pre-harden and cache SNMPv3 credential + arguments once per credential change so that each poller process reuses them + instead of rebuilding them on every request. This is disabled by default. + It yields a marginal savings when collecting with SNMPv3 credentials through + the Net-SNMP binaries. + +## Periodic All Device Re-Index + +- **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`. + ## Background Timeout Settings The settings below limit how long Cacti background processes will be @@ -119,11 +144,18 @@ Those settings include: a bit of time. This setting is for the periodic collection and not the Daily process. -- **Background Commands Timeout** - Cacti will schedule some commands +- **RRDChecker Timeout** - The maximum amount of time Cacti's RRDfile + check script can run without generating a timeout error and being killed. + +- **Poller Commands Timeout** - Cacti will schedule some commands to be run offline during normal operations. This timeout affects those commands. Some activities include some aspects of re-indexing, removing old RRDfiles, etc. +- **Poller Command Concurrent Processes** - The number of concurrent Poller + Command processes. There will be at most one concurrent command per host + within the Poller Command pool. + - **Maintenance Background Generation Timeout** - Cacti performs daily maintenance at midnight every day. This maintenance can include: rotating logs, purging old logs, calculating **Data Source** @@ -161,7 +193,7 @@ Those settings include: > **NOTE**: The Thread setting only applies if you are using the > `spine` poller. It does not apply to the `cmd.php` poller. -## Additional Spine Parameters +## Additional Data Collector Settings These settings are Global Spine poller settings. They apply to all **Data Collectors**. An image of these settings can be seen below: @@ -170,10 +202,10 @@ These settings are Global Spine poller settings. They apply to all Those settings include: -- **Invalid Data Logging** - By default spine will only log the number - of errors it experienced for a **Device**. If you wish more - granularity you can change this settings to either `Summary` - or `Detailed` logging. +- **Invalid Data Logging** - By default, the setting is `None` and no + error counts are logged. You can change this setting to `Summary`, + which logs the number of output errors per **Device**, or `Detailed`, + 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 diff --git a/Settings-Spikes.md b/Settings-Spikes.md index 9b3f013..edeef63 100644 --- a/Settings-Spikes.md +++ b/Settings-Spikes.md @@ -23,9 +23,10 @@ below, you can see the default Settings for Cacti's Spike Killer GUI. Those settings include: -- **Removal Method** - Cacti supports both Variance and Standard Deviation - methods. When calculating those values, you have the ability to filter out - outliers such that they don't negatively impact those calculations. +- **Removal Method** - Cacti supports both Variance (labeled `Variance Based + w/Outliers Removed`) and Standard Deviation methods. When calculating those + values, you have the ability to filter out outliers such that they don't + negatively impact those calculations. - **Replacement Method** - When filling the Gap, what data point should be used. There is `Last Known Good`, which would be the last good known value, @@ -59,10 +60,28 @@ those settings. ![Settings Spike Kill Batch](images/settings-spikekill-batch.png) +Those settings include: + +- **Removal Schedule** - Do you wish to periodically remove spikes from your + graphs? If so, select the frequency. The options are `Disabled`, + `Every 6 Hours`, `Every 12 Hours`, `Once a Day` and `Every Other Day`, and the + default is `Disabled`. + +- **Base Time** - The Base Time for Spike removal to occur. For example, if you + use `12:00am` and you choose once per day, the batch removal would begin at + approximately midnight every day. The default is `12:00am`. + +- **Graph Templates to Spike Kill** - When performing batch spike removal, only + the templates selected will be acted on. + +- **Backup Retention** - When SpikeKill kills spikes in graphs, it makes a + backup of the RRDfile. How long should these backup files be retained? The + options are `Never` and a list of time spans, and the default is `3 Months`. + Of note is that first of all, the only **Graph Templates** that are shown are -**Graph Templates** that include `COUNTER` type **Data Sources**. It is also -worth noting that only **Data Query** type **Graph Templates** are supported as -of the current Cacti version. +**Graph Templates** that include `COUNTER` or `DERIVE` type **Data Sources**. +It is also worth noting that only **Data Query** type **Graph Templates** are +supported as of the current Cacti version. --- diff --git a/Settings-Visual.md b/Settings-Visual.md index 2551880..3f1ecf9 100644 --- a/Settings-Visual.md +++ b/Settings-Visual.md @@ -27,20 +27,27 @@ Those settings include: - **Rows Per Page** - For all standard Cacti tables, the number of rows to show per page. -- **Auto-complete Enabled** - Many drop-downs do not scale well with thousands +- **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 most large installs should leverage it. However, if you are a small install you can choose to disable auto-complete. -- **Auto-complete Rows** - The maximum rows to show in an auto-complete +- **Autocomplete Rows** - The maximum rows to show in an auto-complete response. +- **Select Search Minimum Rows** - The minimum number of options a drop-down + must have before Cacti shows a search box inside it. Choose `Always` to show + the search box regardless of the number of options. + - **Minimum Tree Width** - The minimum width of the Tree panel in Cacti - **Maximum Tree Width** - The maximum width of the Tree panel in Cacti. Above this width, tree items will scroll into the panel. -- **Strip Domains from Device Drop-downs** - Strip domain names from Device +- **Site Graph Template Expansion** - When viewing Site Trees, whether the + **Graph Templates** branch is included as a Site sub-branch. + +- **Strip Domains from Device Dropdowns** - Strip domain names from Device drop-downs to save horizontal filter space. ## Graph, Data Source, Data Query, Log Settings @@ -66,12 +73,12 @@ Those settings include: - **Default Log Tail Lines** - When viewing the Cacti Log, how many lines should appear per page. -- **Maximum number of rows per page** - The maximum number of regular expression - search matches to display, when searching. +- **Maximum number of rows per page** - The user defined number of lines for + the Cacti Log to tail when selecting `All lines`. - **Log Tail Refresh** - The frequency that the log pages should auto-refresh. -- **Exclusion Reg-ex** - This setting allows you to exclude certain log messages +- **Exclusion Regex** - This setting allows you to exclude certain log messages by regular expression from normal users. Expressions that include login log entries are common here to mask the login accounts of users. @@ -85,16 +92,19 @@ Those settings include: - **Enable Real-time Graphing** - Allow Realtime graphs to be used in Cacti. -- **Graph Time-span** - The default system level `Graph Timespan` use use when a +- **Graph Timespan** - The default system level `Graph Timespan` use use when a user opens a Realtime **Graph** for the first time. -- **Refresh Interval** - The default system level `Refresh Interval` for the - Realtime interface when a user first opens a Realtime **Graph**. +- **Minimum Refresh Interval** - The minimal supported time between **Graph** + updates in the Realtime interface. This value is also used to set certain + RRDfile attributes. -- **Cacti Directory** - Where should Cacti cache Realtime PNG's and RRDfiles. +- **Cache Directory** - Where should Cacti cache Realtime PNG's and RRDfiles. - **Custom Watermark** - A watermark that will appear on every Cacti **Graph** +- **Custom Date Format** - The format to use for `|date_time|` on a **Graph**. + - **Disable RRDtool Watermark** - Every RRDtool Graph includes a vertical watermark. This option allows you to disable that. @@ -103,10 +113,39 @@ Those settings include: settings include: Theme, or System. When choosing `System`, your settings page will expand where you will then have additional control. +- **Default Font** - When not using Theme based font control, the Pango + font-config font name to use for all **Graphs**. Optionally, you may leave it + blank and control font settings on a per object basis. + > **NOTE**: The RRDtool Watermark control requires a recent version of RRDtool, > such as the 1.7 release. If you attempt to use this setting and your > **Graphs** break, then upgrade RRDtool. +## Business Hours Settings + +These settings control the display of business hours on **Graphs**. + +Those settings include: + +- **Start of Business Day** - The time your business hours start. Format: + hh:mm. The default is `08:00`. + +- **End of Business Day** - The time your business hours end. Format: hh:mm. + The default is `18:00`. + +- **Hide Weekends** - Only show business hours during weekdays. This is + disabled by default. + +- **Show business hours** - Display business hours on rrd graphs. This is + disabled by default. + +- **Color to use for business hours** - The color to be shown for business + hours. The default is `ccccccff`. + +- **Maximum number of days to show business hours** - After this number of + days, the business hours will not be added to the graph. Recommended: 62 + days. The default is `62`. + ## Font Selection Options The image below shows the available Font Selection options when you override the diff --git a/Settings.md b/Settings.md index 91f4952..a96f17c 100644 --- a/Settings.md +++ b/Settings.md @@ -30,7 +30,7 @@ The standard Settings sub-tabs include: 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 three Classes of **Users**. + defines how **Users** are managed. There are four Classes of **Users**. They include: diff --git a/System-Utilities.md b/System-Utilities.md index 53aadd3..419fa43 100644 --- a/System-Utilities.md +++ b/System-Utilities.md @@ -9,7 +9,7 @@ cacti from this page you can do the following - View technical support information. -- Adjust log settings. +- Administer the Cacti log (Log Administration). - View the user log for audits. @@ -55,6 +55,41 @@ the recommendations are dynamic in that they change when more system resources a 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 + +`Console > Utilities > System Utilities > Rebuild Resource Cache` + +When operating multiple Data Collectors in Cacti, Cacti will attempt to +maintain state for key files on all Data Collectors. This includes all core, +non-install related website and plugin files. When you force a Resource Cache +rebuild, Cacti will clear the local Resource Cache, and then rebuild it at the +next scheduled poller start. This will trigger all Remote Data Collectors to +recheck their website and plugin files for consistency. + +### Purge Data Source Statistics + +`Console > Utilities > System Utilities > Purge Data Source Statistics` + +This menu pick will purge all existing Data Source Statistics from the +Database. If Data Source Statistics is enabled, the Data Sources Statistics +will start collection again on the next Data Collector pass. + +### SNMP Agent utilities + +These entries appear under `Console > Utilities > System Utilities` when SNMP +Agent Support is enabled in the Poller settings. + +- **View SNMP Agent Cache** - This shows all objects being handled by the SNMP + Agent. +- **Rebuild SNMP Agent Cache** - The SNMP cache will be cleared and + re-generated if you select this option. Note that it takes another poller run + to restore the SNMP cache completely. +- **View SNMP Agent Notification Log** - This menu pick allows you to view the + latest events SNMP Agent has handled in relation to the registered + notification receivers. +- **SNMP Notification Receivers** - Allows Administrators to maintain SNMP + notification receivers. + ### RRD cleaner `Console > utilities > System Utilities > RRDfile Cleaner` @@ -102,7 +137,7 @@ included in your version. ### View user login history -`Console > utilities > System Utilities > View user Log` +`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 @@ -123,9 +158,9 @@ The average boost record size ![System Utilities](images/system-utilities-boost2.png) -### Viewing the Data Source Query Cache +### Viewing the Data Query Cache -`Console > Utilities > System Utilities > View Data Source Query Cache` +`Console > Utilities > System Utilities > View Data Query Cache` 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, @@ -141,10 +176,10 @@ This is the data that is being passed to the poller each time it runs. ![System Utilities](images/system-utilities-viewpcache.png) -### Viewing System log via System Utilities +### Viewing the Cacti log via Log Administration -You are able to view the system log via the System utilities -page this will show the RAW log +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 will show the device ID rather than the Device name this is the same view as you reading the log in the OS diff --git a/User-Domains.md b/User-Domains.md index 726a797..5e86bcc 100644 --- a/User-Domains.md +++ b/User-Domains.md @@ -10,7 +10,7 @@ will enherit the Template accounts 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 the Domains plugin. +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 @@ -30,7 +30,7 @@ If a normal user tries logging as an Administrator, their login will be blocked and so on. The first image shows the list of domains, which domain is -primary, and the actions you can take on a Domain. +the default, and the actions you can take on a Domain. ![User Domains](images/user-domains.png) diff --git a/User-Management.md b/User-Management.md index ea4ac1c..960b8ed 100644 --- a/User-Management.md +++ b/User-Management.md @@ -29,7 +29,7 @@ disabling "guest" (Unauthenticated) access to Cacti. ## Editing an existing User -To edit an existing user, select the User Management item under the Utilities +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. @@ -54,21 +54,38 @@ Each of these items are described in this section of the manual. (Optional) You can use this field as a more descriptive identifier for the user. It is currently only used for display on the user management page. +- **_Email Address_** + + (Optional) An Email Address where the user can be reached. + - **_Password_** Enter the password for the user twice, once in each text box. Keep in mind that passwords are case sensitive and the password will remain unchanged if the boxes are both left empty. +- **_Enabled_** + + Determines if the user is able to login. + +- **_Locked_** + + Determines if the user account is locked. + - **_Account Options_** - There are two account related options that can be set for each user. + There are three account related options that can be set for each user. - - **_User Must Change Password at Next Login_** + - **_Must Change Password at Next Login_** Force a password change immediately after the user logs in. - - **_Allow this User to Keep Custom Graph Settings_** + - **_Change Password_** + + Allows the user to change their own password. This option is on by + default. + + - **_Maintain Custom Graph and User Settings_** Allows user to maintain their own custom graph viewing settings. @@ -132,7 +149,7 @@ in general, these permissions do not apply to editing graphs. You can edit a ![User Realm Management](images/users-permissions-graph.png) -Cacti supports two Graph Permission models. There is the `Permissive` Graph +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 @@ -146,10 +163,18 @@ the **Device** and **Graph Template**. Using this permission model requires the **Users** and **User Groups** have much more specific access if they want to gain access to various device Graphs. +The `Permissive` and `Restrictive` models have scalability problems for very +large installs, so two additional models are available. With `Device Based`, +access to a **Device** grants access to its **Graphs**. With `Graph Template +Based`, access to a **Graph Template** grants access to all **Device Graphs** +of that **Graph Template**. When `Device Based` is selected, the **Template +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. -In addition to the `Permissive` and `Restrictive` models, which can be set from +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 @@ -227,7 +252,7 @@ see those permission changes until their next login. ## Creating a New User -To create a new user, select the User Management item under the Utilities +To create a new user, select the Users item under the Configuration heading on the Cacti menu. Once at the user management screen, click the plus (+) glyph. @@ -314,11 +339,11 @@ would like to copy over an existing user, use Batch Copy. ![Enable/Disable Users Part 1](images/users-enable-disable1.png) -To enable or disable a set of or a single user, select the User Management item -under the Utilities heading on the Cacti menu. Once at the **Users** interface, -highlight the **User** you would like to `Enable` or `Disable` and select either -`Enable` or `Disable` from the `Choose an action` drop down selection box, click -`Go` to continue. +To enable or disable a set of or a single user, select the Users item +under the Configuration heading on the Cacti menu. Once at the **Users** +interface, highlight the **User** you would like to `Enable` or `Disable` and +select either `Enable` or `Disable` from the `Choose an action` drop down +selection box, click `Go` to continue. ![Enable/Disable Users Part 2](images/users-enable-disable2.png) @@ -328,8 +353,8 @@ perform the action. Disabling your own account is not permitted. ## Batch Copy Users Batch Copy is a helpful utility that helps Cacti Administrators maintain users. -Because Cacti does not yet support groups, it is important that there is some -way to mass update users. This what Batch Copy does for you. +It is often necessary to mass update users. This is what Batch Copy does for +you. ![Batch Copy Users Part 1](images/users-batch-copy1.png)