mirror of https://github.com/Icinga/icinga2.git
Compat: implemented log_path config getter (no functionality yet)
fixes #2796
This commit is contained in:
parent
0932f00edb
commit
0de681be5d
|
@ -55,6 +55,20 @@ String CompatComponent::GetObjectsPath(void) const
|
||||||
return objectsPath;
|
return objectsPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the log path.
|
||||||
|
*
|
||||||
|
* @returns log path
|
||||||
|
*/
|
||||||
|
String CompatComponent::GetLogPath(void) const
|
||||||
|
{
|
||||||
|
Value logPath = GetConfig()->Get("log_path");
|
||||||
|
if (logPath.IsEmpty())
|
||||||
|
return Application::GetLocalStateDir() + "/log/icinga2/compat";
|
||||||
|
else
|
||||||
|
return logPath;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the icinga.cmd path.
|
* Retrieves the icinga.cmd path.
|
||||||
*
|
*
|
||||||
|
|
|
@ -44,6 +44,7 @@ private:
|
||||||
|
|
||||||
String GetStatusPath(void) const;
|
String GetStatusPath(void) const;
|
||||||
String GetObjectsPath(void) const;
|
String GetObjectsPath(void) const;
|
||||||
|
String GetLogPath(void) const;
|
||||||
String GetCommandPath(void) const;
|
String GetCommandPath(void) const;
|
||||||
|
|
||||||
void DumpDowntimes(ofstream& fp, const DynamicObject::Ptr& owner);
|
void DumpDowntimes(ofstream& fp, const DynamicObject::Ptr& owner);
|
||||||
|
|
Loading…
Reference in New Issue