"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/icinga/icingaapplication.cpp" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

icingaapplication.cpp  (icinga2-2.11.5):icingaapplication.cpp  (icinga2-2.12.0)
skipping to change at line 63 skipping to change at line 63
systemNS->Set("ApplicationType", "IcingaApplication", true); systemNS->Set("ApplicationType", "IcingaApplication", true);
systemNS->Set("ApplicationVersion", Application::GetAppVersion(), true); systemNS->Set("ApplicationVersion", Application::GetAppVersion(), true);
Namespace::Ptr globalNS = ScriptGlobal::GetGlobals(); Namespace::Ptr globalNS = ScriptGlobal::GetGlobals();
VERIFY(globalNS); VERIFY(globalNS);
auto icingaNSBehavior = new ConstNamespaceBehavior(); auto icingaNSBehavior = new ConstNamespaceBehavior();
icingaNSBehavior->Freeze(); icingaNSBehavior->Freeze();
Namespace::Ptr icingaNS = new Namespace(icingaNSBehavior); Namespace::Ptr icingaNS = new Namespace(icingaNSBehavior);
globalNS->SetAttribute("Icinga", std::make_shared<ConstEmbeddedNamespaceV alue>(icingaNS)); globalNS->SetAttribute("Icinga", new ConstEmbeddedNamespaceValue(icingaNS ));
} }
REGISTER_STATSFUNCTION(IcingaApplication, &IcingaApplication::StatsFunc); REGISTER_STATSFUNCTION(IcingaApplication, &IcingaApplication::StatsFunc);
void IcingaApplication::StatsFunc(const Dictionary::Ptr& status, const Array::Pt r& perfdata) void IcingaApplication::StatsFunc(const Dictionary::Ptr& status, const Array::Pt r& perfdata)
{ {
DictionaryData nodes; DictionaryData nodes;
for (const IcingaApplication::Ptr& icingaapplication : ConfigType::GetObj ectsByType<IcingaApplication>()) { for (const IcingaApplication::Ptr& icingaapplication : ConfigType::GetObj ectsByType<IcingaApplication>()) {
nodes.emplace_back(icingaapplication->GetName(), new Dictionary({ nodes.emplace_back(icingaapplication->GetName(), new Dictionary({
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)