Fixed: Make sure required rrd directory exists.

--HG--
branch : develop
hg/ark
Nimetu 5 years ago
parent e3b0cdeadf
commit b822f1388e

@ -221,6 +221,13 @@ namespace ADMIN
fclose(fp); fclose(fp);
} }
string rrddirname = CPath::standardizePath (IService::getInstance()->ConfigFile.getVar("RRDVarPath").asString());
if (!NLMISC::CFile::isExists(rrddirname))
{
CFile::createDirectory(rrddirname);
CFile::setRWAccess(rrddirname);
}
return true; return true;
} }

Loading…
Cancel
Save