Skip to content

Commit

Permalink
update systemstats function remove hostname from sar logs
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Apr 1, 2017
1 parent aef66db commit a9ab702
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 0 deletions.
5 changes: 5 additions & 0 deletions installer-dnf-gitlab.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer-dnf.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer-gitlab.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer-latest-gitlab.sh
Expand Up @@ -297,6 +297,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer-latest.sh
Expand Up @@ -295,6 +295,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer-minimal-gitlab.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer-minimal.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer-ngxpagespeed-gitlab.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer-ngxpagespeed.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer55-gitlab.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer55.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer56-gitlab.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer56.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer7-gitlab.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down
5 changes: 5 additions & 0 deletions installer7.sh
Expand Up @@ -291,6 +291,11 @@ systemstats() {
sar -r > /root/centminlogs/sar-r-installstats.log
sar -d > /root/centminlogs/sar-d-installstats.log
sar -b > /root/centminlogs/sar-b-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-u-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-q-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-r-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-d-installstats.log
sed -i "s|$(hostname)|hostname|" /root/centminlogs/sar-b-installstats.log
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$(uname -m)" = 'x86_64' ]]; then
if [ -f /var/cache/yum/x86_64/7/timedhosts.txt ]; then
Expand Down

0 comments on commit a9ab702

Please sign in to comment.