Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add small .sh for easier report while investigating problem #741

Merged
merged 3 commits into from May 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions utils/report/clickhouse_report.sh
@@ -0,0 +1,20 @@
#!/bin/sh -x
# Usages:
# ./clickhouse_report.sh > ch.`hostname`.`date '+%Y%M%''d%H%M%''S'`.dmp 2>&1
# curl https://raw.githubusercontent.com/yandex/ClickHouse/master/utils/report/clickhouse_report.sh | sh > ch.`hostname`.`date '+%Y%M%''d%H%M%''S'`.dmp 2>&1

clickhouse --client -q 'SELECT * FROM system.events FORMAT Pretty'
clickhouse --client -q 'SELECT * FROM system.metrics FORMAT Pretty'
clickhouse --client -q 'SELECT * FROM system.asynchronous_metrics FORMAT Pretty'
clickhouse --client -q 'SELECT * FROM system.build_options FORMAT Pretty'
clickhouse --client -q 'SELECT * FROM system.processes FORMAT Pretty'
clickhouse --client -q 'SELECT * FROM system.merges FORMAT Pretty'
clickhouse --client -q 'SELECT * FROM system.parts FORMAT Pretty'
clickhouse --client -q 'SELECT * FROM system.replication_queue FORMAT Pretty'
clickhouse --client -q 'SELECT * FROM system.dictionaries FORMAT Pretty'
ps auxw
df -h
top -bn1
tail -n200 /var/log/clickhouse-server/clickhouse-server.err.log
tail -n200 /var/log/clickhouse-server/clickhouse-server.log
tail -n100 /var/log/clickhouse-server/stderr