Commit Graph

218 Commits

Author SHA1 Message Date
Michael Insel 158ae2188e Change copyright header for 2018 2018-01-02 12:08:55 +01:00
Michael Friedrich 3673bd2201 Fix default configuration example for ElasticsearchWriter 2017-11-15 18:06:52 +01:00
Michael Friedrich 7c0a09cfb6 Rename ElasticWriter to ElasticsearchWriter
This better reflects its purpose as otherwise it would imply
that you need Elastic Stack for it. Graylog also reads from
Elasticsearch instances, this could serve as additional integration
here.
2017-11-09 15:33:10 +01:00
Gunnar Beutner f2d437e96c Implement support for migrating certificates to /var/lib/icinga2/certs
This commit includes documentation too.

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-10-20 14:06:02 +02:00
Michael Friedrich 2d8607d6b0 Enhance documentation with more details on value types for object attributes
Main focus: Object attributes and their value types. Originates from the
API Event Streams patch to document their value types. Now applied to
the entire configuration objects chapter.

The API chapter and their value types has been changed to capitalized
type identifiers.

Value types are now explicitly told about inside monitoring basics. This
has been adopted into the Icinga 2 training material a long time ago
and finds its way into the docs too.

The CheckResult and PerfdataValue value types have been moved into the
advanced topics chapter. mkdocs doesn't like multiple `#` headings in one file
and did just hide it.

Also moved the Influxdb details into the features documentation where it
belongs.

Many small references and URLs to other chapters added.
E.g. dedicated chapters for object accessor examples, to better link against
time dependent thresholds.

Can serve as patch basis and reference for ITL documentation where the
value types are missing too.

This commit also fixes the non-requirement of "legacy-timeperiod" which
also is a default template import since 2.6.

This also fixes the state mapping issue.

fixes #4015
2017-10-10 17:52:49 +02:00
Michael Friedrich cfd2a93aa6 Remove bottom-up repository.d references
refs #4799
2017-09-22 14:04:59 +02:00
Michael Friedrich 37ea6ab1fc Fix wrong certs path in ApiListener config
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner b08f5477dc Change PKI path from /etc/icinga2/pki to /var/lib/icinga2/pki
refs #5450
2017-09-12 12:52:49 +02:00
Jean Flach e19d3f57c7 Add ElasticWriter
fixes #5538
2017-09-12 12:52:49 +02:00
Michael e2bf7516bb Notification scripts: Fix duplicate variable in mail-{host,service}-notification 2017-08-14 17:34:39 +02:00
Christian Gut 0f0b6f1df9 Notification scripts: More readable & redundancy cleanup 2017-08-14 17:27:39 +02:00
Michael Friedrich f0fbcbba5b Update documentation for optional arguments and add old updated command config
See https://www.icinga.com/docs/icinga2/latest/doc/03-monitoring-basics/#notification-commands-in-27

refs #5474
2017-08-14 17:11:57 +02:00
pv2b 7dabf2fe93 Notification scripts: Make the `-4` parameter optional
Not all hosts may have the `address` attribute set, or just use
`address6` instead.

refs #5474
2017-08-14 17:11:57 +02:00
Michael Friedrich 6397fedc3d Remove experimental redis feature before 2.7 release 2017-06-20 11:52:24 +02:00
Michael Friedrich f5d3428563 Notification Scripts: Ensure that mail from address works on Debian/RHEL/SUSE (mailutils vs mailx)
fixes #5299
2017-06-16 20:54:24 +02:00
Marianne Spiller 8f670fd96a notification_type mandatory
Make $notification_type$ mandatory in mail-service-notification, too.
2017-06-07 09:54:30 +02:00
Michael Friedrich 1e153f14d7 zones.conf: Add global-templates & director-global by default
This makes it easier for cluster and client setups with or
without the Icinga Director.

Note: Clients will still not receive synced configuration if
accept_config is not enabled (which is the default, and can be changed
during setup).

fixes #5106
2017-06-02 10:54:35 +02:00
Michael Friedrich aa2408f2c7 Fix verbose mode in notifications scripts
Otherwise it just spams the syslog on frequent notifications

refs #5170
2017-05-24 14:36:52 +02:00
Michael Friedrich 52d986d02b Revert "Add LogstashWriter feature"
This reverts commit f5a971f5b0.

refs #4054
2017-05-23 12:05:01 +02:00
Michael Friedrich 4c7660190f Revert "Review LogstashWriter feature implementation"
This reverts commit bd5ff814f2.

refs #4054
2017-05-23 12:04:08 +02:00
Michael Friedrich 7b9f478bc1 Check for required parameters in notification scripts; add error helpers
refs #5170
2017-05-10 13:23:39 +02:00
Michael Friedrich 91ab8551c7 First review of notification script changes
refs #5170
2017-05-09 17:53:52 +02:00
Marianne M. Spiller 82a5c5a624 Add notification command parameters to the default mail notification script
Replace the previous notification scheme - now using getops in place of ENV
variables, giving the ability to integrate with the Icinga Director.

