Example:
```
-library "checker"
-
object CheckerComponent "checker" {
concurrent_checks = 512
}
Example:
```
-library "compat"
-
object CheckResultReader "reader" {
spool_dir = "/data/check-results"
}
Example:
```
-library "compat"
-
object CompatLogger "compatlog" {
log_dir = "/var/log/icinga2/compat"
rotation_method = "DAILY"
Example:
```
-library "perfdata"
-
object ElasticsearchWriter "elasticsearch" {
host = "127.0.0.1"
port = 9200
Example:
```
-library "compat"
-
object ExternalCommandListener "command" {
command_path = "/var/run/icinga2/cmd/icinga2.cmd"
}
Example:
```
-library "perfdata"
-
object GelfWriter "gelf" {
host = "127.0.0.1"
port = 12201
Example:
```
-library "perfdata"
-
object GraphiteWriter "graphite" {
host = "127.0.0.1"
port = 2003
Example:
```
-library "db_ido_mysql"
-
object IdoMysqlConnection "mysql-ido" {
host = "127.0.0.1"
port = 3306
Example:
```
-library "db_ido_pgsql"
-
object IdoPgsqlConnection "pgsql-ido" {
host = "127.0.0.1"
port = 5432
Example:
```
-library "perfdata"
-
object InfluxdbWriter "influxdb" {
host = "127.0.0.1"
port = 8086
Examples:
```
-library "livestatus"
-
object LivestatusListener "livestatus-tcp" {
socket_type = "tcp"
bind_host = "127.0.0.1"
Example:
```
-library "notification"
-
object NotificationComponent "notification" { }
```
Example:
```
-library "perfdata"
-
object OpenTsdbWriter "opentsdb" {
host = "127.0.0.1"
port = 4242
Example:
```
-library "perfdata"
-
object PerfdataWriter "perfdata" {
host_perfdata_path = "/var/spool/icinga2/perfdata/host-perfdata"
Example:
```
-library "compat"
-
object StatusDataWriter "status" {
status_path = "/var/cache/icinga2/status.dat"
objects_path = "/var/cache/icinga2/objects.cache"
## Library directive <a id="library"></a>
-The `library` directive can be used to manually load additional
-libraries. Libraries can be used to provide additional object types and
-functions.
-
-Example:
-
- library "snmphelper"
+The `library` directive was used to manually load additional
+libraries. Starting with version 2.9 it is no longer necessary to explicitly load
+libraries and this directive has no effect.
## Functions <a id="functions"></a>
* The checker component takes care of executing service checks.
*/
-library "checker"
-
object CheckerComponent "checker" { }
* commands pipe.
*/
-library "compat"
-
object ExternalCommandListener "command" { }
* that is compatible with Icinga 1.x.
*/
-library "compat"
-
object CompatLogger "compatlog" { }
-library "perfdata"
-
object ElasticsearchWriter "elasticsearch" {
//host = "127.0.0.1"
//port = 9200
* Logstash or any other receiver.
*/
-library "perfdata"
-
object GelfWriter "gelf" {
//host = "127.0.0.1"
//port = 12201
* performance data to a graphite tcp socket.
*/
-library "perfdata"
-
object GraphiteWriter "graphite" {
//host = "127.0.0.1"
//port = 2003
/**
- * The db_ido_mysql library implements IDO functionality
- * for MySQL.
+ * The IdoMysqlConnection type implements MySQL support
+ * for DB IDO.
*/
-library "db_ido_mysql"
-
object IdoMysqlConnection "ido-mysql" {
//user = "icinga"
//password = "icinga"
/**
- * The db_ido_pgsql library implements IDO functionality
- * for PostgreSQL.
+ * The IdoPgsqlConnection type implements PostgreSQL support
+ * for DB IDO.
*/
-library "db_ido_pgsql"
-
object IdoPgsqlConnection "ido-pgsql" {
//user = "icinga"
//password = "icinga"
* performance data to an InfluxDB HTTP API
*/
-library "perfdata"
-
object InfluxdbWriter "influxdb" {
//host = "127.0.0.1"
//port = 8086
/**
- * The livestatus library implements the livestatus query protocol.
+ * The LivestatusListener type implements the Livestatus query protocol.
*/
-library "livestatus"
-
object LivestatusListener "livestatus" { }
* The notification component takes care of executing service checks.
*/
-library "notification"
-
object NotificationComponent "notification" { }
* performance data to a OpenTSDB tcp socket.
*/
-library "perfdata"
-
object OpenTsdbWriter "opentsdb" {
//host = "127.0.0.1"
//port = 4242
* them in a regular interval.
*/
-library "perfdata"
-
object PerfdataWriter "perfdata" { }
* hosts and services.
*/
-library "compat"
-
object StatusDataWriter "status" { }