docs(cli): [1.2.x] correct command line, poller and operations pages against the source (#264)

* docs(cli): [1.2.x] correct command line options against the scripts

Replace the pasted --help output for rebuild_poller_cache, poller_reindex_hosts, poller_output_empty, poller_graphs_reapply_names, copy_user, add_device, add_data_query, add_graph_template, add_graphs, add_tree and add_perms with the output of the 1.2.x scripts, remove the add_tree --rra-id and --list-rras documentation, fix the splice_rrd.php name and list the cli scripts that were missing from the tables.

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

* docs(poller): [1.2.x] correct Spine, script server and boost details against the source

Script server pool size is 1 to 15, Data Collector and Device field names follow the 1.2.x forms, php_servers is a system setting, and poller_output is created as a MEMORY table.

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

* docs: [1.2.x] correct setting names, menu paths and special data source names

Align Debugging, FAQ, Spikekill and RRDtool feature pages with the 1.2.x setting labels, menu entries, CDEF special data source names and the Spikekill per RRA kill limit.

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-23 15:12:33 -05:00
1 parent c4be40ab53
commit cdcdeb2e03
8 files changed
+281 -259

No files matched your search

+3 -2
View File
@@ -132,8 +132,9 @@ ALTER TABLE poller_output_boost,
ENGINE=memory;
```
As previously mentioned, its also important that the `poller_output` table is
converted to memory, eliminate any disk I/O related to poller updates.
As previously mentioned, its 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.
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`
+216 -202
View File
@@ -15,35 +15,51 @@ briefly.
## Automation Scripts
| Script | Category | Description |
| ---------------------- | ----------- | ----------------------------------------------------------------------------------------------- |
| add_device.php | Automation | Allows adding a Device to Cacti. Most device options are included. Some plugin options may not. |
| change_device.php | Automation | Allows editing device details such as IP/Poller association |
| add_data_query.php | Automation | Allows adding a Data Query to Cacti. |
| 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. |
| copy_user.php | Maintenance | Allows creating new users from Templates |
| Script | Category | Description |
| -------------------------- | ----------- | ----------------------------------------------------------------------------------------------- |
| add_device.php | Automation | Allows adding a Device to Cacti. Most device options are included. Some plugin options may not. |
| change_device.php | Automation | Allows editing device details such as IP/Poller association |
| add_data_query.php | Automation | Allows adding a Data Query to Cacti. |
| 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. |
| 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 |
## 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. |
| 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. |
| 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. |
| 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. |
| batchgapfix.php | Maintenance | Fills gaps in Graphs over a time range, using parallel threads. |
| float_rrdfiles.php | Maintenance | Floats a range of data in selected RRDfiles using the RRDtool dump/import utility. |
| host_update_template.php | Maintenance | Updates Cacti Devices with the latest Device Template. |
| poller_data_sources_reapply_names.php | Maintenance | Recalculates Data Source names for the selected Data Templates. |
| poller_replicate.php | Maintenance | Fully synchronizes Remote Data Collectors. |
| refresh_csrf.php | Maintenance | Updates the csrf_secret() key of the Cacti system. |
| remove_broken_graphs.php | Maintenance | Reports on or removes Graphs that lack Data Sources. |
| remove_graphs.php | Maintenance | Removes Graphs selected by Graph Template, Device Template, Device or Graph name expression. |
| removespikes.php | Maintenance | Removes spikes from an RRDfile. See [Spikekill](Spikekill.md). |
| reorder_data_query.php | Maintenance | Re-orders Data Queries for a Device or for all Devices in batch mode. |
| update_heartbeat.php | Maintenance | Updates RRDfile heartbeats and the Cacti database to match. |
## Repair Scripts
| Script | Category | Description |
| ------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| poller_output_empty.php | Repair | Removes bad entries from Cacti's poller output table. |
| 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_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. |
| Script | Category | Description |
| ------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| poller_output_empty.php | Repair | Removes bad entries from Cacti's poller output table. |
| 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_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. |
## Repair/Migration Scripts
@@ -51,13 +67,15 @@ briefly.
| ------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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. |
| convert_tables.php | Repair/Migration | Convert all tables from their current form to the Cacti preferred table type, collation and charset |
| splice_rra.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. |
| 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. |
## Install/Upgrade Scripts
| Script | Category | Description |
| ----------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| import_package.php | Install/Upgrade | Import a signed Cacti `.xml.gz` package, including its template definitions and embedded resource files. Run on the main collector; see [Template Import](Import-Template.md). |
| import_package.php | Install/Upgrade | Import a signed Cacti `.xml.gz` package, including its template definitions and embedded resource files. Run on the main collector; see [Template Import](Import-Template.md). |
| import_template.php | Install/Upgrade | Import a Cacti Template XML file from the command line. |
| 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. |
@@ -102,19 +120,31 @@ Localhost - mtaReceivedVolume SNMP Version: 1, Community: somesecret, OID: .1.
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
```console
shell>php -q rebuild_poller_cache.php --help
Cacti Rebuild Poller Cache Script 1.0, Copyright 2004-2026 - The Cacti Group
Cacti Rebuild poller cache Tool, Version 1.2.x Copyright (C) 2004-2026 The Cacti Group
usage: rebuild_poller_cache.php [-d] [-h] [--help] [-v] [--version]
usage: rebuild_poller_cache.php [--host-id=N] [--host-template-id=N] [--data-template-id=N] [--debug]
Cacti's repopulate poller cache tool. This CLI script will
repopulate poller cache for all or specified hosts.
This utility will run in parallel with the given number of threads,
Optional:
--threads=N - The number of threads to use to repopulate, default = 5
--host-id=N - Run for a specific Device
--host-template-id=N - Run for a specific Device Template
--data-template-id=N - Run for a specific Data Template
--debug - Display verbose output during execution
System Controlled:
--type - The type and subtype of the rebuild poller cache process
--child - The thread id of the child process
-d - Display verbose output during execution
-v --version - Display this help message
-h --help - Display this help message
```
Debug mode lists the data sources items that are worked upon.
@@ -181,17 +211,15 @@ the script with the parameter `--help` yields
```console
shell>php -q poller_reindex_hosts.php --help
Cacti Reindex Host Script 1.2, Copyright 2004-2026 - The Cacti Group
Cacti Reindex Host Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: poller_reindex_hosts.php --id=[host_id|all] [--qid=[ID|all]]
[--host-descr=[description]] [--debug]
usage: poller_reindex_hosts.php --id=[host_id|All] [--qid=[ID|All]] [--host-descr=[description]]
[-d] [-h] [--help] [-v] [--version]
--id=host_id - The host_id to have data queries reindexed or 'All' to reindex all hosts
--qid=query_id - Only index on a specific data query id; defaults to 'All'
--id=host_id - The host_id to have data queries reindexed or 'all' to reindex all hosts
--qid=query_id - Only index on a specific data query id; defaults to 'all'
--host-descr=description - The host description to filter by (SQL filters acknowledged)
--force - Force Graph and Data Source Suggested Name Re-mapping for all items
--debug - Display verbose output during execution
-v --version - Display this help message
-h --help - Display this help message
```
Running it in debug mode for the host with `id=2` may yield
@@ -229,7 +257,7 @@ 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
`--host-descr=[host description]`. It is allowed to apply an SQL filter
expression for the description like `--qid=some%descr`. Use this parameter in
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:
```console
@@ -261,12 +289,12 @@ parameter `--help` yields
```console
shell>php -q poller_output_empty.php --help
Cacti Empty Poller Output Table Script 1.0, Copyright 2004-2026 - The Cacti Group
Cacti Process Poller Output Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: poller_output_empty.php [-h] [--help] [-v] [--version]
usage: poller_output_empty.php
A utility to process the poller output table. This tool is deprecated but should work.
-v --version - Display this help message
-h --help - Display this help message
```
You see, no parameter is required for operating successfully. Under normal
@@ -321,15 +349,20 @@ poller_graphs_reapply_names.php drops in. Calling the script with the parameter
```console
shell>php -q poller_graphs_reapply_names.php --help
Cacti Reapply Graph Names Script 1.0, Copyright 2004-2026 - The Cacti Group
Cacti Reapply graph Names Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: poller_graphs_reapply_names.php -id=[host_id|All][host_id1|host_id2|...] [-s=[search_string] [-d] [-h] [--help] [-v] [--version]
usage: poller_graphs_reapply_names.php --host-id=<id|all|N1,N2,...> [--filter=<string>] [--debug]
A utility to reapply Cacti Graph naming rules to existing Graphs in bulk.
Required:
--host-id=id|all|N1,N2,... - The device id, 'all' or a comma delimited list of ids
--id and -id - Aliases for --host-id
Optional:
--filter=string - A Graph Template name or Graph Title to search for
--debug - Display verbose output during execution
-id=host_id - The host_id or 'All' or a pipe delimited list of host_id's
-s=search_str - A graph template name or graph title to search for
-d - Display verbose output during execution
-v --version - Display this help message
-h --help - Display this help message
```
Assume a situation, where the suggested names where changed for the standard
@@ -337,7 +370,7 @@ 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
```console
shell>php -q poller_graphs_reapply_names.php -id=All -d -s="Used space"
shell>php -q poller_graphs_reapply_names.php --host-id=all -d --filter="Used space"
WARNING: Do not interrupt this script. Interrupting during rename can cause issues
DEBUG: There are '6' Graphs to rename
DEBUG: Graph Name 'Localhost - Used Space - Memory Buffers' starting
@@ -354,8 +387,8 @@ 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 `-s=` option is not case
sensitive.
Notice the miss-spelling of the word “Space”. The `--filter` option (also
accepted as `-s`) is not case sensitive.
## Copy Local Cacti Users
@@ -366,8 +399,8 @@ Calling the script with the parameter `--help` yields
```console
shell>php -q copy_user.php --help
Cacti Copy User Utility, Version 1.2.0, Copyright (C) 2004-2026 The Cacti Group
usage: copy_cacti_user.php <template user> <new user>
Cacti Copy User Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: copy_user.php <template user> <new user>
A utility to copy on local Cacti user and their settings to a new one.
@@ -404,42 +437,53 @@ whole list of features it provides. Calling the script with the parameter
```console
shell>php -q add_device.php --help
Add Device Script 1.0, Copyright 2004-2026 - The Cacti Group
A simple command line utility to add a device in Cacti
Cacti Add Device Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: add_device.php --description=[description] --ip=[IP] --template=[ID] [--notes="[]"] [--disable]
[--avail=[ping]] --ping_method=[icmp] --ping_port=[N/A, 1-65534] --ping_retries=[2]
[--version=[1|2|3]] [--community=] [--port=161] [--timeout=500]
[--username= --password=] [--authproto=] [--privpass= --privproto=] [--context=]
[--quiet]
[--poller=[id]] [--site=[id] [--external-id=[S]] [--proxy] [--threads=[1]
[--avail=[ping]] --ping_method=[icmp] --ping_port=[N/A, 1-65534] --ping_timeout=[N] --ping_retries=[2]
[--version=[0|1|2|3]] [--community=] [--port=161] [--timeout=500]
[--username= --password=] [--authproto=] [--privpass= --privproto=] [--context=] [--engineid=]
[--quiet]
Required:
--description the name that will be displayed by Cacti in the graphs
--ip self explanatory (can also be a FQDN)
Optional:
--template 0, is a number (read below to get a list of templates)
--notes '', General information about this host. Must be enclosed using double quotes.
--disable 0, 1 to add this host but to disable checks and 0 to enable it
--avail pingsnmp, [ping][none, snmp, pingsnmp]
--ping_method tcp, icmp|tcp|udp
--ping_port '', 1-65534
--ping_retries 2, the number of time to attempt to communicate with a host
--version 1, 1|2|3, snmp version
--community '', snmp community string for snmpv1 and snmpv2. Leave blank for no community
--port 161
--timeout 500
--username '', snmp username for snmpv3
--password '', snmp password for snmpv3
--authproto '', snmp authentication protocol for snmpv3
--privpass '', snmp privacy passphrase for snmpv3
--privproto '', snmp privacy protocol for snmpv3
--context '', snmp context for snmpv3
Required:
--description the name that will be displayed by Cacti in the graphs
--ip self explanatory (can also be a FQDN)
List Options:
--list-host-templates
--list-communities
--quiet - batch mode value return
Optional:
--proxy if specified, allows adding a second host with same ip address
--template 0, is a number (read below to get a list of templates)
--location '', The physical location of the Device.
--notes '', General information about this host. Must be enclosed using double quotes.
--external-id '', An external ID to align Cacti devices with devices from other systems.
--disable 0, 1 to add this host but to disable checks and 0 to enable it
--poller 0, numeric poller id that will perform data collection for the device.
--site 0, numeric site id that will be associated with the device.
--threads 1, numeric number of threads to poll device with.
--avail pingsnmp, [ping][none, snmp, pingsnmp, pingorsnmp]
--ping_method tcp, icmp|tcp|udp
--ping_port '', 1-65534
--ping_retries 2, the number of time to attempt to communicate with a host
--ping_timeout N, the ping timeout in milliseconds. Defaults to database setting.
--version 1, 0|1|2|3, snmp version. 0 for no snmp
--community '', snmp community string for snmpv1 and snmpv2. Leave blank for no community
--port 161
--timeout 500
--username '', snmp username for snmpv3
--password '', snmp password for snmpv3
--authproto '', snmp authentication protocol for snmpv3
--privpass '', snmp privacy passphrase for snmpv3
--privproto '', snmp privacy protocol for snmpv3
--context '', snmp context for snmpv3
--engineid '', snmp engineid for snmpv3
--max_oids 10, 1-60, the number of OIDs that can be obtained in a single SNMP Get request
--bulk_walk -1, 1-60, the bulk walk chunk size that will be used for bulk walks. Use -1 for auto-tune.
List Options:
--list-host-templates
--list-communities
--quiet - batch mode value return
```
Wow, that's quite a lot of options. To better understand it's use, let's first
@@ -455,7 +499,7 @@ The command lists the templates installed in your database. Use those
IDs rather than assuming the IDs from another installation.
Why are those `Host Templates` of such importance for this script? Well, when
using this script to add a new device, there are 3 required parameters. The
using this script to add a new device, there are 2 required parameters. The
`description` and the `device ip address` are of course left to you. But for
assigning the correct `Host Template Id`, you should first know the correct id
of that very parameter. For the purpose of this chapter we assume to add a
@@ -463,8 +507,9 @@ device that will be associated to a `ucd/net SNMP Host`, so the id of `3` is
required.
If you do not want to associate the host to any `Host Template Id`, known as
host template None, either provide the parameter `--template=0` or omit this
parameter.
host template None, provide the parameter `--template=0`. If you omit this
parameter, the script uses the default Device Template from the `Device
Defaults` settings.
### List all Community Strings
@@ -520,24 +565,23 @@ yields
```console
shell>php -q add_data_query.php --help
Add Data Query Script 1.0, Copyright 2004-2026 - The Cacti Group
A simple command line utility to add a data query to an existing device in Cacti
Cacti Add Data Query Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: add_data_query.php --host-id=[ID] --data-query-id=[dq_id] --reindex-method=[method] [--quiet]
Required:
--host-id the numerical ID of the host
--data-query-id the numerical ID of the data_query to be added
--reindex-method the reindex method to be used for that data query
0|None = no reindexing
1|Uptime = Uptime goes Backwards
2|Index = Index Count Changed
3|Fields = Verify all Fields
Required Options:
--host-id the numerical ID of the host
--data-query-id the numerical ID of the data_query to be added
--reindex-method the reindex method to be used for that data query
0|None = no reindexing
1|Uptime = Uptime goes Backwards
2|Index = Index Count Changed
3|Fields = Verify all Fields
List Options:
--list-hosts
--list-data-queries
--quiet - batch mode value return
--list-hosts
--list-data-queries
--quiet - batch mode value return
If the data query was already associated, it will be reindexed.
```
@@ -598,21 +642,19 @@ the whole list of features it provides. Calling the script with the parameter
```console
shell>php -q add_graph_template.php --help
Add Graph Template Script 1.0, Copyright 2004-2026 - The Cacti Group
A simple command line utility to associate a graph template with a host in Cacti
Cacti Add Graph Template Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: add_graph_template.php --host-id=[ID] --graph-template-id=[ID]
[--quiet]
[--quiet]
Required:
--host-id the numerical ID of the host
--graph_template-id the numerical ID of the graph template to be added
--host-id the numerical ID of the host
--graph-template-id the numerical ID of the graph template to be added
List Options:
--list-hosts
--list-graph-templates
--quiet - batch mode value return
--list-hosts
--list-graph-templates
--quiet - batch mode value return
```
Let's first stick to the listing options
@@ -662,44 +704,46 @@ the script with the parameter `--help` yields
```console
shell>php -q add_graphs.php
Add Graphs Script 1.2, Copyright 2004-2026 - The Cacti Group
A simple command line utility to add graphs in Cacti
Cacti Add Graphs Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: add_graphs.php --graph-type=[cg|ds] --graph-template-id=[ID]
--host-id=[ID] [--graph-title=title] [graph options] [--force] [--quiet]
--host-id=[ID] [--graph-title=title] [graph options] [--force] [--quiet]
For cg graphs:
[--input-fields="[data-template-id:]field-name=value ..."] [--force]
Cacti utility for creating graphs via a command line interface. This utility can
create both Data Query (ds) type Graphs as well as Graph Template (cg) type graphs.
--input-fields If your data template allows for custom input data, you may specify that
here. The data template id is optional and applies where two input fields
have the same name.
--force If you set this flag, then new cg graphs will be created, even though they
may already exist
For Non Data Query (cg) Graphs:
[--input-fields="[data-template-id:]field-name=value ..."] [--force]
For ds graphs:
--snmp-query-id=[ID] --snmp-query-type-id=[ID] --snmp-field=[SNMP Field] --snmp-value=[SNMP Value]
--input-fields If your data template allows for custom input data, you may specify that
here. The data template id is optional and applies where two input fields
have the same name.
--force If you set this flag, then new cg graphs will be created, even though they
may already exist
[--graph-title=] Defaults to what ever is in the graph template/data-source template.
For Data Query (ds) Graphs:
--snmp-query-id=[ID] --snmp-query-type-id=[ID] --snmp-field=[SNMP Field]
--snmp-value=[SNMP Value] | --snmp-value-regex=[REGEX]
[--graph-title=S] Defaults to what ever is in the Graph Template/Data Template.
[--reindex-method=N] The reindex method to be used for that data query.
NOTE: If Data Query is already associated, the reindex method will NOT be changed.
Valid --reindex-methods include
0|None = No reindexing
1|Uptime = Uptime goes Backwards (Default)
2|Index = Index Count Changed
3|Fields = Verify all Fields
NOTE: You may supply multiples of the --snmp-field and --snmp-value | --snmp-value-regex arguments.
[--reindex-method=] the reindex method to be used for that data query
if data query already exists, the reindex method will not be changed
0|None = no reindexing
1|Uptime = Uptime goes Backwards (Default)
2|Index = Index Count Changed
3|Fields = Verify all Fields
List Options:
--list-hosts
--list-graph-templates [--host_template=[ID]]
--list-input-fields --graph-template-id=[ID]
--list-snmp-queries
--list-query-types --snmp-query-id [ID]
--list-snmp-fields --host-id=[ID] [--snmp-query-id=[ID]]
--list-snmp-values --host-id=[ID] [--snmp-query-id=[ID]] --snmp-field=[Field]
'cg' graphs are for things like CPU temp/fan speed, while
'ds' graphs are for data-source based graphs (interface stats etc.)
--list-hosts
--list-graph-templates [--host-template-id=[ID]]
--list-input-fields --graph-template-id=[ID]
--list-snmp-queries
--list-query-types --snmp-query-id [ID]
--list-snmp-fields --host-id=[ID] [--snmp-query-id=[ID]]
--list-snmp-values --host-id=[ID] [--snmp-query-id=[ID]] --snmp-field=[Field]
```
Like the graph creation from the console, this task is split into two different
@@ -909,41 +953,40 @@ parameter `--help` yields
```console
shell>php -q add_tree.php --help
Add Tree Script 1.0, Copyright 2004-2026 - The Cacti Group
A simple command line utility to add objects to a tree in Cacti
Cacti Add Tree Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: add_tree.php --type=[tree|node] [type-options] [--quiet]
Tree options:
--name=[Tree Name]
--sort-method=[manual|alpha|natural|numeric]
--name=[Tree Name]
--sort-method=[manual|alpha|natural|numeric]
Node options:
--node-type=[header|host|graph]
--tree-id=[ID]
[--parent-node=[ID] [Node Type Options]]
--node-type=[header|site|host|graph]
--tree-id=[ID]
[--parent-node=[ID] [Node Type Options]]
Header node options:
--name=[Name]
--name=[Name]
Site node options:
--site-id=[ID]
Host node options:
--host-id=[ID]
[--host-group-style=[1|2]]
(host group styles:
1 = Graph Template,
2 = Data Query Index)
--host-id=[ID]
[--host-group-style=[1|2]]
(host group styles:
1 = Graph Template,
2 = Data Query Index)
Graph node options:
--graph-id=[ID]
[--rra-id=[ID]]
--graph-id=[ID]
List Options:
--list-hosts
--list-trees
--list-nodes --tree-id=[ID]
--list-rras
--list-graphs --host-id=[ID]
--list-sites
--list-hosts
--list-trees
--list-nodes --tree-id=[ID]
--list-graphs --host-id=[ID]
```
### List Hosts
@@ -986,23 +1029,6 @@ Host 9 gandalf Graph Template
Host 12 gandalf Graph Template
```
### List RRAs
For special tree add options, you will require the id of the RRA definition to
completely specify the add request. That's why the corresponding `--list-rras`
option is implemented. It goes this way
```console
shell>php -q add_tree.php --list-rras
Known RRAs:
id steps rows timespan name
1 1 600 86400 Daily (5 Minute Average)
2 6 700 604800 Weekly (30 Minute Average)
3 24 775 2678400 Monthly (2 Hour Average)
4 288 797 33053184 Yearly (1 Day Average)
```
### List Graphs for given Hosts
To be able to add a Graph, the id of that very graph is required. Thus, a
@@ -1124,17 +1150,6 @@ shell>php -q add_tree.php --type=node --node-type=graph --tree-id=6 --parent-nod
Added Node node-id: (27)
```
In both cases, no explicit `--rra-id` was given. This will default to the Daily
(5 Minute Average). Specify any other `--rra-id` as given
```console
shell>php -q add_tree.php --type=node --node-type=graph --tree-id=6 --parent-node=21 --graph-id=1 --rra-id=4
Added Node node-id: (28)
```
to provide the `--rra-id` for a rra of Yearly (1 Day Average).
## Add Graph Permissions
This script is used to specify special graph permissions to users. The list of
@@ -1144,20 +1159,19 @@ parameters is displayed as usual when calling the script with the parameter
```console
shell>php -q add_perms.php --help
Add Permissions Script 1.0, Copyright 2004-2026 - The Cacti Group
A simple command line utility to add permissions to tree items in Cacti
Cacti Add Permissions Utility, Version 1.2.x (DB: 1.2.x), Copyright (C) 2004-2026 The Cacti Group
usage: add_perms.php [ --user-id=[ID] ]
--item-type=[graph|tree|host|graph_template]
--item-id [--quiet]
--item-type=[graph|tree|host|graph_template]
--item-id [--quiet]
Where item-id is the id of the object of type item-type
List Options:
--list-users
--list-trees
--list-graph-templates
--list-graphs --host-id=[ID]
--list-users
--list-trees
--list-graph-templates
--list-graphs --host-id=[ID]
```
### List Users
+3 -3
View File
@@ -14,8 +14,8 @@ 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 `The Maximum SNMP
OIDs Per SNMP Get Request`. Start at a value of 2 and increase it again, if the
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
the horsepower to deliver that many OIDs at a time. Therefore, we can reduce the
number for those older/under-powered devices.
@@ -51,7 +51,7 @@ implemented separately, it does not come with cacti by default.
Now, clear `./log/cacti.log` (or rename it to get a fresh start)
Then, change `Settings`, `Poller Logging Level` to DEBUG for _one_ polling
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
subsequent polling cycles.
+5 -5
View File
@@ -18,12 +18,12 @@ Now that you have working SNMP support, follow these steps.
2. Click Add to add a new device.
3. Type a description, hostname, management IP, and SNMP community. Make sure to
select "Generic SNMP-enabled Host" under Host Template and click Create.
select "Generic SNMP Device" under Device Template and click Create.
4. Click Create Graphs for this Host at the top of the page.
4. Click Create Graphs for this Device at the top of the page.
5. You should see one or more interfaces listed under the Data Query [SNMP -
Interface Statistics] box. Place a check next to each interface that you want
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).
@@ -232,7 +232,7 @@ 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
the Visual tab, and changing the value for Data Queries - Maximum Field Length.
the Visual tab, and changing the value for Data Source Field Length.
---
+6 -4
View File
@@ -3,7 +3,7 @@
The **PHP Script Server** is a memory resident PHP interpreter that is launched
by each Cacti **Data Collector** or poller each polling cycle. If using
`cmd.php`, there will be at most one **PHP Script Server** launched per poller
process. If using `spine` poller, then up to 10 **PHP Script Servers** will be
process. If using `spine` poller, then up to 15 **PHP Script Servers** will be
launched in a pool for the various `spine` threads to consume.
If you have a number of devices that must gather their data via a script, it's
@@ -24,8 +24,10 @@ for both SNMP and non-SNMP based data.
## Using the Script Server
Cacti contains two sample **PHP Script Server** scripts for reference. They are
for the collection of HostMib CPU and Disk Partition information. These two
Cacti contains a number of **PHP Script Server** scripts, named `ss_*.php`, in
the `scripts` directory for reference. Two of them, `ss_host_cpu.php` and
`ss_host_disk.php`, are for the collection of HostMib CPU and Disk Partition
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.
@@ -170,7 +172,7 @@ somewhat self explanatory by now, you must make the following changes:
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
(Indexed)` and change the XML file path to point to the new XML file in the
`<path_cacti>/resources/script_server/` directory.
`<path_cacti>/resource/script_server/` directory.
3. Your final step is to go to the **Console > System Utilities > Rebuild Poller
Cache** to apply the new settings.
+22 -20
View File
@@ -16,9 +16,9 @@ remains untested.
| -------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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 |
| DCOUNTER | Yes | This is the same as a COUNTER, but in Double Precision. |
| 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 |
| 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. |
@@ -39,8 +39,8 @@ formats described on the
### Creating a GPRINT Preset
To create a new GPRINT preset, select the Graph Management menu item under the
Management heading, and select GPRINT Presets. Click Add to the right and you
To create a new GPRINT preset, select GPRINTs under the `Console > Presets`
sub-menu section. Click Add to the right and you
will be presented with an edit page containing two fields. Enter a name for your
GPRINT preset, and the actual printf-like string in the GPRINT Text field. When
you are finished, click the Create button to create your new GPRINT preset.
@@ -133,21 +133,23 @@ vanilla RRDtool. Let's spend some few words of them to unleash their power.
###### Table 19-2. CDEF Special Data Source
| Special Data Source | Description |
| -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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 (Don't 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! |
| Similar Data Sources (Don't 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) |
| 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 Data Source Item: Minimum Value | Taken from the Data Template - Data Source Item related to this graph item: fetches the minimum value defined for the given data template. Caution: This is NOT the smallest entry of the given data source! |
| Current Data Source Item: Maximum Value | Taken from the Data Template - Data Source Item related to this graph item: fetches the maximum value defined for the given data template. Caution: This is NOT the highest entry of the given data source! |
| 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 (Don't 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 Similar Data Sources (Don't 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 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. |
| Special Data Source | Description |
| --------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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 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. |
| Current Data Source Item: Minimum Value | Taken from the Data Template - Data Source Item related to this graph item: fetches the minimum value defined for the given data template. Caution: This is NOT the smallest entry of the given data source! |
| Current Data Source Item: Maximum Value | Taken from the Data Template - Data Source Item related to this graph item: fetches the maximum value defined for the given data template. Caution: This is NOT the highest entry of the given data source! |
| 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 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
_totaling_, the `Count All Data Sources/Count Similar Data Sources` pseudo CDEF
@@ -566,7 +568,7 @@ Now, the other one, named `Current DS as Percentage of all DS`
`cdef=CURRENT_DATA_SOURCE,ALL_DATA_SOURCES_NODUPS,/,100,*`
Here's a short discussion. The first three elements read: Take the current data
source and divide it by `Sum of All Data Sources (Don't include Duplicates)`. To
source and divide it by `All Data Sources (Do not Include Duplicates)`. To
form a percentage, you will have to multiply by 100. This is done by adding the
elements four and five.
+14 -11
View File
@@ -77,9 +77,10 @@ overwrite. The following settings are customizable:
#3673](https://github.com/Cacti/cacti/issues/3673), where 'Last Known Good'
is always used, regardless of setting.
2. _Standard Deviations_
2. _Number of Standard Deviations_
When using the Standard Deviation method, the value of _Standard Deviations_
When using the Standard Deviation method, the value of _Number of Standard
Deviations_
is the coefficient which determines how many times above the standard
deviation the data must be to be considered a spike.
@@ -89,22 +90,24 @@ overwrite. The following settings are customizable:
the coefficient which determines how much higher than the average the data
must be to be considered a spike.
4. _Variance Outliers_
4. _Variance Number of Outliers_
When using the Variance Average method, the highest _N_ values and the lowest
_N_ values are considered _outliers_. These outliers are ignored when
calculating the average of the data.
5. _Kills Per RRA_
5. _Max Kills Per RRA_
Spikekill will limit the number of data points that it
overwrites to the value of _Kills Per RRA_. For reference, a single RRDfile
can contain multiple _data sources_ and multiple _archives_. Therefore, the
total number of data points that could be overwritten in a single RRDfile
will be determined by the formula:
overwrites to the value of _Max Kills Per RRA_. For reference, a single
RRDfile can contain multiple _data sources_ and multiple _archives_.
Spikekill counts the kills of all data sources in an archive together, and
starts the count again for each archive. Therefore, the total number of data points
that could be overwritten in a single RRDfile will be determined by the
formula:
```console
(number_of_RRAs) x (number_of_data_sources) x (Kills_Per_RRA)
(number_of_RRAs) x (Max_Kills_Per_RRA)
```
This only applies when using the `Standard Deviation` or `Variance Average`
@@ -150,8 +153,8 @@ RRA. Data points are overwritten if they exceed the maximum allowed threshold
or if they do not reach the minimum required threshold.
Spikekill will cease overwriting data points for any individual RRA when it has
reached the value of _Kills Per RRA_, counting all DSes of that RRA together.
It will then begin the process again on the next RRA.
reached the value of _Max Kills Per RRA_, counting all DSes of that RRA
together. It will then begin the process again on the next RRA.
This means that for any given RRA, older spikes will always be overwritten
before newer spikes. However, newer spikes in one RRA can still be overwritten
+12 -12
View File
@@ -37,7 +37,7 @@ To increase the number of Threads and concurrent processes, you must modify the
setting when editing your Data Collector under
`Console > Data Collection > Data Collectors`.
Choose Maximum Concurrent Poller Processes together with thread counts and
Choose Processes together with thread counts and
database connection capacity. CPU count alone does not determine the
appropriate settings.
@@ -48,23 +48,23 @@ recommended `max_connection` for MySQL/MariaDB.
###### Table 15-1. Spine Parameters maintained at the System Level
| Name | Description |
| -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Script and Script Server Timeout Value | The maximum time that Spine will wait on a script to complete, in units of seconds. If a Script Server Script is terminated due to timeout conditions, the value entered into the RRDfile will be NaN |
| Name | Description |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Number of PHP Script Servers | The number of concurrent script server processes to run per Spine process. Settings between 1 and 15 are accepted. Script Servers will pre-load a PHP environment. Then, the Script Server Scripts are included into that environment to save the overhead of reloading PHP and re-interpreting the binary for each call. |
| Script and Script Server Timeout Value | The maximum time that Spine will wait on a script to complete, in units of seconds. If a Script Server Script is terminated due to timeout conditions, the value entered into the RRDfile will be NaN |
###### Table 15-2. Spine Parameters maintained at the Data Collector Level
| Name | Description |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Maximum Threads per Process | The maximum threads allowed per process. More threads may reduce time spent waiting for devices, but also increase database connections and concurrent work. Measure poll-cycle duration and resource use before increasing the value; there is no universal requirement to use 10-15 threads. |
| Number of PHP Script Servers | The number of concurrent script server processes to run per Spine process. Settings between 1 and 10 are accepted. Script Servers will pre-load a PHP environment. Then, the Script Server Scripts are included into that environment to save the overhead of reloading PHP and re-interpreting the binary for each call. |
| Name | Description |
| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Threads | The maximum threads allowed per process. More threads may reduce time spent waiting for devices, but also increase database connections and concurrent work. Measure poll-cycle duration and resource use before increasing the value; there is no universal requirement to use 10-15 threads. |
###### Table 15-3. Spine Parameters maintained at the Device Level
| Name | Description |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The Maximum SNMP OIDs Per SNMP 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. |
| Device 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. |
| 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. |
### Installing Spine