Commit Graph

7532 Commits

Author SHA1 Message Date
Gunnar Beutner a8209c1a1a Change which instance is responsible for initiating notifications in a HA setup
refs #9242
2016-06-14 07:57:52 +02:00
Gunnar Beutner eb4aa4415c Fix cluster permissions for SendNotifications messages
refs #9242
2016-06-13 11:13:25 +02:00
Gunnar Beutner cb01f96dad Don't forward SendNotifications messages to non-local zones
refs #9242
2016-06-13 10:48:59 +02:00
Markus Frosch 8808e709c9 Make change to OK always a hard state
refs #11654
2016-06-13 10:43:57 +02:00
Gunnar Beutner 9e29a3f8a0 Fix default behavior when none of the specified objects pass the user's permission filter
fixes #11926
2016-06-13 10:14:10 +02:00
Markus Frosch a5abe1a972 Allow debugging of Utility::GetTime
So we can run unit tests that expect a certain behavior based on time.

When Icinga 2 is compiled with I2_DEBUG one can use Utility::SetTime to
override the current system time, and lock it to this value.

fixes #11875
2016-06-09 14:25:51 +02:00
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
Gunnar Beutner ac3ae3194b Update AUTHORS
refs #11905
2016-06-07 08:26:45 +02:00
Jens Schanz 244bdd97aa Update documentation for the log_duration attribute
fixes #11905
2016-06-07 08:26:31 +02:00
Michael Friedrich 98a03826dc Update AUTHORS
refs #11903
2016-06-06 14:04:00 +02:00
Evgeni Golov 6e77c7e56f Docs: Fix formatting of client reload cli command
fixes #11903

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-06-06 14:02:59 +02:00
Claudio Kuenzler f125cdf595 ITL: Add CIM port parameter for esxi_hardware CheckCommand
fixes #11869

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-06-06 13:46:52 +02:00
Michael Friedrich 8b742e841f Ensure that obsolete comment/downtime objects are deleted after activating objects
Config validation shouldn't be able to purge the files, only on
restart.

fixes #11890
2016-06-06 13:07:49 +02:00
Gunnar Beutner 7a7a8c7779 Add "fuse.gvfsd-fuse" to the list of excluded file systems for check_disk
fixes #11887
2016-06-06 09:55:46 +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
Michael Friedrich 0ce41399e0 DB IDO: Ensure to delete outdated comments/downtimes for host/service objects
fixes #11688
2016-06-03 14:40:37 +02:00
Michael Friedrich 88dff68567 Documentation: Fix missing quotes for API action URL
fixes #11847
2016-05-25 21:19:33 +02:00
Michael Friedrich 2356ec021a node setup: Add a note for --endpoint syntax for client-master connection
fixes #11793
2016-05-25 10:24:18 +02:00
Evgeni Golov 5a011fcb28 Docs: Use HTTPS for debmon.org
Except for apt itself, as that needs the non-default apt-transport-https

fixes #11837

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-05-25 09:57:04 +02:00
Gunnar Beutner 99735a5b2d Fix dependencies for the unit tests
fixes #11832
2016-05-24 13:49:37 +02:00
Gunnar Beutner 7b371f20d8 Add note about check intervals
refs #11825
2016-05-24 12:42:02 +02:00
Gunnar Beutner aeb7a4a70b Fix incorrect check interval for SOFT->HARD transitions
fixes #11825
2016-05-24 11:05:29 +02:00
Heike Jurzik 1fbb653f94 Fixes typos, dashes and some punctuation mark
refs #11599
2016-05-23 14:45:01 +02:00
Heike Jurzik 65e1cb83de Changes hyphens (-) to en dashes (typography)
refs #11599
2016-05-23 14:45:00 +02:00
Heike Jurzik a54c61df7f Fixes some grammar issues in chapters 12 and 13
refs #11599
2016-05-23 14:42:02 +02:00
Heike Jurzik 4607d22241 Fixes grammar and punctuation issues in chapters 8, 9, and 10
refs #11599
2016-05-23 14:42:02 +02:00
Heike Jurzik b1e1afc46a Fixes typos in chapter 6 and 7
refs #11599
2016-05-23 14:42:02 +02:00
Heike Jurzik 1aa0193741 Fixes some typos in chapter 5
refs #11599
2016-05-23 14:42:02 +02:00
Heike Jurzik acebae7ba8 Fixes some typos in chapter 4
refs #11599
2016-05-23 14:42:02 +02:00
Heike Jurzik 1f7a5b685f Fixes some typos/grammar issues and some code blocks
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
Michael Friedrich d49b63d2ab Fix: First HARD state does not change retry_interval to check_interval
refs #11825
2016-05-21 18:58:19 +02:00
Michael Friedrich 3f1a9f150b Silence compiler warnings
refs #11823
2016-05-21 14:16:47 +02:00
Michael Friedrich b4843dc81b Fix: Volatile check results for OK->OK transitions are logged into DB IDO statehistory
fixes #11823
2016-05-21 13:41:43 +02:00
Michael Friedrich e27dee5476 Windows: Fix missing path for repository handler
fixes #11817
2016-05-21 13:05:35 +02:00
Gunnar Beutner 71e5fff6f6 Merge branch 'support/2.4' 2016-05-19 13:42:40 +02:00
Gunnar Beutner 073a958d85 Release version 2.4.10 2016-05-19 13:39:29 +02:00
Gunnar Beutner f8eb29f139 Release version 2.4.10 2016-05-19 13:39:19 +02:00
Gunnar Beutner 232c299a7a Fix 100% CPU usage issue and incorrect pending checks accounting in CheckerComponent::CheckThreadProc
fixes #11806
2016-05-19 13:15:00 +02:00
Gunnar Beutner 89abe1fe65 Merge branch 'support/2.4' 2016-05-19 09:56:10 +02:00
Gunnar Beutner 597d1c3d89 Release version 2.4.9 2016-05-19 09:55:19 +02:00
Gunnar Beutner e2f106b7ca Release version 2.4.9 2016-05-19 09:55:08 +02:00
Gunnar Beutner 37463741f1 Open the command pipe with O_RDWR
fixes #11807
2016-05-19 09:50:55 +02:00
Gunnar Beutner 0e76876228 Fix exception in PerfdataWriter::RotateFile
fixes #11801
2016-05-19 09:50:55 +02:00
Gunnar Beutner 9687e27c38 Fix crash in ConfigItem::Commit
fixes #11804
2016-05-19 09:50:55 +02:00
Gunnar Beutner 78705e74f3 Open the command pipe with O_RDWR
fixes #11807
2016-05-18 15:52:29 +02:00
Gunnar Beutner b99b373b6f Fix 100% CPU usage issue and incorrect pending checks accounting in CheckerComponent::CheckThreadProc
fixes #11806
2016-05-18 14:30:36 +02:00
Gunnar Beutner bb69540b32 Fix exception in PerfdataWriter::RotateFile
fixes #11801
2016-05-18 14:01:32 +02:00