docs: [1.2.x] refresh the front page, correct grammar and Markdown, and align plugin pages with their READMEs (#273)

* docs: [1.2.x] refresh the manual front page

The front page opened with version notes before saying what Cacti is,
used headings as sentences in the credits, and its table of contents
listed seven sections while the page has ten.

Open with a short description and a getting-started sequence, link the
website and forums, give the credits real headings, and list every
section in the table of contents in page order. Record Jeff Pasnak
under In Memoriam with a link to the 1.2.31 release announcement.
Correct label typos and wrap long entries with reference links.

Existing section anchors are unchanged, and every page is still linked.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] fix typos, unrendered headings and forum links

A check of every page linked from the front page found misspellings in
eleven pages, three Mactrack headings written without a space after the
hashes, which render as plain text, and two forum links still using
http.

Correct the spellings, add the missing space so the headings render,
and point the forum links at https, where they already redirect.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] align the plugin pages with the plugin READMEs

The supported plugins list and the Syslog and Mactrack pages had drifted
from the README and INFO files in the plugin repositories.

Update the descriptions that the READMEs contradict: Monitor's Thold
requirement, the Router Configs transfer methods, the ReportIt release
and Cacti versions, the WMI collection methods and its development
status, and NUT support in Apcupsd. Add the Syslog requirements, the
upgrade procedure, the dedicated database settings and the remote
collector settings, and correct the database grant and a misplaced
code fence. Add the Mactrack requirements and a short section on
history partitioning and ignored ports that links to the README.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] correct grammar, spelling and broken Markdown

A read of every page linked from the front page found grammar and
spelling errors throughout, and Markdown that does not render as
intended.

Correct grammar, spelling, punctuation and product-name capitalization
in 95 pages without changing headings, code blocks, link targets or
the meaning of the text. Repair the Markdown defects: a code fence in
the SSH tunnel how-to that never closed, malformed bold markers in the
user management and device defaults pages, a release notes table with
no blank line before it, split rows in the tree sorting table, and
LDAP list items missing their markers. Correct three interface labels
quoted with typos.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs: [1.2.x] correct statements that differ from the 1.2.x source

Reviewers of the linked pages flagged statements that looked wrong.
Each was compared with the Cacti 1.2.x source at 1523aa04b, and only
those the source or the page itself settles are changed.

Correct interface labels and option names (Index Count Changed,
Permissive, Not Selected, Utilities, the BCC description, the gear
icon for plugin install), the default Maximum Value of U for a new
data source item, the sysDescr object name, the PHP floor wording in
the requirements table, the Mactrack wildcard character and the
snmptrapd -On option. Repair cross-references, example values that
disagree with their commands, two table captions, a split list and
several sentences with missing words.

Statements the source does not settle are left as written.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
This commit is contained in:
Thomas Vincent authored and GitHub committed 2026-11-24 00:58:06 -08:00
1 parent c53d1ac3a2
commit 741ad51355
100 files changed
+1574 -1467

No files matched your search

+20 -20
View File
@@ -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:
<script_path>|path_php_binary| -q |path_cacti|/scripts/myfucntion.php</script_path>
```
to simply the following:
simply to the following:
```xml
<script_path>|path_cacti|/scripts/ss_myfunction.php</script_path>
@@ -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
`<path_cacti>/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" + `<CR>` at the **PHP
When you have finished your testing, simply type "quit" + `<CR>` 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 <path_cacti>/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 <CR>` 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