summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-07-07 15:15:32 +0200
committervarac <varacanero@zeromail.org>2015-07-07 15:15:32 +0200
commit07e949ad3d3baa132c88e529ab5121c4016eb0be (patch)
treece7817b94c72549772023bd338d18ddd6d66a84f /puppet/modules
parent4986f2ba34bbed7748b80f02ab965dd5968217bc (diff)
moved removal of leap_couch_stats.sh TMPFILE to end of script (#7217)
Change-Id: If844b95c44e697f480df8ee2ae6607709b9942f7
Diffstat (limited to 'puppet/modules')
-rwxr-xr-xpuppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh b/puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh
index 285a80f0..83b407e0 100755
--- a/puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh
+++ b/puppet/modules/site_check_mk/files/agent/local_checks/couchdb/leap_couch_stats.sh
@@ -97,7 +97,6 @@ $CURL -X GET $URL/_all_dbs | json_pp | egrep -v '(\[|\])' > $TMPFILE
# get list of dbs to check
dbs=$( egrep -v "${DBLIST_EXCLUDE}" $TMPFILE | tr -d '\n"' | sed 's/,/ /g' )
-rm "$TMPFILE"
for db in $dbs
do
@@ -118,3 +117,6 @@ end_time=$(date +%s.%N)
duration=$( echo "scale = 2; $end_time - $start_time" | bc -l )
printf "${exitcode} ${PREFIX}global_stats ${global_stats_perf}|script_duration=%02.2fs ${STATE[exitcode]}: global couchdb status\n" "$duration"
+
+rm "$TMPFILE"
+