Skip to content

Commit

Permalink
Health-check, Collectinfo and Summary Improvements (#28)
Browse files Browse the repository at this point in the history
* 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
hbpatre authored Nov 14, 2017
1 parent f796a3b commit 34fdaf5
Show file tree
Hide file tree
Showing 31 changed files with 3,998 additions and 1,585 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Admin> help
### Python Modules
- ply: >= 3.4
- pexpect: >= 3.0
- pyOpenSSL: 16.2.0
- pyOpenSSL: >= 16.2.0
- pyasn1: >= 0.3.1

### Installing Python Module Dependencies
```
Expand Down
51 changes: 51 additions & 0 deletions asadm-deps/deb/pyasn1/install.sh
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}
44 changes: 44 additions & 0 deletions asadm-deps/mac/pyasn1/install.sh
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
56 changes: 56 additions & 0 deletions asadm-deps/rpm/pyasn1/install.sh
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}
Loading

0 comments on commit 34fdaf5

Please sign in to comment.