properly disable it when not configured
Costa Tsaousis (ktsaou) committed
Jan 7, 2016 at 12:28 UTC
48a586291d9840b52ac832ab317231c3dd882d9e
1 file changed
+2
plugins.d/sma_webbox.plugin
+2
@@ -108,6 +108,7 @@ try {
108
}
109
catch(e) {
110
error('Cannot read configuration file ' + filename + ': ' + e.message);
111
+ netdata('DISABLE');
112
process.exit(1);
113
}
114
@@ -347,6 +348,7 @@ function getSMAError(server) {
348
// inform netdata we don't need to run on this machine
349
if(!Servers.length) {
350
error('No SMA webbox servers defined.');
351
+ netdata('DISABLE');
352
process.exit(1);
353
}
354