Kadupul is pre-alpha. Validate these procedures in an isolated test installation.
Command line tools
जिन पृष्ठों का अनुवाद अभी नहीं हुआ है, वे सूचना के साथ अंग्रेज़ी में उपलब्ध हैं।
Kadupul inherits the Cacti 1.2.x cli/ directory: 45 scripts plus an index.php
that redirects to the site root. They exist for work the web interface handles
badly: bulk changes, scheduled maintenance, and recovery when the interface itself
is the broken thing.
Two habits worth keeping. Run these as the user the poller runs as; a script run as
root can leave files the poller cannot write, and that shows up later as gaps in
graphs with no obvious cause. Read what a script does before pointing it at
production, because several change data in bulk with no confirmation step.
Identifier used to align this device with another system.
--disable
0
1 adds the device with checks disabled.
--poller
0
Data collector id.
--site
0
Site id.
--threads
1
Threads used to poll the device.
--proxy
off
Permit a second device with the same IP.
--avail
pingsnmp
One of none, snmp, ping, pingsnmp, pingorsnmp.
--ping_method
tcp
One of icmp, tcp, udp.
--ping_port
''
1 to 65534.
--ping_retries
2
Communication attempts before the device is down.
--ping_timeout
database setting
Milliseconds.
--version
1
SNMP version 0, 1, 2, or 3. 0 disables SNMP.
--community
''
SNMP v1 and v2 community.
--port
161
SNMP port.
--timeout
500
SNMP timeout.
--username, --password
''
SNMP v3 auth user and passphrase.
--authproto
''
SNMP v3 authentication protocol.
--privpass, --privproto
''
SNMP v3 privacy passphrase and protocol.
--context, --engineid
''
SNMP v3 context and engine id.
--max_oids
10
1 to 60 OIDs per SNMP Get.
--bulk_walk
-1
Bulk walk chunk size, 1 to 60. -1 auto-tunes.
--list-host-templates
Print device template ids and exit.
--list-communities
Print known communities and exit.
--quiet
Return the value only, for batch use.
--version with no value prints the script version and exits. --version=N sets
the SNMP version. The two uses are distinguished by whether any other argument
was given.
Takes the same device attribute arguments as add_device.php and applies them to
one existing device. The current command has no CSV or multi-device mode.
Narrow to one or more graph templates. Repeatable.
--host-template-id
Narrow to one or more device templates. Repeatable.
--host-id
Narrow to one or more devices. Repeatable.
--graph-regex
Narrow by graph name regular expression.
--all
Remove all graphs. Other selection arguments are ignored.
--force
Actually remove. Without it, the script only counts.
--preserve
Keep the data sources. The default is to remove them.
--list
List each graph that would be removed. Mutually exclusive with --force.
Provide at least one filtered selector or use --all for a count or removal;
those paths reject an empty selection. The read-only --list option is the
exception: by itself, it lists every graph.
Returns records from poller_output_rejected to poller_output for the next
poller drain. Repair the RRD file or other cause of rejection first, or the
samples will be rejected again.
Argument
Meaning
--local-data-id
Replay one positive local data source id.
--all
Replay every rejected sample.
--dry-run
Report how many matching samples would move without changing either queue.
Specify exactly one scope: --local-data-id=N or --all. On an online remote
collector, run the command on the main collector because that is where the
remote queues its samples. A live replay also refuses to run unless
poller_output uses InnoDB; stop all collectors and repair the queue
configuration before retrying. --dry-run does not require that queue change
because it does not move samples.
One or more of --innodb, --utf8, --latin1 is required. MEMORY tables are not
converted to InnoDB.
Argument
Short
Default
Meaning
--innodb
-i
Convert MyISAM tables to InnoDB.
--utf8
-u
Convert non-UTF8 tables to utf8mb4_unicode_ci.
--latin1
-l
Convert non-latin1 tables to latin1.
--table
-t
all
Change a single named table.
--skip-innodb
-n
Space-separated list of tables to leave as they are.
--size
-s
1,000,000 rows
Largest table, in records, that will be converted.
--rebuild
-r
Compress or optimize existing InnoDB tables.
--dynamic
Convert to Dynamic row format where available.
--local
Act on the remote data collector when run from one.
--force
-f
Convert regardless of table size.
--debug
-d
Verbose output.
--local appears on several maintenance scripts (analyze_database.php,
convert_tables.php, fix_mediumint.php, repair_database.php,
upgrade_database.php) and has the same meaning on each.
दस्तावेज़ का लाइसेंस: CC BY-SA 4.0वेबसाइट कोड का लाइसेंस: GPL-3.0-or-laterKadupul का The Cacti Group से कोई संबंध नहीं है और उसे उसका समर्थन प्राप्त नहीं है।