Ori.livneh has submitted this change and it was merged.

Change subject: Saner copy for Puppet freshness alerts
......................................................................


Saner copy for Puppet freshness alerts

$SERVICEDURATION$ is "the amount of time that the service has spent in its
current state". Puppet doesn't hit CRITICAL until the freshness interval
expires.

Change-Id: I665dbe42982175d35730dff5b89f54b5ee75966e
---
M templates/icinga/checkcommands.cfg.erb
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Ori.livneh: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/templates/icinga/checkcommands.cfg.erb 
b/templates/icinga/checkcommands.cfg.erb
index f5c8dcd..ed30d6a 100644
--- a/templates/icinga/checkcommands.cfg.erb
+++ b/templates/icinga/checkcommands.cfg.erb
@@ -466,7 +466,7 @@
 
 define command{
        command_name    puppet-FAIL
-       command_line    echo "No successful Puppet run for $SERVICEDURATION$" 
&& exit 2
+       command_line    date --date @$LASTSERVICEOK$ +"Last successful Puppet 
run was %c" && exit 2
 }
 
 define command{

-- 
To view, visit https://gerrit.wikimedia.org/r/98476
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I665dbe42982175d35730dff5b89f54b5ee75966e
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to