cluster: Add log message to config handler.

This commit is contained in:
Gunnar Beutner 2013-09-26 09:39:09 +02:00
parent 607e184a75
commit ee14e6dda7
3 changed files with 22 additions and 2 deletions

View File

@ -566,6 +566,8 @@ void ClusterListener::NewClientHandler(const Socket::Ptr& client, TlsRole role)
}
}
Log(LogInformation, "cluster", "Sending " + Convert::ToString(config->GetLength()) + " config files to endpoint '" + endpoint->GetName());
Dictionary::Ptr params = boost::make_shared<Dictionary>();
params->Set("identity", GetIdentity());
params->Set("config_files", config);

View File

@ -16,6 +16,7 @@ Attributes:
----------------|----------------
severity |**Optional.** The minimum severity for this log. Can be "debug", "information", "warning" or "critical". Defaults to "information".
----------------|----------------
FileLogger
----------
@ -560,4 +561,4 @@ Attributes:
node |**Required.** The hostname/IP address of the remote Icinga 2 instance.
service |**Required.** The service name/port of the remote Icinga 2 instance.
config\_files |TODO
accept\_config |TODO
accept\_config |TODO

View File

@ -1,2 +1,19 @@
#!/bin/sh
pandoc -f markdown_mmd *.md -o icinga2.pdf
cd -- `dirname $0`
cat <<HTML
<!DOCTYPE html>
<html>
<xmp theme="united" style="display:none;">
HTML
for file in *.md; do
cat $file
echo
done
cat <<HTML
</xmp>
<script src="http://strapdownjs.com/v/0.2/strapdown.js"></script>
</html>
HTML