Skip to content

Commit fc31eab

Browse files
authored
Merge pull request #18 from toteva/master
Continue with the next available repo if issue with current
2 parents b7e03a5 + 24441fb commit fc31eab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/collectd_cvmfs/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def read(self, config):
9494
except Exception as e:
9595
collectd.warning('cvmfs: failed to get MountTime for repo %s: %s' % (repo, e))
9696
val.dispatch(type='mountok', values=[0], interval=config.interval)
97+
continue
9798

9899
if config.memory:
99100
try:
@@ -102,6 +103,9 @@ def read(self, config):
102103
val.dispatch(type='memory', type_instance='vms', values=[repo_mem.vms], interval=config.interval)
103104
except Exception:
104105
collectd.warning('cvmfs: failed to get Memory for repo %s' % repo)
106+
val.dispatch(type='memory', type_instance='rss', values=[0], interval=config.interval)
107+
val.dispatch(type='memory', type_instance='vms', values=[0], interval=config.interval)
108+
continue
105109

106110
for attribute in config.attributes:
107111
attribute_name = "user.%s" % attribute

0 commit comments

Comments
 (0)