Permalink
Browse files

Fixed whitespace for dao.js

  • Loading branch information...
1 parent 4502b6f commit 2e472ecbe1cb427b9b92e46aff93d1bc39d26b2f @MainframeEnzo MainframeEnzo committed Jan 3, 2012
Showing with 4 additions and 13 deletions.
  1. +1 −6 README.markdown
  2. +2 −2 modules/dao.js
  3. +1 −5 run/client.js
View
@@ -18,13 +18,8 @@ Copy the script out of the the directory into a usable location.
cp ~/node-monitor/bin/node-monitor.sh ~/node-monitor.sh
chmod a+x ~/node-monitor.sh
-
-To install all the necessary packages (including node.js and npm):
-
- sudo ~/node-monitor.sh install-debian-with-deps # Debian
- sudo ~/node.monitor.sh install-centos-with-deps # CentOS
-To do a light install:
+To install all the necessary packages (including node.js and npm):
sudo ~/node-monitor.sh install-debian # Debian
sudo ~/node.monitor.sh install-centos # CentOS
View
@@ -72,10 +72,10 @@ DaoManagerModule.prototype.postCloudwatch = function (metricName, unit, value) {
params['MetricData.member.1.Unit'] = unit;
params['MetricData.member.1.Value'] = value;
params['MetricData.member.1.Dimensions.member.1.Name'] = 'InstanceID';
- params['MetricData.member.1.Dimensions.member.1.Value'] = this.asciiConvert(process.env[Module.constants.strings.INSTANCE_ID]);
+ params['MetricData.member.1.Dimensions.member.1.Value'] = process.env[Module.constants.strings.INSTANCE_ID].toString().trim();
Module.logger.write(Module.constants.levels.INFO, 'CloudWatch Namespace: ' + process.env[Module.constants.strings.CLOUDWATCH_NAMESPACE]);
- Module.logger.write(Module.constants.levels.INFO, 'CloudWatch IP: ' + process.env[Module.constants.strings.INSTANCE_ID] + ', ascii: ' + this.asciiConvert(process.env[Module.constants.strings.INSTANCE_ID]));
+ Module.logger.write(Module.constants.levels.INFO, 'CloudWatch IP: ' + process.env[Module.constants.strings.INSTANCE_ID]);
Module.logger.write(Module.constants.levels.INFO, 'CloudWatch MetricName: ' + metricName);
Module.logger.write(Module.constants.levels.INFO, 'CloudWatch Unit: ' + unit);
Module.logger.write(Module.constants.levels.INFO, 'CloudWatch Value: ' + value);
View
@@ -19,6 +19,7 @@ var modules = {
loggerModule: '../modules/logger'
};
+/* Setup dependencies */
for (var name in modules) {
/* Debug */
/* console.log('Evaluating dependency in location: ' + location + ', with name: ' + name + ', path:' + modules[name]); */
@@ -40,11 +41,6 @@ function NodeMonitor() {
var dao = new daoModule.DaoManagerModule(constants, utilities, logger);
var plugins = new pluginsModule.PluginsManagerModule(constants, utilities, logger, dao);
- this.constants = constants;
- this.utilities = utilities;
- this.logger = logger;
- this.credentials = credentials;
- this.dao = dao;
this.plugins = plugins;
/* Parse configuration */

0 comments on commit 2e472ec

Please sign in to comment.