Permalink
Browse files

conf examples

  • Loading branch information...
apocas committed Jul 28, 2014
1 parent 7e43227 commit 556306df6181f4611a91f02d96e13389724ceb7b
View
@@ -1,5 +1,9 @@
conf
node_modules
.DS_Store
conf/feeds.js
conf/sensors.js
conf/config.js
View

This file was deleted.

Oops, something went wrong.
View
@@ -0,0 +1,24 @@
module.exports = {
'mongo_host': '127.0.0.1', //mongodb server address
'mongo_port': '27017',
'mongo_database': 'outkept',
'alarm': 2,
'reactive': true, //reactive commands enabled
'timer': 5000, //default pooling interval, each sensor may have its own (millis)
'crawler_user': 'username', //username to be used
'crawler_key': '/home/username/.ssh/id_rsa', //auth key
'crawler_port': 22, //port
'ranges': [
{
'start': '192.168.1.2',
'end': '192.168.1.254'
},
{
'start': '192.168.10.2',
'end': '192.168.10.254'
}
]
};
File renamed without changes.
@@ -72,7 +72,7 @@ module.exports = [
'warning': 80,
'exported': true,
'cmd': 'aux=$(df -h | grep /tmp | awk \'{print $5}\'); echo ${aux%\\%}',
'reactive': 'rm -rf /tmp/eaccelerator; rm -vf /tmp/cache_*; rm -vf /tmp/*.dat; rm -vf /tmp/*.cache;',
'reactive': '',
'verifier': 'aux=$(df -h | grep /tmp | awk \'{ print $6 }\';); if [ -z "$aux" ]; then echo no; else echo yes; fi;',
'inverted': false,
'zero': false,
@@ -123,7 +123,7 @@ module.exports = [
{
'name': 'time',
'exported': true,
'cmd': 'date | awk \'{print $2$3,$4}\'',
'cmd': 'date +%d/%m-%H:%M:%S',
'verifier': 'if which date >/dev/null; then echo yes; else echo no; fi;'
}
];

0 comments on commit 556306d

Please sign in to comment.