]> arthur.barton.de Git - netdata.git/commitdiff
properly disable it when not configured
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Thu, 7 Jan 2016 10:28:05 +0000 (12:28 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Thu, 7 Jan 2016 10:28:05 +0000 (12:28 +0200)
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);
 }