10 KiB
Poller Settings
The Poller sub-tab of the Cacti settings is where you go to control many aspects of Data Collection in Cacti. You control various base collection frequencies, communication timeouts, and other settings that impact how Cacti's Data Collection works.
General Settings
The General Settings are a broad collection of settings into multiple categories. The image below shows Cacti's General Settings sub-section.
Those settings include:
-
Data Collection Enabled - This is a setting that essentially will override and disable all Cacti Data Collection from all of Cacti's Data Collectors. It's really intended to allow you to put Cacti in maintenance mode with a single click.
-
Poller Type - This is where you define either Cacti's built-in poller
cmd.php, or use the more robust pollerspine. You will not see thespinedrop-down option unless it has first been installed, and thespinebinary path defined fromConsole > Configuration > Settings > Pathssettings sub-tab. -
Poller Sync Interval - When creating a Cacti Data Collector this is the default
Full Syncinterval it will use. In the current Cacti design, aFull Syncshould only be required when attempting to replicate local authentication or authorization data to Remote Data Collectors, or if you have made changes that would otherwise impact the behavior of a Remote Data Collector when it was offline. -
Poller Interval - This setting must align with the highest frequency Data Source Profile polling interval.
Note
: This only applies to the Data Source Profiles that are in use. If you only plan on polling every minute and therefore only using the
1 MinuteData Source Profile, then your Poller Interval should be1 Minuteas well.
-
Cron/Daemon Interval - This is the frequency at which either the Cacti daemon (cactid.php), or the system's crontab/task-manager should relaunch every Data Collector's Poller process.
-
Balance Process Load - This setting will sort the devices such that each concurrent Cacti process is polling the same number of Data Sources. Otherwise, Cacti will simply order the hosts by their
device ids. -
Debug Output Width - This is a diagnostic setting that you would only enable from time to time if you wish to check if the output from your Data Collector scripts exceeded the output width in the various Poller tables. Since checking this has a very negative impact on polling performance, it's disabled by default.
-
Remote Agent Timeout - When Cacti either needs information from a Data Collector, like
pinglatency from the collector to one of the Devices it's monitoring, or when a Remote Data Collector needs information from the main Cacti server, this is the timeout for receiving a handshake from that server. It's used to keep the Website from locking up in the case a Data Collector is not responding due to being down. -
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 its Website content with its Remote Data Collectors. So, essentially, they are self upgradable. However, there are some cases where customers wish to upgrade the Central system before allowing the remotes to self upgrade. In those cases, you would enable this feature.
SNMP Behavior
The SNMP Behavior settings control how Cacti handles SNMP. They are in their own section of the Poller sub-tab, below the General Settings.
Those settings include:
-
SNMP Agent Support Enabled - The SNMP Agent has a measurable amount of overhead on larger systems. Therefore, if you are not using it, you should disable it. However, the SNMP Agent is a marvelous addition to any Cacti system that's participating in a multi-level Operations Framework.
-
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.
-
SNMP Get OID Limit - The default maximum number of SNMP Get OIDs to issue per
snmpgetrequest. For Devices, this setting is controlled at the Device level. You should only use this setting when using Cacti's SNMP API natively in your scripts and Plugins. -
SNMP Bulkwalk Fetch Size - This controls how many OIDs are returned per UDP turn when obtaining
snmpwalkdata from an SNMP enabled Device.
Note
: This only works with SNMP v2 and v3. It is not supported on older SNMP v1 Devices.
- Disable increasing OID Check - This setting is for performing
Data Query
Re-indexactivities for tables whose OIDs are not structured in an orderly way where the suffix for the OID increases in a known way. Though, in most cases enabling this setting will be harmless. There may be some cases where it would slow theRe-indexprocess.
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 SundayandMonthly on Sunday, and the default isDisabled.
Background Timeout Settings
The settings below limit how long Cacti background processes will be allowed to run before timing out and being killed by the system and notifying the Cacti administrator. These background timeouts are required to keep Cacti performing at peak performance by not allowing certain tasks to re-spawn while they are still running causing system overload. Below is the image of those settings.
Those settings include:
-
Report Generation Timeout - Some reports can take several minutes to complete. Adjust accordingly based upon your system size and the number of reports across all users.
-
Data Source Statistics Timeout - Depending on the size of your Cacti system, some Data Source Statistics tasks can take quite a bit of time. This setting is for the periodic collection and not the Daily process.
-
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 statistics, etc. This setting controls its maximum allowed runtime.
-
Spikekill Background Generation Timeout - If you are using Cacti's prophylactic spike-killer process on your Data Queries, this will control its maximum allowed run-time.
Data Collector Defaults
Cacti's Data Collectors include both concurrent process and thread settings. They are maintained at the Data Collector level due to the fact that not all Data Collectors are created equally. You may have one Data Collector that's collecting data from 1,000 hosts, and another that is collecting from 10. Maybe one is a Raspberry Pi and the other a two-socket EPYC chip. You would not want the same settings for each.
These settings are only the defaults when you first create a Data Collector; once you save them, the setting stays with the individual Data Collector. Below, you can see an image of those settings.
Those settings include:
-
Data Collector Processes - The default number of concurrent processes the Data Collector will spawn every cron or daemon cycle.
-
Threads per Process - The default number of
spinethreads per Concurrent Poller Process above.
Note
: The Thread setting only applies if you are using the
spinepoller. It does not apply to thecmd.phppoller.
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:
Those settings include:
-
Invalid Data Logging - By default, the setting is
Noneand no error counts are logged. You can change this setting toSummary, which logs the number of output errors per Device, orDetailed, which logs every error. -
Number of PHP Script Servers - Another level of Spine parallelism is its ability to create a pool of memory resident PHP interpreters for running PHP scripts, making spine very powerful. Every concurrent process will have this many memory resident PHP interpreters pooled for running scripts.
-
Script and Script Server Timeout Value - This is the timeout to stop run-on scripts from blocking poller performance. If a script exceeds this timeout, it will generate a log message.
Copyright (c) 2004-2026 The Cacti Group



