Alexandros Kosiaris has uploaded a new change for review.
https://gerrit.wikimedia.org/r/305629
Change subject: check_puppetrun: Add more info in failed resources message
......................................................................
check_puppetrun: Add more info in failed resources message
Add sime since last run in the output of a puppet run that had
resources failed. It's a useful informational message
Change-Id: Iae272184608fbfaa148ee7f23d34fdb0dfdb7eba
---
M modules/base/files/monitoring/check_puppetrun
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/29/305629/1
diff --git a/modules/base/files/monitoring/check_puppetrun
b/modules/base/files/monitoring/check_puppetrun
index 6bd5744..3c356cd 100755
--- a/modules/base/files/monitoring/check_puppetrun
+++ b/modules/base/files/monitoring/check_puppetrun
@@ -151,7 +151,7 @@
status = 'WARNING'
exitcode = 1
end
- puts "#{status}: Puppet has #{failcount} failures. Failed resources:
#{failed_resources.join','}"
+ puts "#{status}: Puppet has #{failcount} failures. Last run
#{human_time_since_last_run} ago with #{failcount} failures. Failed resources:
#{failed_resources.join','}"
exit exitcode
end
--
To view, visit https://gerrit.wikimedia.org/r/305629
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iae272184608fbfaa148ee7f23d34fdb0dfdb7eba
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits