Gunnar Beutner
701961b73b
Fix the 'type' attribute for the Object class
...
refs #10387
2015-11-05 10:29:02 +01:00
Michael Friedrich
5d46f661ea
Implement 'console' cli command using the API
...
fixes #10387
2015-11-04 16:01:06 +01:00
Gunnar Beutner
e3efe208bb
Fix spelling mistake in 'node wizard'
2015-10-29 08:14:56 +01:00
Gunnar Beutner
15addb4e7c
Use the correct zone name for parent_zone when running 'icinga2 node update-config'
...
fixes #10479
2015-10-29 08:14:55 +01:00
Gunnar Beutner
dd77863910
Implement Array::ToString and Dictionary::ToString
...
fixes #10329
2015-10-26 11:05:24 +01:00
Mhd Sulhan
977d94839b
CLI: Hide "Command options" if command is null
...
Before this commit, if icinga2 command executed without any argument,
the program will print empty "Command options".
While at it, clean the whitespaces.
fixes #10439
Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-10-26 08:05:09 +01:00
Gunnar Beutner
12015e0eca
Clean up the 'api setup' command a bit more
...
refs #9471
2015-10-26 07:03:41 +01:00
Gunnar Beutner
b72ba2b63a
Fix incorrect return value for ApiSetupUtility::SetupMaster
...
refs #9471
2015-10-25 19:57:57 +01:00
Gunnar Beutner
f31837a6ba
Clean up the 'api setup' command
...
refs #9471
2015-10-22 16:03:26 +02:00
Gunnar Beutner
3c6f0e31d9
Make sure the timer thread is gone when calling fork()
...
refs #10410
2015-10-20 23:02:11 +02:00
Jean Flach
6b92c6028b
Reword nodeutility output
...
The old comment had a few minor problems:
* Two spaces after 'named'
* No space between // and the begining of the message
* Incorrect capitalization
And one major:
* Incorrectly calling a zone a node
But all of this is subject to change through the use of the configwriter
anyways.
fixes #10406
2015-10-20 12:56:26 +02:00
Gunnar Beutner
d01f09f3ef
Hide internal attributes in the API
...
fixes #10393
2015-10-20 08:25:10 +02:00
Gunnar Beutner
2484016c54
Fix crash in RepositoryUtility::AddObject
...
fixes #10326
2015-10-13 09:15:06 +02:00
Gunnar Beutner
425a1a0166
Implement API permissions
...
fixes #9088
2015-09-28 14:30:46 +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
f7b5aa33ce
Fix a couple of wrong white spaces
2015-09-18 13:04:09 +02:00
Gunnar Beutner
6fa58a520c
Implement config object sync
...
Adds object version.
refs #9927
2015-09-17 14:20:43 +02:00
Michael Friedrich
da83bae660
Rename config/modules to config/packages
...
fixes #9953
2015-09-01 20:09:04 +02:00
Michael Friedrich
ce99dce3cb
Remove unused variable
...
fixes #10034
refs #9872
2015-08-28 17:40:18 +02:00
Jean Flach
f1a1dfb26e
Update use of String::Trim()
...
fixes #9704
2015-08-27 18:06:20 +02:00
Gunnar Beutner
2109944580
Fix: Console auto-completion should take into account parent classes' prototypes
...
fixes #9843
2015-08-26 09:02:31 +02:00
Gunnar Beutner
1f63bcb1b3
Remove unused argument 'async'
...
refs #9972
2015-08-26 06:57:24 +02:00
Michael Friedrich
7eca257784
Fix return value of Utility::MkDir/MkDirP
...
None as there are exceptions thrown.
fixes #9689
2015-08-24 15:11:49 +02:00
Gunnar Beutner
5a72eaa768
Make sure the serial number field is always initialized
...
fixes #9947
2015-08-18 15:05:53 +02:00
Gunnar Beutner
d8cab2f0e8
Add 'override' keyword to methods
...
refs #9929
2015-08-18 12:45:30 +02:00
Michael Friedrich
0f5287c2b1
Add module attribute for ConfigObject and set its origin
...
fixes #9852
2015-08-17 16:08:57 +02:00
Gunnar Beutner
071d2f18fb
Rename DynamicObject/DynamicType to ConfigObject/ConfigType
...
fixes #9914
2015-08-15 20:40:41 +02:00
Gunnar Beutner
e2290d5012
Implement support for unregistering objects
...
refs #9101
2015-08-15 20:07:11 +02:00
Gunnar Beutner
d7d16d3f36
Fix crash in ScriptFrame::~ScriptFrame in debug builds
...
fixes #9868
2015-08-11 07:12:49 +02:00
Gunnar Beutner
38d2464ab2
Remove color codes in the console prompt
...
fixes #9872
2015-08-11 07:05:55 +02:00
Gunnar Beutner
aa00f4183a
Get rid of code duplication in ConfigWriter/ConsoleCommand
...
refs #9099
2015-08-11 06:47:08 +02:00
Michael Friedrich
fc1049fb68
Fix node wizard ignoring local zone name
...
fixes #9782
2015-08-03 16:23:59 +02:00
Michael Friedrich
0a1dad0a8f
Fix broken cluster config sync w/ latest api changes
...
Apart from dropping the requirement of adding 'include_zones "etc", "zones.d"'
on upgrade to 2.4, we've forgotten to register the local zone directory into
the new ZoneFragment tree.
This fix adds a new function to register the local zones.d directory.
After that the config sync works again.
fixes #9735
2015-07-26 17:57:34 +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
Michael Friedrich
84d83a4453
'node wizard/setup' should always generate new certificates
...
Unless an existing certificate is found. The configuration
(api feature, user) is always generated including a backup.
fixes #9590
2015-07-08 15:32:47 +02:00
Michael Friedrich
f123c8218d
Split ApiSetupUtility::SetupMaster() into multiple functions
...
refs #9590
2015-07-08 15:32:11 +02:00
Jean-Marcel Flach
a98d2f585d
Implement URL parser
...
fixes #9470
2015-07-07 15:33:19 +02:00
Michael Friedrich
f4aeb1999c
Cli: Don't add empty host/port endpoint attributes in node wizard
...
refs #9205
refs #9536
2015-07-03 12:58:54 +02:00
Michael Friedrich
2eaae1f733
Update documentation for ApiUser object & node wizard
...
fixes #9471
2015-06-25 18:03:00 +02:00
Michael Friedrich
ee035ae001
Fix unity build
...
refs #9471
2015-06-25 17:20:23 +02:00
Michael Friedrich
3e3588b9fb
Cli: Still ask for CN in 'node wizard'
...
refs #9471
2015-06-25 13:28:16 +02:00
Michael Friedrich
ec3f1c6320
Cli: 'node setup' on the master uses 'api setup' if api feature is disabled
...
refs #9471
2015-06-25 11:00:25 +02:00
Michael Friedrich
5249e4af11
Cli: 'node wizard' on the master uses 'api setup' if api feature is disabled
...
refs #9471
2015-06-25 11:00:12 +02:00
Michael Friedrich
0d977b9d48
Allow to pass cn to ApiSetupUtility::SetupMaster()
...
refs #9471
2015-06-25 10:40:50 +02:00
Michael Friedrich
663f09e475
Only run 'api setup' if the feature was not enabled
...
It is safe to assume that the user either did run
'node wizard' or 'node setup' in >= 2.3.x before, or
manually enabled the api feature and deployed the
certificates (otherwise Icinga2 wouldn't start either).
In that case we'll skip the api setup to ensure that we
don't override any existing configuration at all.
refs #9471
2015-06-25 10:21:18 +02:00
Michael Friedrich
6f43162efa
Add feature enable/disable helpers
...
refs #9471
2015-06-25 10:14:19 +02:00
Michael Friedrich
7b0b04ba8f
Implement 'api setup' cli command & add ApiUser config
...
refs #9471
2015-06-25 10:08:34 +02:00
Michael Friedrich
99a0c7b157
Fix wrong preprocessor macros
2015-06-24 14:13:54 +02:00
Benedikt Heine
7cd0077ab5
node setup: indent accept_config and accept_commands
...
fixes #9450
Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-06-19 09:07:51 +02:00
Jean Flach
f907a7f617
Fix Port wrong default port in Node Wizard
...
fixes #9205
2015-04-30 12:52:35 +02:00
Michael Friedrich
ab8dbd71e2
Rewrite some of the wizard questions
...
refs #8891
2015-04-27 11:10:49 +02:00
Michael Friedrich
9b8eea3579
CLI: Be less verbose in 'node update-config'
...
fixes #9116
2015-04-20 14:58:08 +02:00
Jean-Marcel Flach
9ae8a09b7e
Refactor code
...
fixes #9112
2015-04-20 11:45:01 +02:00
Jean-Marcel Flach
e1101b9637
Change node wizard flow
...
fixes #8891
2015-04-20 11:45:00 +02:00
Jean-Marcel Flach
9c45ab7d66
Fix troubleshooht command truncating crash logs
...
fixes #9064
2015-04-16 16:17:12 +02:00
Gunnar Beutner
d93bcedaad
Implement sandbox mode for the config parser
...
fixes #9068
2015-04-16 08:48:17 +02:00
Jean-Marcel Flach
f9d5846e30
Make node wizard only accept y/Y and n/N
...
fixes #8917
2015-03-31 09:28:03 +02:00
Jean-Marcel Flach
8e73d72447
Add accept config/commands option to node setup
...
fixes #8803
2015-03-30 13:20:47 +02:00
Gunnar Beutner
72a7b08480
Move implementation code from thpp files into separate files
...
fixes #8890
2015-03-28 11:08:12 +01:00
Gunnar Beutner
ec7224e3ed
Generate C++ code for type validators
...
fixes #7709
fixes #8867
2015-03-27 07:59:27 +01:00
Gunnar Beutner
2c4f913a90
Fix crash in ConsoleCommand::Run
...
refs #8791
2015-03-18 14:29:02 +01:00
Gunnar Beutner
3e08f2e0b5
Make order for deferred initializers deterministic
...
refs #8791
2015-03-18 13:24:31 +01:00
Gunnar Beutner
6c96d5bc98
Clean up the start-up process a bit
...
fixes #8791
2015-03-18 11:14:51 +01:00
Gunnar Beutner
fec1266b1b
Add auto-completion suggestions for built-in attributes
...
refs #8776
2015-03-18 08:19:36 +01:00
Gunnar Beutner
a2b701ad44
Improve auto-completion for the 'icinga2 console' command
...
refs #8776
2015-03-18 08:10:32 +01:00
Gunnar Beutner
cd9dfd5744
Implement auto-completion support for 'icinga2 console'
...
refs #8776
2015-03-18 07:17:15 +01:00
Gunnar Beutner
37736caa5c
Implement support for libedit
...
fixes #8776
2015-03-17 15:05:47 +01:00
Louis Sautier
1eef0243c6
Remove prompt to create a TicketSalt from the wizard
...
fixes #8766
Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-03-16 15:24:58 +01:00
Gunnar Beutner
fd9dc32a3d
Implement SNI support for the TlsStream class
...
fixes #8610
2015-03-05 14:15:42 +01:00
Gunnar Beutner
ac7a55cf56
Fix file descriptor leak in SetDaemonIO
2015-03-03 07:36:43 +01:00
Gunnar Beutner
7c31654552
Remove the return type for Utility::LoadExtensionLibrary
2015-03-03 07:19:34 +01:00
Jean Flach
4d0ee2a7fd
Americaniz(s)e colo(u)r in troubleshoot cli
2015-03-02 16:42:38 +01:00
Michael Friedrich
97ff17eb4e
Fix troubleshooting cli hint text
...
refs #3446
2015-03-02 15:28:02 +01:00
Michael Friedrich
1f9a719712
Fix output formatting in troubleshoot cli command
...
refs #3446
2015-03-02 14:37:58 +01:00
Gunnar Beutner
5df3010826
Remove unused variable in PkiUtility::SignCsr
2015-03-02 13:32:08 +01:00
Gunnar Beutner
7aaa6975fc
Remove unnecessary SubStr call
2015-03-02 13:30:37 +01:00
Gunnar Beutner
8a062a688b
Remove redundant checks
2015-03-02 13:21:06 +01:00
Jean-Marcel Flach
e39896df15
Add more colour to troubleshoot cli
2015-03-02 13:17:49 +01:00
Jean-Marcel Flach
96583857c0
Fix whitespace
2015-03-02 12:35:58 +01:00
Jean-Marcel Flach
68e7de7e59
Work on troubleshoot cli
...
Changes the format timestamps are displayed.
--include-vars and --include-objects now print to console if --console
is given.
Also fixes two memory leaks.
fixes #8564 #8563
refs 3446
2015-03-02 12:21:34 +01:00
Gunnar Beutner
f1509d2f10
Fix uninitialized variable in DaemonUtility::ValidateConfigFiles
...
Coverity bug ID: 1272330
2015-03-02 10:14:14 +01:00
Jean-Marcel Flach
ba9cf9e4c2
Add message concerning file compression to troubleshoot cli
2015-03-02 09:35:04 +01:00
Jean-Marcel Flach
9ed21563ff
Use RequestShutdown with exitcode instead of Application::Exit
...
fixes #8436
2015-02-27 14:43:30 +01:00
Jean-Marcel Flach
07fd4e6031
Add colours to troubleshoot cli
...
refs #3446
2015-02-27 14:09:26 +01:00
Jean-Marcel Flach
d084effa4b
Change behaviour of troubleshoot cli parameters
2015-02-26 13:30:48 +01:00
Jean-Marcel Flach
cc99406dd3
Add --include-vars and --include-objects troubleshoot cli
...
refs #3446
2015-02-26 12:43:43 +01:00
Michael Friedrich
93d390873d
Fix Livestatus tests on Windows
...
fixes #8486
2015-02-26 11:14:55 +01:00
Jean-Marcel Flach
150353d88f
Remove --include-objects option from troubleshoot for now
2015-02-25 15:40:24 +01:00
Jean-Marcel Flach
19e160ce92
Fix some whitespace
2015-02-25 13:49:41 +01:00
Jean-Marcel Flach
dd6691537b
Fix troubleshoot not writing everything to file
2015-02-25 11:08:55 +01:00
Jean-Marcel Flach
a28685d139
Rename troubleshootCollectCommand to troubleshootCommand
2015-02-25 09:55:35 +01:00
Gunnar Beutner
9cd681148d
Fix crash in 'icinga2 console'
...
fixes #8516
2015-02-24 12:52:10 +01:00
Gunnar Beutner
4e27ded7ce
Fix off-by-one mistake in error reporting for 'icinga2 console'
...
fixes #8500
2015-02-21 13:19:04 +01:00
Michael Friedrich
4e1c754786
Cli: Don't validate config objects in 'node update-config'
...
refs #8488
2015-02-20 21:34:59 +01:00
Michael Friedrich
9ae9204df2
Cli: Don't parse objects/changes on each AddObject() call
...
refs #8488
2015-02-20 17:05:00 +01:00
Jean Flach
8402d64fd9
Fix a Windows build error
2015-02-20 16:59:10 +01:00
Jean Flach
41f7ec9c8e
Improve coding style conformation
...
refs #3446
2015-02-20 16:13:25 +01:00
Michael Friedrich
6455ef6b0a
Cli: More code style fixes in 'troubleshoot' command
...
refs #3446
2015-02-20 15:27:53 +01:00
Jean Flach
e8e6b187b7
Enforce coding style
2015-02-20 14:14:34 +01:00