Commit Graph

2306 Commits

Author SHA1 Message Date
Michael Friedrich 2036b87943 Fix NetString::ReadStringFromStream() EoF case in 'object list' command
refs 
2015-02-15 14:37:16 +01:00
Gunnar Beutner 9344ae30d0 Build fix 2015-02-15 13:09:53 +01:00
Jean Flach cc5a8da6e8 CLI: Add 'troubleshoot collect' command
By calling `icinga2 troubleshoot collect [--console]` a small file
containing basic application information and a tail of all found logs
and the latest crash report will be created [or displayed].
It does not collect config files at the moment.

refs 
2015-02-15 12:38:28 +01:00
Michael Friedrich 4a64d4991b DB IDO: Fix {host,service}checks command_line value is "Object of type 'icinga::Array'"
fixes 
2015-02-15 00:24:05 +01:00
Michael Friedrich 7a93cf8cce Don't attempt to restore program state from non-existing state file
fixes 
2015-02-14 23:39:10 +01:00
Gunnar Beutner 8903c7e379 Close TLS connections more aggressively
refs 
2015-02-14 19:14:45 +01:00
Gunnar Beutner 1c7a0d03a1 Fix a case where NetString::ReadStringFromStream might incorrectly return StatusEof
refs 
2015-02-14 18:48:33 +01:00
Gunnar Beutner 9e936cbea4 Fix unit tests for the Stream class
refs 
2015-02-14 17:40:29 +01:00
Gunnar Beutner f097e48889 Don't use separate threads for each ApiClient object
fixes 
2015-02-14 16:34:36 +01:00
Gunnar Beutner e0bbfb175c Move most of the socket I/O to a separate thread
fixes 
fixes 
2015-02-14 09:42:11 +01:00
Michael Friedrich 2ed78e82a8 Validate configured TimePeriod ranges
Requires re-throwing the hidden exceptions inside the existing
timeperiod code and validating the configured time range
strings then.

fixes 
2015-02-13 17:10:58 +01:00
Michael Friedrich 2cab6fbb9d Make the argments for the stats functions const-ref
fixes 
2015-02-13 11:29:15 +01:00
James Pharaoh 9fe52d0dc1 Make checks using 'command_endpoint' work inside HA zones
Previously there was no local processing of the executed
check result, which is mandatory inside a HA cluster.

Additionally this patch splits the command execution and
check result processing into more logical parts, executing
local checks, checks on the same command endpoint, and
remote checks.

More details in the referenced issue.

