whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: parse systemd output
Date Sat, 15 Apr 2017 20:25:53 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  156b81b   parse systemd output
156b81b is described below

commit 156b81b98d24a3ec2f43f813a2ef61e2fa60d589
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sat Apr 15 16:25:37 2017 -0400

    parse systemd output
---
 www/status/monitors/system.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/status/monitors/system.rb b/www/status/monitors/system.rb
index 9e582de..3539570 100644
--- a/www/status/monitors/system.rb
+++ b/www/status/monitors/system.rb
@@ -19,7 +19,9 @@ def Monitor.system(previous_status)
 
     puppet = `service puppet status`.force_encoding('utf-8').strip
 
-    if puppet.include? '* agent is running'
+    if puppet.include? 'Active: active (running)'
+      status[name].merge! level: 'success', data: puppet
+    elsif puppet.include? '* agent is running'
       status[name].merge! level: 'success', data: puppet
     else
       status[name].merge! level: 'warning', data: puppet

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message