mirror of
https://github.com/Cacti/documentation.git
synced 2026-12-06 15:13:53 +09:00
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:
1 parent
c53d1ac3a2
commit
741ad51355
100 files changed
+1574
-1467
No files matched your search
@@ -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.
|
||||
|
||||
`<path_cacti>/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 `<path_cacti>` 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:
|
||||
|
||||

|
||||
|
||||
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:
|
||||
|
||||

|
||||
|
||||
@@ -61,7 +61,7 @@ the current device. Click create to see:
|
||||
|
||||

|
||||
|
||||
At least, define the **Output Fields**. Again, click **Add** as described above:
|
||||
Finally, define the **Output Fields**. Again, click **Add** as described above:
|
||||
|
||||

|
||||
|
||||
@@ -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:
|
||||
|
||||

|
||||
@@ -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:
|
||||
|
||||

|
||||
@@ -129,7 +129,7 @@ Format** that will be shown underneath the **Graph** as a legend. Again,
|
||||

|
||||
|
||||
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:
|
||||
|
||||

|
||||
@@ -155,7 +155,7 @@ drop down. Click the plus (+) glyph to see:
|
||||

|
||||
|
||||
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 `<host>`:
|
||||
|
||||

|
||||
|
||||
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
|
||||
|
||||

|
||||
|
||||
@@ -345,7 +345,7 @@ Now udpOutDatagrams:
|
||||

|
||||
|
||||
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
|
||||
|
||||

|
||||
@@ -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.
|
||||
|
||||

|
||||
|
||||
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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user