-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Health-check, Collectinfo and Summary Improvements (#28)
* TOOLS-741: [asadm-collectinfo] Use optimal netstat / ss command line option, when running it for collectinfo. * TOOLS-811: [asadm-collectinfo] Add hdparm output in ACT and collectinfo * TOOLS-851: [asadm-healthcheck] Parse dmesg and perform OS version / OOM / Process blocking health check. * TOOLS-885: [asadm-healthcheck] Collect / Compare sysctl and CPU configuration across nodes in cluster. * TOOLS-945: [asadm-healthcheck] Show numbers for failed tests in healthcheck * TOOLS-953: [asadm] Modify Summary output * TOOLS-957: [asadm-healthcheck] Add health check rule to print INFO in case nodes in cluster are running with firewall rules. * TOOLS-969: [asadm-healthcheck] Check for OOM Kill and warn in sysinfo * TOOLS-970: [asadm-healthcheck] Add query to check hwm breach * TOOLS-972: [asadm] Modify Namespace modifier filtration to use regular expression strictly * TOOLS-997: [asadm-collectInfo] Add cat /proc/pgreg asd/limits and health check. * TOOLS-998: [asadm] Fix TLS error capturing to show proper description * TOOLS-999: [asadm] Make collectinfo error messages user-friendly * TOOLS-1002: [asadm-healthcheck] Add query to check non-default defrag-lwm-pct * TOOLS-1015: [asadm] Reorganize info tables * TOOLS-1017: [asadm-healthcheck] Add new operation to find out values in the minority * TOOLS-1021: [asadm-healthcheck] Show details for cluster remote dc_size difference check * TOOLS-1022: [asadm] WARN at the top of Summary command if migrations are going on * TOOLS-1023: [asadm-healthcheck] Remove the thousand delimiter for config params * TOOLS-1024: [asadm] Modify ssh options and provide documentation * TOOLS-1025: [asadm-healthcheck] Modify SELECT clause to ignore unwanted key/s * TOOLS-1029: [asadm] Modify to display Summary namespace output in table and list view
- Loading branch information
Showing
31 changed files
with
3,998 additions
and
1,585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2013-2017 Aerospike, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
################################################################################ | ||
|
||
PYMODULE=pyasn1 | ||
|
||
################################################################################ | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
|
||
################################################################################ | ||
|
||
if [ $EUID -ne 0 ]; then | ||
echo "This script requires root or sudo privileges." | ||
exit 1 | ||
fi | ||
|
||
if ! command_exists pip ; then | ||
echo Installing python-dev | ||
apt-get install -y python-dev | ||
|
||
echo Installing python-setuptools | ||
apt-get install -y python-setuptools | ||
|
||
echo Installing pip | ||
apt-get install python-pip | ||
|
||
if ! command_exists pip ; then | ||
echo "Error while installing pip. Please install pip and run this installation again." | ||
exit 1 | ||
fi | ||
fi | ||
|
||
echo Installing ${PYMODULE} | ||
pip install --upgrade ${PYMODULE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2013-2017 Aerospike, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
################################################################################ | ||
|
||
PYMODULE=pyasn1 | ||
|
||
################################################################################ | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
|
||
################################################################################ | ||
|
||
if [ $EUID -ne 0 ]; then | ||
echo "This script requires root or sudo privileges." | ||
exit 1 | ||
fi | ||
|
||
if ! command_exists pip ; then | ||
echo Installing pip | ||
easy_install pip | ||
|
||
if ! command_exists pip ; then | ||
echo "Error while installing pip. Please install pip and run this installation again." | ||
exit 1 | ||
fi | ||
fi | ||
echo Installing ${PYMODULE} | ||
pip install ${PYMODULE} --upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2013-2017 Aerospike, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
################################################################################ | ||
|
||
PYMODULE=pyasn1 | ||
|
||
################################################################################ | ||
|
||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
|
||
################################################################################ | ||
|
||
if [ $EUID -ne 0 ]; then | ||
echo "This script requires root or sudo privileges." | ||
exit 1 | ||
fi | ||
|
||
pip_command="pip" | ||
if ! command_exists ${pip_command} ; then | ||
echo Installing epel-release | ||
yum install epel-release | ||
|
||
echo Installing pip | ||
yum install -y python-pip | ||
|
||
if ! command_exists ${pip_command} ; then | ||
if command_exists pip-python ; then | ||
pip_command="pip-python" | ||
elif command_exists python-pip ; then | ||
pip_command="python-pip" | ||
fi | ||
fi | ||
if ! command_exists ${pip_command} ; then | ||
echo "Error while installing pip. Please install pip and run this installation again." | ||
exit 1 | ||
fi | ||
fi | ||
|
||
echo Installing ${PYMODULE} | ||
${pip_command} install --upgrade ${PYMODULE} |
Oops, something went wrong.