refs #5170

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-05-09 17:53:52 +02:00
Michael Friedrich 3649a5a0d7 InfluxdbWriter: Use a work queue for async message processing; add stats log/api 2017-05-05 17:56:51 +02:00
Michael Friedrich bd5ff814f2 Review LogstashWriter feature implementation
refs #4054
2017-03-20 14:30:03 +01:00
Kai Goller f5a971f5b0 Add LogstashWriter feature
This adds the UdpSocket class.

refs #4054
2017-03-20 14:30:03 +01:00
Michael Friedrich 3e98e3fb2c Better error handling and fixes
refs #4991
2017-03-14 15:18:39 +01:00
Gunnar Beutner 31650b0beb Add RedisWriter class
refs #4991
2017-02-09 16:40:11 +01:00
Gunnar Beutner 78cd56e277 Implement support for default templates
fixes #12575
2016-08-28 10:27:43 +02:00
Gunnar Beutner aba62ec0b3 Fix missing constants on Windows
refs #10722
2016-08-23 13:30:50 +02:00
Michael Friedrich 9a455f0c3d icinga2.conf: Include plugins-contrib, manubulon, windows-plugins, nscp by default
This helps a lot when configuring client checks as command endpoint
where the check command definitions are both used on the master
and the client.

fixes #10722
2016-08-16 11:17:29 +02:00
Gunnar Beutner 1c6c4859e1 Fix incorrect variable name in the hosts.conf example config for Windows
fixes #11894
2016-06-06 09:53:43 +02:00
Simon Murray 79c1e883d1 Add InfluxDB Writer
Adds an Icinga2 object to directly interface with InfluxDB's native HTTP API.
This supports optional basic authorization, and TLS transport.  InfluxDB didn't
appear to like having the TLS stream kept open, so instead this object buffers
data points which are then flushed to InfluxDB as a batch write, either driven
by a configurable timeout or threshold.

As InfluxDB is a schema-less database the host and service templates are user
configurable allowing both the measurement field and tags to be set by the
end user via macro expansion.  This allows access to tag fields from arbitrary
data associated with host.vars or service.vars.  If a particular value is
unable to be resolved, the tag will be dropped and not transmitted to InfluxDB.

Also alters URL handling to omit array brackets when only a single value is
attached to a key, otherwise InfluxDB has a strop with non-standard syntax.

fixes #10480

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-05-03 14:12:51 +02:00
Daniil Yaroslavtsev d739675799 GelfWriter: Add additional fields for 'CHECK RESULT' events
fixes #9858
2015-12-18 11:05:38 +01:00
Michael Friedrich 9289971829 Remove IcingaStatusWriter feature
fixes #10140
2015-11-26 19:30:40 +01:00
Michael Friedrich 84536da221 Implement global modified attributes for the IcingaApplication class
fixes #9859
2015-09-23 15:02:53 +02:00
Michael Friedrich fcf2f0ef5d Deprecate IcingaStatusWriter feature
fixes #8741
2015-09-14 10:36:06 +02:00
Michael Friedrich fca7a33aac Implement config file management for the API
refs #9083

fixes #9102
fixes #9103
fixes #9104

fixes #9705
2015-07-23 17:57:24 +02:00
Gunnar Beutner ccd63b9d15 Implement the include_zones directive
refs #9083
2015-07-21 09:32:17 +02:00
Gunnar Beutner eadd516116 Include <nscp> in the default Windows config
fixes #9260
2015-05-13 08:45:04 +02:00
Gunnar Beutner 867ed87892 Re-add disk and icinga services in the Windows config
fixes #9259
2015-05-13 08:43:58 +02:00
Michael Friedrich da4ed19fc4 Remove wrong 'ignore where' expression from 'ssh' apply example
fixes #9188
2015-04-27 14:34:50 +02:00
Michael Friedrich 0d9dfeeb93 Configuration: Default max_check_attempts should be lower for hosts than for services
fixes #8894
2015-04-17 17:53:27 +02:00
Jean Flach a7a0eca8b2 Add CheckCommands and documentation on Windows plugins
fixes #8180
fixes #8850
2015-03-26 10:56:06 +01:00
Louis Sautier 2d455efcd8 Make default notifications include users from host.vars.notification.mail.users
fixes #8830

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-03-20 15:58:19 +01:00
Jean Flach d490b0f15c Remove http_vhosts config from Windows
There is no check_http planed for Windows

fixes #8762
2015-03-16 13:15:54 +01:00
Tobias von der Krone 2a076e8283 Remove leading slash and extra blank line in constants.conf.cmake
refs #7209
2015-02-24 16:36:05 +01:00
Gunnar Beutner d6812a7703 Rename the PluginsContribDir constant to PluginContribDir
fixes #8509
2015-02-23 15:35:55 +01:00
Dirk Goetz 7f368c0e18 Add contributed command definitions
fixes #7209
fixes #7292
fixes #7294

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-02-18 15:43:27 +01:00
Gunnar Beutner bb033b5ce3 Fall back to using address6 when the address attribute is not set
fixes #8259
2015-02-13 11:52:50 +01:00