_icinga2.mdx 1.5 KB
Newer Older
D
dingbo 已提交
1 2


3 4 5 6 7
### Configuring taosAdapter

To configure taosAdapter to receive icinga2 data.

- Enable the configuration item in the taosAdapter configuration file (default location /etc/taos/taosadapter.toml)
D
dingbo 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21

```
...
[opentsdb_telnet]
enable = true
maxTCPConnections = 250
tcpKeepAlive = false
dbs = ["opentsdb_telnet", "collectd", "icinga2", "tcollector"]
ports = [6046, 6047, 6048, 6049]
user = "root"
password = "taosdata"
...
```

22
The default database name written by the taosAdapter is `icinga2`. You can also modify the taosAdapter configuration file dbs entry to specify a different name. user and password are the values configured by the actual TDengine. You need to restart the taosAdapter after modification.
D
dingbo 已提交
23

24
- You can also enable taosAdapter to receive icinga2 data by using the taosAdapter command line parameters or setting environment variables.
D
dingbo 已提交
25

26
### Configure icinga3
D
dingbo 已提交
27

28 29
- Enable opentsdb-writer for icinga2 (refer to the link https://icinga.com/docs/icinga-2/latest/doc/14-features/#opentsdb-writer)
- Modify the configuration file `/etc/icinga2/features-enabled/opentsdb.conf` by filling in <taosAdapter's host\> as the domain name or IP address of the server running taosAdapter and <port for icinga2\> as the corresponding port on which taosAdapter supports receiving icinga2 data (default is 6048)
D
dingbo 已提交
30

31
ðŸ™' ðŸ™'
D
dingbo 已提交
32 33 34 35 36 37
object OpenTsdbWriter "opentsdb" {
  host = "<taosAdapter's host>"
  port = <port for icinga2>
}
```

38
Example file:
D
dingbo 已提交
39 40 41 42 43 44 45 46

```
object OpenTsdbWriter "opentsdb" {
  host = "127.0.0.1"
  port = 6048
}
```