fixes 

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-02-12 17:53:50 +01:00
Michael Friedrich 8c8e80bbb0 Don't spam the log with reminder notifications not being sent
fixes 
2015-02-12 14:51:17 +01:00
Michael Friedrich 1c4501da19 DB IDO: Require schema version 1.13.0
refs 
2015-02-12 14:22:24 +01:00
Michael Friedrich 37bf9d4819 DB IDO: Fix header in sql files 2015-02-12 13:59:19 +01:00
Michael Friedrich 48fa1a1418 DB IDO: Fix duplicate entries in scheduleddowntime table
fixes 
2015-02-12 13:19:27 +01:00
Michael Friedrich 9d97094390 DB IDO: Fix duplicate entries in {host,service}depencencies table
fixes 
2015-02-12 13:19:27 +01:00
Michael Friedrich 2ae06b7a52 Implement {EN,DIS}ABLE_HOST_SVC_NOTIFICATIONS commands
fixes 
2015-02-11 16:45:52 +01:00
Michael Friedrich 24852e05c7 Move ValidateMacroString into the MacroProcessor class
refs 
2015-02-11 16:14:59 +01:00
Michael Friedrich 0d18b96c39 Resolve macros in dictionary values
refs 
2015-02-11 15:58:59 +01:00
Michael Friedrich 2cd5f3516d Fix compiler warning 2015-02-11 15:58:07 +01:00
Gunnar Beutner cb6f1043e1 Replace if( with if ( 2015-02-11 15:47:45 +01:00
Michael Friedrich 8ca57cba03 Add macro config validator for command args, env, custom attr, perfdata templates
fixes 
2015-02-11 15:32:10 +01:00
Gunnar Beutner c95d2f14a3 Fix a crash in yyerror()
refs 
2015-02-10 15:53:20 +01:00
Gunnar Beutner 43595515eb Fix off-by-one mistake for error reporting
refs 
2015-02-10 15:40:37 +01:00
Gunnar Beutner 9570b9d262 Improve error reporting for "icinga2 console"
refs 
2015-02-10 13:58:35 +01:00
Gunnar Beutner 0490fe73f7 Implement line continuation for "icinga2 console"
fixes 
2015-02-10 13:27:02 +01:00
Gunnar Beutner 2de89fe8d4 Allow funcs in the 'env' dictionary
refs 
2015-02-10 10:59:08 +01:00
Gunnar Beutner b0f7a29212 Add missing spaces in some error messages
refs 
2015-02-10 08:57:54 +01:00
Gunnar Beutner 9de7da4d2a Update validators for CustomVarObject
fixes 
2015-02-10 08:53:15 +01:00
Gunnar Beutner 898e385891 Implement argument auto-completion for short options
fixes 
2015-02-10 08:35:56 +01:00
Michael Friedrich cdfd4d6da8 node update-config: Check node name against blacklist too
fixes 
2015-02-09 18:56:17 +01:00
Gunnar Beutner f07fb97264 Fix timestamp format for the .timestamp file
fixes 
2015-02-09 15:22:55 +01:00
Gunnar Beutner 438e6dcd09 console: Don't repeat line when we're reporting an error for the last line
fixes 
2015-02-09 15:15:26 +01:00
Gunnar Beutner 96aa503dbe Disable flapping detection by default
fixes 
2015-02-09 14:23:09 +01:00
Gunnar Beutner 61684891a0 Set LC_NUMERIC=C for all processes on *NIX
fixes 
2015-02-09 14:21:42 +01:00
Michael Friedrich c219687121 Create certificate backups in 'node setup'
fixes 
2015-02-09 14:19:26 +01:00
Michael Friedrich 278c6ae52b Build fix for Windows
fixes 
2015-02-09 14:04:00 +01:00
Gunnar Beutner 97fc5bb10b Implement additional attributes for the Host class
refs 
2015-02-09 08:50:17 +01:00
Gunnar Beutner bb12704a31 Implement the Json.encode and Json.decode methods
fixes 
2015-02-09 08:14:06 +01:00
Gunnar Beutner 67e50a3d47 Config sync: Open config files in binary mode
fixes 
2015-02-09 07:44:45 +01:00
Gunnar Beutner e456cfd99c Relax the validator for Notification::users/Notification::user_groups a bit
fixes 
2015-02-08 11:03:10 +01:00
Michael Friedrich b23d58dccc Add host/service runtime macro downtime_depth
fixes 
2015-02-08 00:15:38 +01:00
Michael Friedrich 34b5a4d9b4 Trigger added downtimes immediately if checkable is Not-OK
fixes 
2015-02-08 00:08:12 +01:00
Michael Friedrich 21f86b9061 Fix authoritative zones in config sync
fixes 
refs 
2015-02-07 23:41:43 +01:00
Michael Friedrich 19c374040e Fix missing persistent_comment, notify_contact columns for acknowledgement table
fixes 
refs 
2015-02-07 23:24:16 +01:00
Michael Friedrich db9c55835f Require at least one user for notification objects (user or as member of user_groups)
fixes 
2015-02-07 23:04:01 +01:00
Michael Friedrich 9302a6d03c StatusDataWriter: Fix wrong host notification filters
fixes 
refs 
2015-02-07 22:46:34 +01:00
Michael Friedrich ea2ac81003 Remove name and return value for stats functions
fixes 
2015-02-07 22:36:17 +01:00