Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jojohappy committed Jan 24, 2017
1 parent 50c1cee commit e790a63
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ npm install

## Example

You should create the configuration file named config.production.js that specify the configuration of zabbix api and zabbix database first.
You should create the configuration file named config.json that specify the configuration of zabbix api and zabbix database first.

```
module.exports = {
mysql: {
host: 'localhost',
user: 'root',
password: '',
database: 'zabbix',
port: 3306
{
"mysql": {
"host": "localhost",
"user": "zabbix",
"password": "zabbix",
"database": "zabbix",
"port": "3306"
},
zabbix: {
url: 'http://localhost/zabbix/api_jsonrpc.php',
username: 'Admin',
password: 'zabbix'
"zabbix": {
"url": "http://localhost/zabbix/api_jsonrpc.php",
"username": "Admin",
"password": "zabbix"
}
};
}
```

Zabbix relay support both cli and shell mode.
Expand All @@ -62,7 +62,7 @@ Options:
Run command

```
NODE_ENV=production node server.js shell
node server.js shell
```

Choose the target
Expand Down Expand Up @@ -117,13 +117,13 @@ Options:
Run command

```
NODE_ENV=production node server.js command -d elastic -g 'Test Group' -p '2015-12-21|2015-12-25' -t 'trends' -u 'test:test@localhost:8086/mydb'
node server.js command -d elastic -g 'Test Group' -p '2015-12-21|2015-12-25' -t 'trends' -u 'test:test@localhost:8086/mydb'
```

Or

```
NODE_ENV=production node server.js command -d elastic -g 'Test Group' -l 30m -t 'trends' -u 'test:test@localhost:8086/mydb'
node server.js command -d elastic -g 'Test Group' -l 30m -t 'trends' -u 'test:test@localhost:8086/mydb'
```

## Contribute
Expand Down

0 comments on commit e790a63

Please sign in to comment.