diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-01-07 12:28:05 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-01-07 12:28:05 +0200 |
commit | 48a586291d9840b52ac832ab317231c3dd882d9e (patch) | |
tree | 4960964cc4d4b520e1202e7fa882f23299ac6fa6 /plugins.d | |
parent | 2d6768e41abd5d26b0dba36a440c2009114969d6 (diff) |
properly disable it when not configured
Diffstat (limited to 'plugins.d')
-rwxr-xr-x | plugins.d/sma_webbox.plugin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins.d/sma_webbox.plugin b/plugins.d/sma_webbox.plugin index ac492c392e..27d0ae9ab2 100755 --- a/plugins.d/sma_webbox.plugin +++ b/plugins.d/sma_webbox.plugin @@ -108,6 +108,7 @@ try { } catch(e) { error('Cannot read configuration file ' + filename + ': ' + e.message); + netdata('DISABLE'); process.exit(1); } @@ -347,6 +348,7 @@ function getSMAError(server) { // inform netdata we don't need to run on this machine if(!Servers.length) { error('No SMA webbox servers defined.'); + netdata('DISABLE'); process.exit(1); } |