Commit Graph

40 Commits

Author SHA1 Message Date
Simon Murray 2e8c8809ea Add service metadata to InfluxDB Writer
Adds a new configuration variable in keeping with the graphite writer
which defaults to false to save network bandwidth.  All metrics currently
supported by graphite are now available to InfluxDB.  I added in some
formatting functions, to handle integers and booleans as we know and
control their types, and the supporting regexes in the sanity checker.

Updating to InfluxDB 0.13.X started giving 400 errors due to the missing
Host header in HTTP/1.1 requests.  HttpRequest has been updated to auto-
magically add the host and port to these requests if not explicitly
stated by the client code.

The exception code has been cleaned up to break out of the function
early if such a condition is raised, this avoids unnecessarily executing
code which will ultimately fail.

fixes #11912

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-06-08 13:23:52 +02:00
Simon Murray 899592c8ad Update InfluxDB line formatting
Fixes a couple issues to do with line formatting of influx DB data points.  All
keys and values need commas and white space escaping.  Values are also checked
for type.  If a numeric or scientific value is detected this is output as an
Influx floating point/scientific number.  Booleans are detected and output in
a canonical format.  All other values are strings, which have double quotes
escaped and the entire string is wrapped in double quotes.  The handling of
thresholds has changed before this becomes officially released.  These values
if available are passed to the accumulation function in a dictionary, said
dictionary builds a single data point with multiple fields, rather than the
existing 5 data points, thus saving bandwidth costs.

fixes #11904

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-06-08 11:01:23 +02:00
Gunnar Beutner 0eb0992d5e Fix custom notifications in a HA zone
fixes #9242
2016-06-07 12:44:12 +02:00
Jens Schanz 244bdd97aa Update documentation for the log_duration attribute
fixes #11905
2016-06-07 08:26:31 +02:00
Gunnar Beutner 7b371f20d8 Add note about check intervals
refs #11825
2016-05-24 12:42:02 +02:00
Heike Jurzik b1e1afc46a Fixes typos in chapter 6 and 7
refs #11599
2016-05-23 14:42:02 +02:00
Philipp Dallig 54e1c8a9d5 Implement exclude and include ability for TimePeriod objects
This feature allows to exclude and include specific time period
objects and their time ranges from an existing time period object.

This comes in handy when e.g. excluding holidays.

fixes #7355

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-05-21 20:33:09 +02:00
Gunnar Beutner f6f3bd1e4c Implement support for limiting the number of concurrent checks
fixes #8137
2016-05-10 11:26:55 +02:00
Lee Clemens 7050529976 Add SSL support for the IdoMysqlConnection feature
fixes #9725

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-05-03 15:01:32 +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
Michael Friedrich b9c31ce83c Documentation: Zone attribute 'endpoints' is an array
fixes #11628
2016-04-20 12:31:25 +02:00
Michael Friedrich f28997bec0 Docs: Remove instance_name from Ido*Connection example
fixes #11592
2016-04-14 16:04:29 +02:00
Michael Friedrich 2b2e250def Implement support for overriding check command timeout
fixes #9283
2016-04-07 15:07:17 +02:00
Gunnar Beutner 4412389eb6 Fix incorrect type name in the documentation
fixes #10998
2016-01-21 09:06:21 +01: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
Gunnar Beutner df1d235634 Update documentation
refs #9105
2015-11-08 01:19:38 +01:00
Michael Friedrich a3d5d2488e Update API documentation from feedback and API clients
refs #9105
2015-11-05 14:41:18 +01:00
Michael Friedrich 43976d3989 Add host.last_state_{up,down} and last_check attribute, hide *_raw attributes
fixes #10508
fixes #10509
2015-11-02 14:10:44 +01:00
Michael Friedrich 4d3020d9b3 Update API documentation
* Rename object types to config object types
* Add common config object attributes (e.g. version) overview
* add API references to troubleshooting
* add CheckResult and PerfdataValue value types (exposed via API)
* Update object types and their attributes

refs #9105
2015-11-01 13:43:26 +01:00
Michael Friedrich a3e8cf8fb1 Update documentation
refs #9105
2015-10-29 17:31:15 +01:00
Michael Friedrich 46e892cc60 Documentation: Reorganize Livestatus and alternative Frontends
fixes #10482
2015-10-28 21:21:50 +01:00
Jean Flach a879f5ea69 Improve timeperiods documentation
refs #10352
2015-10-13 13:46:39 +02:00
Michael Friedrich 30d1fa4a82 Update the api documentation
Rename /v1/hosts to /v1/objects/hosts.
Add permissions docs.
Change the url endpoints and change the host create/modify/etc
into a generic config object section.

refs #9105
2015-09-28 18:04:42 +02: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 b10cb8a2e7 Implement a better Graphite tree schema
This changes the entire tree, but with the prefix "icinga2"
not to conflict with existing installations. Includes
enable_legacy_mode and detailed documentation.

fixes #9461
fixes #8149
2015-09-06 11:10:49 +02:00
Michael Friedrich d4b3bb57cb API: First documentation draft
refs #9105
2015-08-28 17:17:51 +02:00
Gunnar Beutner f8a26d810c Remove duplicate severity type in the documentation
fixes #9992
2015-08-26 08:39:05 +02:00
Claudio Künzler 9776ae86bd Docs: Add examples for dynamic notification apply rule
Reviewed and adopted a bit.

refs #9443

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-07-08 13:12:19 +02:00
Michael Friedrich 2eaae1f733 Update documentation for ApiUser object & node wizard
fixes #9471
2015-06-25 18:03:00 +02:00
Michael Friedrich d70a70753f Documentation: Move configuration before advanced topics
fixes #9431
2015-06-16 16:48:27 +02:00
Michael Friedrich ca60591f63 Update documentation
fixes #9399
2015-06-15 11:03:45 +02:00
Michael Friedrich 08292007a8 Documentation: set_if usage with boolean values and functions
fixes #9069
2015-04-16 14:26:20 +02:00
Michael Friedrich 55017c81bd Documentation: Re-order the object types in alphabetical order
fixes #8677
2015-03-19 15:19:09 +01:00
Michael Friedrich a93b565868 Documentation: Refactor RemoteClient/Cluster/etc from community&training feedback
fixes #8318
fixes #8522
fixes #6858
2015-03-07 16:23:53 +01:00
Michael Friedrich 95ef230076 Docs: Fix typo
refs #8467
2015-02-23 14:43:44 +01:00
Gunnar Beutner b5dbc66b22 Implement the 'is_inside' attribute for the TimePeriod type
refs #8467
2015-02-23 14:08:06 +01:00
Michael Friedrich aac53c1dd1 Add 'ignore_soft_states' attribute to Dependency objects
fixes #7326
2015-02-23 10:13:20 +01:00
Gunnar Beutner a15b79f0df Update documentation 2015-02-11 11:51:58 +01:00