bin/riemann-proc in riemann-tools-0.2.11 vs bin/riemann-proc in riemann-tools-0.2.13
- old
+ new
@@ -48,10 +48,10 @@
#
# description should contain the command itself.
# value should be either process RSS, VSIZE, or 1 if running
# state is always unknown for the moment
#
- ps_regex = /([0-9]+)[ ]+([0-9]+)[ ]+([0-9]+)[ ]+([A-Z])[ ]+([0-9:.]+)[ ]+[A-Za-z]{3}[ ]+([A-Za-z]{3} [0-9]+ [0-9:]+ [0-9]+)[ ]+(.*)/
+ ps_regex = /([0-9]+)[ ]+([0-9]+)[ ]+([0-9]+)[ ]+([A-Z])[ ]+([0-9:.]+)[ ]+[A-Za-z]{3}[ ]+([A-Za-z]{3}[ ]{1,2}[0-9]+ [0-9:]+ [0-9]+)[ ]+(.*)/
found.each_line do |line|
m = ps_regex.match(line)
if not m.nil?
pid, rss, vsize, state, cputime, start, command = m.captures
start_s = DateTime.parse(start, "Mmm DD HH:MM:ss YYYY").to_time.to_i