From 24441fb694fa801eae0382ba0b166fc169ea460e Mon Sep 17 00:00:00 2001 From: Zhechka Toteva Date: Tue, 16 May 2023 15:38:24 +0200 Subject: [PATCH] Continue with the next available repo if issue with current --- src/collectd_cvmfs/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/collectd_cvmfs/__init__.py b/src/collectd_cvmfs/__init__.py index dd945f9..c06fb7c 100644 --- a/src/collectd_cvmfs/__init__.py +++ b/src/collectd_cvmfs/__init__.py @@ -94,6 +94,7 @@ def read(self, config): except Exception as e: collectd.warning('cvmfs: failed to get MountTime for repo %s: %s' % (repo, e)) val.dispatch(type='mountok', values=[0], interval=config.interval) + continue if config.memory: try: @@ -102,6 +103,9 @@ def read(self, config): val.dispatch(type='memory', type_instance='vms', values=[repo_mem.vms], interval=config.interval) except Exception: collectd.warning('cvmfs: failed to get Memory for repo %s' % repo) + val.dispatch(type='memory', type_instance='rss', values=[0], interval=config.interval) + val.dispatch(type='memory', type_instance='vms', values=[0], interval=config.interval) + continue for attribute in config.attributes: attribute_name = "user.%s" % attribute