mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 00:54:30 +02:00
compatido: dump RETAINED config types only, quickfix, now icinga web shows some stuff
This commit is contained in:
parent
81c3f07f13
commit
35d3bbd50e
@ -211,11 +211,11 @@ void CompatIdoComponent::StartConfigDump()
|
|||||||
struct timeval now;
|
struct timeval now;
|
||||||
gettimeofday(&now, NULL);
|
gettimeofday(&now, NULL);
|
||||||
|
|
||||||
/* IDOMOD_CONFIG_DUMP_ORIGINAL=1 is the default config type */
|
/* configtype =1 (original), =2 (retained == default) */
|
||||||
stringstream message;
|
stringstream message;
|
||||||
message << "\n\n"
|
message << "\n\n"
|
||||||
<< 900 << ":" << "\n" /* startconfigdump */
|
<< 900 << ":" << "\n" /* startconfigdump */
|
||||||
<< 245 << "=" << 1 << "\n" /* configdumptype */
|
<< 245 << "=" << "RETAINED" << "\n" /* configdumptype */
|
||||||
<< 4 << "=" << now.tv_sec << "." << now.tv_usec << "\n" /* timestamp */
|
<< 4 << "=" << now.tv_sec << "." << now.tv_usec << "\n" /* timestamp */
|
||||||
<< 999 /* enddata */
|
<< 999 /* enddata */
|
||||||
<< "\n\n";
|
<< "\n\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user