This is inherited 1.2.31 documentation. A supported Kadupul release or migration path is not yet available. Validate procedures before use.
Command line tools
Dieser Inhalt gilt für 1.2.31. Aktuelle Dokumentation finden Sie in der neuesten Version.
Noch nicht übersetzte Seiten werden mit einem Hinweis auf Englisch angezeigt.
Kadupul inherits the Cacti 1.2.x cli/ directory: 46 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.
Grant a user access to a graph, tree, device, or graph template.
copy_user.php
Copy a local user and their settings to a new username. Local accounts only.
reset_password.php
Set a new password for a local account, read from standard input, and require a change at the next login. Ends the account’s sessions and remember-me tokens.
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.
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.
Lizenz der Dokumentation: CC BY-SA 4.0Lizenz des Website-Codes: GPL-3.0-or-laterKadupul ist nicht mit The Cacti Group verbunden und wird von ihr nicht unterstützt.