]> arthur.barton.de Git - netdata.git/blobdiff - plugins.d/sma_webbox.plugin
properly disable it when not configured
[netdata.git] / plugins.d / sma_webbox.plugin
index ac492c392e7de7e71b32a1d2c5a6cca46e1b830f..27d0ae9ab26de4828c32f53846a08edf352caa89 100755 (executable)
@@ -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);
 }