Faidon Liambotis has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/403698 )
Change subject: base: wrap lines in check_puppetrun to < 110
......................................................................
base: wrap lines in check_puppetrun to < 110
Change-Id: Ie478754b069586fb1b40981b77b50dfaeef5e7f0
---
M modules/base/files/monitoring/check_puppetrun
1 file changed, 9 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/98/403698/1
diff --git a/modules/base/files/monitoring/check_puppetrun
b/modules/base/files/monitoring/check_puppetrun
index 0dc6fb5..0af659f 100755
--- a/modules/base/files/monitoring/check_puppetrun
+++ b/modules/base/files/monitoring/check_puppetrun
@@ -112,7 +112,8 @@
end
if failcount == :failed
- puts "CRITICAL: Catalog fetch fail. Either compilation failed or
puppetmaster has issues"
+ puts "CRITICAL: Catalog fetch fail. " +
+ "Either compilation failed or puppetmaster has issues"
exit 2
end
@@ -130,12 +131,15 @@
human_time_since_last_run = time_ago(time_since_last_run)
if enabled_only && enabled == false
- puts "OK: Puppet is currently disabled, not alerting. Last run
#{human_time_since_last_run} ago with #{failcount} failures"
+ puts "OK: Puppet is currently disabled, not alerting. " +
+ "Last run #{human_time_since_last_run} ago with #{failcount} failures"
exit 0
end
unless enabled
- puts "WARNING: Puppet is currently disabled, message: #{disabled_message},
last run #{human_time_since_last_run} ago with #{failcount} failures"
+ puts "WARNING: Puppet is currently disabled, " +
+ "message: #{disabled_message}, " +
+ "last run #{human_time_since_last_run} ago with #{failcount} failures"
exit 1
end
@@ -159,5 +163,6 @@
exit 1
end
-puts "OK: Puppet is currently enabled, last run #{human_time_since_last_run}
ago with #{failcount} failures"
+puts "OK: Puppet is currently enabled, " +
+ "last run #{human_time_since_last_run} ago with #{failcount} failures"
exit 0
--
To view, visit https://gerrit.wikimedia.org/r/403698
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie478754b069586fb1b40981b77b50dfaeef5e7f0
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits