{"id":204306,"date":"2013-11-30T23:20:02","date_gmt":"2013-11-30T19:20:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=204306"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=204306","title":{"rendered":"<span class=\"post_title\">\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a WMI \u0447\u0435\u0440\u0435\u0437 Puppet<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4><b>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u044f<\/b><\/h4>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/2bc\/4ad\/597\/2bc4ad597fa56c86c4b7b62c07e307c8.png\"\/><br \/>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u043c\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0430\u0440\u043a\u0430 \u0436\u0435\u043b\u0435\u0437\u043d\u044b\u0445 \u0438 vm \u0445\u043e\u0441\u0442\u043e\u0432 \u2014 \u0443\u0436\u0435 \u043f\u043e\u0434 200 (\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b \u0431\u044b\u043b\u043e \u043c\u0435\u043d\u0448\u0435 100, \u044d\u0445, \u0432\u0440\u0435\u043c\u044f \u0431\u0435\u0436\u0438\u0442&#8230;) \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e \u0432\u0441\u0435 \u0436\u0435\u043b\u0435\u0437\u043e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0435\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430 \u043c\u043d\u0435 \u0432\u0435\u0441\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Opsview \u2014 \u0441\u0434\u0435\u043b\u0430\u043d \u043d\u0430 \u044f\u0434\u0440\u0435 nagios), \u0430\u0433\u0433\u0440\u0435\u0433\u0430\u0446\u0438\u044f \u043b\u043e\u0433\u043e\u0432 (\u044f \u0432\u043d\u0435\u0434\u0440\u0438\u043b Logstash, \u043e\u0431\u0430\u043b\u0434\u0435\u043d\u043d\u043e\u0435 opensource \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430 \u043c\u0435\u0441\u0442\u043e \u043d\u0443 \u043e\u043e\u043e\u0447\u0435\u043d\u044c \u0434\u043e\u0440\u043e\u0433\u043e\u0433\u043e Splunk), configuration management (puppet), \u0431\u0435\u043a\u0430\u043f\u044b, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0442\u043e\u0436\u0435 \u043d\u0430 \u043c\u043d\u0435 (MongoDB, MySQL, Redis, ElasticSearch, etc). \u0412 \u043e\u0431\u0449\u0435\u043c \u2014 \u0432\u0441\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435). \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u043e\u043d\u043a\u0430\u044f \u0433\u0440\u0430\u043d\u044c \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439, \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0447\u0430\u0441\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u0447\u0442\u043e \u043e\u043d\u0438 \u0445\u043e\u0442\u044f\u0442, \u0430 \u044f \u0443\u0436\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435\u043c. \u0425\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u0438 \u043a\u0430\u043a\u0438\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u041a\u0430\u043a\u0438\u0435 \u043f\u0440\u0438\u0436\u0438\u043b\u0438\u0441\u044c, \u0430 \u043a\u0430\u043a\u0438\u0435 \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043d\u0435\u0442.<\/p>\n<p>  \u0412 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043e\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0436\u0443 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043d\u0430 Infrastructure-as-a-code (IaaC), \u0432\u044b\u0431\u0440\u0430\u043b puppet \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0437-\u0437\u0430 \u043d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0448\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0412 \u043c\u043e\u0435\u0439 \u0441\u0435\u0442\u0438 \u0437\u043e\u043e\u043f\u0430\u0440\u043a \u0438\u0437 Windows Server 2008, Windows Server 2012, CentOS 5.5, CentOS 6.4. \u0410\u0445, \u0434\u0430, \u043f\u0430\u0440\u0443 \u0434\u0435\u0434\u0443\u0448\u0435\u043a \u043d\u0430 2003 \u2014 \u043f\u043e\u0440\u0430 \u0438\u0445 \u043d\u0430 \u043f\u0435\u043d\u0441\u0438\u044e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u2026<\/p>\n<p>  \u042f \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Puppet \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/203184\/\">\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0432 Opsvew<\/a>, \u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u00ab\u0431\u043e\u0440\u043e\u043b\u0441\u044f\u00bb \u0441 \u0433\u0435\u0442\u0435\u0440\u043e\u0433\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u043c\u043e\u0435\u0439 \u0441\u0440\u0435\u0434\u044b.<\/p>\n<h4><b>\u0417\u0430\u0434\u0430\u0447\u0430<\/b><\/h4>\n<p>  \u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e WMI \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 Windows 2008 \/ 2012. \u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0441\u0442\u0430\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0433\u043e \u00abdomain\\service-user\u00bb) \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 WMI, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a Performance Counters, Performance Logs, \u0432 \u043e\u0431\u0449\u0435\u043c \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440. \u0421\u0430\u043c\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e domain\\service-user \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u043c \u043d\u0435\u0439\u043c\u0441\u043f\u0435\u0439\u0441\u0430\u043c WMI. \u0422\u0430\u043a \u0436\u0435 \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0447\u0430\u0441\u0442\u044c\u044e \u043e\u0431\u0449\u0435\u0439 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 IaaC, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0438 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043a\u0443\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f-\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0430\u0445. \u0422.\u0435. \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e \u0447\u0442\u043e \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f \u043d\u0443\u0436\u043d\u043e, \u0430 \u043c\u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u043b\u043e:<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f domain\\service-user \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b (\u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c):<br \/>   \u2014 Certificate Service DCOM Access<br \/>   \u2014 Performance Log Users<br \/>   \u2014 Performance Monitor Users<br \/>   \u2014 Distributed COM Users.<br \/>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u00abread\u00bb \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f domain\\service-user \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043d\u0435\u0439\u043c\u0441\u043f\u0435\u0439\u0441\u044b WMI:<br \/>   \u2014 CIMV2<br \/>   \u2014 MicrosoftIISv2.<br \/>  \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, check_wmi_plus (\u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0443 Opsview Pro) \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431 IIS \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 (\u0430 \u044d\u0442\u043e \u0442\u043e \u043d\u0430\u043c \u0438 \u043d\u0430\u0434\u043e)!<\/p>\n<h4><b>\u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438<\/b><\/h4>\n<p>  \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u2014 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u0431\u044b\u0442\u044c \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u00ab\u0421\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430\u00bb \u043d\u0435\u0442. \u0412 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u044f \u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0441\u0441\u0442\u0440\u043e\u0438\u043b\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0440\u0435\u0434\u043a\u043e \u0431\u044b\u0432\u0430\u044e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043c\u043e\u0438 \u0437\u0430\u0434\u0430\u0447\u0438, \u0430 \u0435\u0441\u043b\u0438 \u0438 \u0431\u044b\u0432\u0430\u044e\u0442 \u0442\u043e \u0447\u0430\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u043e \u0438\u043b\u0438 \u043d\u0435 \u0442\u0430\u043a. <\/p>\n<p>  Puppet \u0438\u043c\u0435\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 \u00abuser\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043f\u043e \u0438\u0434\u0435\u0435, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0432\u0441\u0435\u0445 \u0437\u0430\u0434\u0430\u0447, \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u00ab\u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430\u00bb. \u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u044d\u0442\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 <a href=\"http:\/\/projects.puppetlabs.com\/issues\/17031\">\u0431\u0430\u0433<\/a> \u0438 \u0435\u0433\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c (<i>UPD: \u0443\u0436\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u0432 \u0440\u0435\u043b\u0438\u0437\u0435 3.4<\/i>), \u043d\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0442\u043e\u0434\u0432\u0438\u0433\u0430\u044e\u0442 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u043b\u0438\u0437 puppet. \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c workaround \u0432 puppet DSL \u043d\u0435 \u0443\u0432\u0435\u043d\u0447\u0430\u043b\u0430\u0441\u044c \u0443\u0441\u043f\u0435\u0445\u043e\u043c \u0438\u0437-\u0437\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 escape \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442. <\/p>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u2014 \u0432 windows \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a wmi \u043a\u043b\u0430\u0441\u0441\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u00ab\u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c\u00bb \u0432 puppet, \u0435\u0441\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0432\u044b\u0440\u044f\u0442\u044c \u0440\u0435\u0435\u0441\u0442\u0440 \u0438 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434.<\/p>\n<h4><b>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/b><\/h4>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u043f\u0440\u0438\u043d\u044f\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e, \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u0440\u043e\u0434\u043d\u043e\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0447\u0438\u043d\u0435\u043d. \u0418 \u0441\u0434\u0435\u043b\u0430\u043b \u044f \u044d\u0442\u043e\u2026 \u043e\u0431\u0435\u0440\u043d\u0443\u0432 powershell \u043a\u043e\u0434!<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">win_user.rb<\/b><\/p>\n<div class=\"spoiler_text\">  <\/p>\n<pre><code class=\"ruby\">Puppet::Type.type(:win_user).provide(:win_user) do   @doc = %q{Manage windows users and groups}   desc &quot;Manage windows users and groups&quot;   confine    :operatingsystem =&gt; :windows   defaultfor :operatingsystem =&gt; :windows \t  \tcommands :powershell =&gt; \tif File.exists?(&quot;#{ENV['SYSTEMROOT']}\\\\sysnative\\\\WindowsPowershell\\\\v1.0\\\\powershell.exe&quot;) \t  &quot;#{ENV['SYSTEMROOT']}\\\\sysnative\\\\WindowsPowershell\\\\v1.0\\\\powershell.exe&quot; \telsif File.exists?(&quot;#{ENV['SYSTEMROOT']}\\\\system32\\\\WindowsPowershell\\\\v1.0\\\\powershell.exe&quot;) \t  &quot;#{ENV['SYSTEMROOT']}\\\\system32\\\\WindowsPowershell\\\\v1.0\\\\powershell.exe&quot; \telse \t  'powershell.exe' \tend    def add_user_to_group     #   end    def exists?     #add transform to array if just a string          groups = resource[:groups]     if groups.kind_of?(String)       groups.to_a      end        found = false      groups.to_a.each do |group|       Puppet.debug(&quot;Checking the existence of value: #{self} in #{group}&quot;)       result = powershell 'if (([ADSI]&quot;WinNT:\/\/$env:computername\/'+group+'&quot;).IsMember(([ADSI]&quot;WinNT:\/\/$env:userdomain\/'+ resource[:name]+'&quot;).ADsPath) -eq $False){echo 0} else {echo 1}'                    if result.chomp == &quot;0&quot; #if not found (ps returned false on search of user in group)         Puppet.debug(&quot;User '#{resource[:name]}' is not found in group '#{group}'&quot;)         found = false #         break       else         Puppet.debug(&quot;User '#{resource[:name]}' is found in a group '#{group}'&quot;)         found = true       end     end     found   end    def create     groups = resource[:groups]     if groups.kind_of?(String)       groups.to_a      end      groups.to_a.each do |group|       Puppet.debug(&quot;Adding user to a group #{self}&quot;)       powershell 'if (([ADSI]&quot;WinNT:\/\/$env:computername\/'+group+'&quot;).IsMember(([ADSI]&quot;WinNT:\/\/$env:userdomain\/'+ resource[:name]+'&quot;).ADsPath) -eq $False){$([ADSI]&quot;WinNT:\/\/$env:computername\/'+group+'&quot;).Add(([ADSI]&quot;WinNT:\/\/$env:userdomain\/'+resource[:name]+'&quot;).ADsPath)} else {echo &quot;User is already in a group&quot;}'     end   end    def destroy        end end <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 WMI \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u0439 opensource \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 wmisecurity.exe. \u0414\u043b\u044f \u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u043f\u0430\u043a\u0435\u0442 \u043d\u0430 chocoaltey.org \u2014 <a href=\"http:\/\/chocolatey.org\/packages\/wmisecurity\">wmisecurity<\/a>. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b puppet-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 chocolatey, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e. <\/p>\n<p>  \u0418 \u0432\u043e\u0442 \u0441\u0430\u043c puppet-\u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0430\u043d\u043d\u0435\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 powershell \u0445\u0443\u043a\u0438 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a wmi \u043a\u043b\u0430\u0441\u0441\u0430\u043c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0448\u0443 \u044d\u0442\u043e \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u043e\u0437\u0434\u043d\u0435\u0435):<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">wmi.pp<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"ruby\">class packages::wmi {\t \t \t$wmiuser = 'service-user' \t \t###Doesn't work on windows right now \t#user { $wmiuser: \t#\t\tgroups =&gt; ['Certificate Service DCOM Access','Performance Log Users','Performance Monitor Users', 'Distributed COM Users'], \t#\t}  \t     win_user { $wmiuser:       groups =&gt; ['Certificate Service DCOM Access','Performance Log Users','Performance Monitor Users', 'Distributed COM Users'],       ensure =&gt; present_local,     }  \t###it is required to add user to those local groups in order monitoring to perform correctly. \t \texec {&quot;add-to-wmi-cimv2&quot;: \t\tcommand =&gt; &quot;wmisecurity.exe \/C=\\$env:computername \/A \/N=Root\/CIMV2 \/M=\\$env:userdomain\\\\$wmiuser:REMOTEACCESS \/R&quot;, \t\tpath =&gt; $::path,\t\t \t\t#if found user guid - skip \t\tonlyif =&gt; &quot;if (WmiSecurity.exe \/c=\\$env:computername \/N=Root\/CIMV2 \/R | Select-String $($(New-Object System.Security.Principal.NTAccount( \t\t\\&quot;\\$env:userdomain\\&quot;, '$wmiuser')).Translate([System.Security.Principal.SecurityIdentifier]).Value)){exit 1} else {exit 0}&quot;, \t\tprovider =&gt; powershell, \t\trequire =&gt; Package['wmisecurity'],\t \t}\t \t \texec {&quot;add-to-wmi-microsoftiisv2&quot;: \t\tcommand =&gt; &quot;wmisecurity.exe \/C=\\$env:computername \/A \/N=Root\/MicrosoftIISv2 \/M=\\$env:userdomain\\\\$wmiuser:REMOTEACCESS \/R&quot;, \t\tpath =&gt; $::path,\t\t \t\t#if found user guid - skip \t\tonlyif =&gt; &quot;if (WmiSecurity.exe \/c=\\$env:computername \/N=Root\/MicrosoftIISv2 \/R | Select-String $($(New-Object System.Security.Principal.NTAccount( \t\t\\&quot;\\$env:userdomain\\&quot;, '$wmiuser')).Translate([System.Security.Principal.SecurityIdentifier]).Value)){exit 1} else {exit 0}&quot;, \t\tprovider =&gt; powershell, \t\trequire =&gt; Package['wmisecurity'],\t \t} \t \tpackage {'wmisecurity': \t\tprovider =&gt; 'chocolatey', \t\tinstall_options =&gt; '-pre',\t\t \t\trequire         =&gt; Class[&quot;packages::chocolatey&quot;] \t} } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h4><b>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/b><\/h4>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0441\u0430\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u0430\u043b\u0435\u043a \u043e\u0442 \u0438\u0434\u0435\u0430\u043b\u0430, \u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e, \u043a\u043e\u0434 \u044f\u0432\u043d\u043e \u0433\u0440\u044f\u0437\u043d\u044b\u0439, \u043d\u043e \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u043e\u0441\u044c. \u0420\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438, \u0438 \u0434\u0443\u043c\u0430\u044e \u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0439\u0434\u0435\u0442 3.4. \u0412\u043e\u0442 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0441\u0435\u0431\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e (\u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0443\u0433\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e \u00ab\u0433\u0440\u044f\u0437\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u00bb):<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">wmi.pp<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"ruby\">class packages::wmi {\t \t \t$wmiuser = &quot;${env:userdomain}\\\\service-user&quot;\t \t \t     user { $wmiuser:       groups =&gt; ['Certificate Service DCOM Access','Performance Log Users','Performance Monitor Users', 'Distributed COM Users'],       ensure =&gt; present,     } \t \twmi_security_user { $wmiuser: \t\tnamespaces =&gt; ['Root\/CIMV2','Root\/MicrosoftIISv2'], \t\tensure =&gt; present, \t} } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043d\u0435 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 packages::wmi \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0432 \u0440\u0443\u0447\u043d\u0443\u044e \u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 include) \u0438 \u0432\u0441\u0435, puppet \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u0432\u043e\u0435 \u0434\u0435\u043b\u043e. \u041b\u0438\u0447\u043d\u043e \u044f \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u044d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441 \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u0430\u0441\u0441 opsview, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0445\u043e\u0441\u0442 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0432 opsview \u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u0442.\u0435. \u0435\u0441\u043b\u0438 \u044d\u0442\u043e, \u0441\u043a\u0430\u0436\u0435\u043c, \u0441\u0435\u0440\u0432\u0435\u0440 c IIS, \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 puppet-\u043a\u043b\u0430\u0441\u0441 \u0441\u043e\u043e\u0431\u0449\u0438\u0442 opsview \u0432\u0441\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u0445\u043e\u0441\u0442 \u0441 IIS, \u0441 \u0442\u0430\u043a\u0438\u043c\u0438-\u0442\u043e \u0438 \u0442\u0430\u043a\u0438\u043c\u0438-\u0442\u043e \u0445\u043e\u0441\u0442\u0430\u043c\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u0436\u0435 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442 \u0432 opsview \u0448\u0430\u0431\u043b\u043e\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0447\u0435\u0440\u0435\u0437 wmi, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0432\u044b\u0448\u0435. \u0412\u043e\u0442 \u0442\u0430\u043a, \u0432\u0440\u043e\u0434\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0443\u043f\u0443\u0441\u0442\u0438\u043b.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0430\u0440\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u043e\u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430:<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/d27\/977\/1b9\/d279771b9289e187a7ab1cbd7528815f.png\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/614\/d2d\/02b\/614d2d02b0b4c9d4d4997021bcd11d49.png\"\/>  <\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/204306\/\"> http:\/\/habrahabr.ru\/post\/204306\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4><b>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u044f<\/b><\/h4>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/2bc\/4ad\/597\/2bc4ad597fa56c86c4b7b62c07e307c8.png\"\/><br \/>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u043c\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0430\u0440\u043a\u0430 \u0436\u0435\u043b\u0435\u0437\u043d\u044b\u0445 \u0438 vm \u0445\u043e\u0441\u0442\u043e\u0432 \u2014 \u0443\u0436\u0435 \u043f\u043e\u0434 200 (\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b \u0431\u044b\u043b\u043e \u043c\u0435\u043d\u0448\u0435 100, \u044d\u0445, \u0432\u0440\u0435\u043c\u044f \u0431\u0435\u0436\u0438\u0442&#8230;) \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e \u0432\u0441\u0435 \u0436\u0435\u043b\u0435\u0437\u043e, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0435\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430 \u043c\u043d\u0435 \u0432\u0435\u0441\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Opsview \u2014 \u0441\u0434\u0435\u043b\u0430\u043d \u043d\u0430 \u044f\u0434\u0440\u0435 nagios), \u0430\u0433\u0433\u0440\u0435\u0433\u0430\u0446\u0438\u044f \u043b\u043e\u0433\u043e\u0432 (\u044f \u0432\u043d\u0435\u0434\u0440\u0438\u043b Logstash, \u043e\u0431\u0430\u043b\u0434\u0435\u043d\u043d\u043e\u0435 opensource \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430 \u043c\u0435\u0441\u0442\u043e \u043d\u0443 \u043e\u043e\u043e\u0447\u0435\u043d\u044c \u0434\u043e\u0440\u043e\u0433\u043e\u0433\u043e Splunk), configuration management (puppet), \u0431\u0435\u043a\u0430\u043f\u044b, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0442\u043e\u0436\u0435 \u043d\u0430 \u043c\u043d\u0435 (MongoDB, MySQL, Redis, ElasticSearch, etc). \u0412 \u043e\u0431\u0449\u0435\u043c \u2014 \u0432\u0441\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435). \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u043e\u043d\u043a\u0430\u044f \u0433\u0440\u0430\u043d\u044c \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439, \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0447\u0430\u0441\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u0447\u0442\u043e \u043e\u043d\u0438 \u0445\u043e\u0442\u044f\u0442, \u0430 \u044f \u0443\u0436\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435\u043c. \u0425\u043e\u0447\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u0438 \u043a\u0430\u043a\u0438\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u041a\u0430\u043a\u0438\u0435 \u043f\u0440\u0438\u0436\u0438\u043b\u0438\u0441\u044c, \u0430 \u043a\u0430\u043a\u0438\u0435 \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043d\u0435\u0442.<\/p>\n<p>  \u0412 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043e\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0436\u0443 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043d\u0430 Infrastructure-as-a-code (IaaC), \u0432\u044b\u0431\u0440\u0430\u043b puppet \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0437-\u0437\u0430 \u043d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0448\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0412 \u043c\u043e\u0435\u0439 \u0441\u0435\u0442\u0438 \u0437\u043e\u043e\u043f\u0430\u0440\u043a \u0438\u0437 Windows Server 2008, Windows Server 2012, CentOS 5.5, CentOS 6.4. \u0410\u0445, \u0434\u0430, \u043f\u0430\u0440\u0443 \u0434\u0435\u0434\u0443\u0448\u0435\u043a \u043d\u0430 2003 \u2014 \u043f\u043e\u0440\u0430 \u0438\u0445 \u043d\u0430 \u043f\u0435\u043d\u0441\u0438\u044e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u2026<\/p>\n<p>  \u042f \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Puppet \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/203184\/\">\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0432 Opsvew<\/a>, \u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u00ab\u0431\u043e\u0440\u043e\u043b\u0441\u044f\u00bb \u0441 \u0433\u0435\u0442\u0435\u0440\u043e\u0433\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u043c\u043e\u0435\u0439 \u0441\u0440\u0435\u0434\u044b.<\/p>\n<h4><b>\u0417\u0430\u0434\u0430\u0447\u0430<\/b><\/h4>\n<p>  \u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e WMI \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 Windows 2008 \/ 2012. \u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0441\u0442\u0430\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0433\u043e \u00abdomain\\service-user\u00bb) \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 WMI, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a Performance Counters, Performance Logs, \u0432 \u043e\u0431\u0449\u0435\u043c \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440. \u0421\u0430\u043c\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e, \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e domain\\service-user \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u043c \u043d\u0435\u0439\u043c\u0441\u043f\u0435\u0439\u0441\u0430\u043c WMI. \u0422\u0430\u043a \u0436\u0435 \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0447\u0430\u0441\u0442\u044c\u044e \u043e\u0431\u0449\u0435\u0439 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 IaaC, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0438 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043a\u0443\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f-\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0430\u0445. \u0422.\u0435. \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e \u0447\u0442\u043e \u0434\u043b\u044f \u043c\u043e\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f \u043d\u0443\u0436\u043d\u043e, \u0430 \u043c\u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u043b\u043e:  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-204306","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/204306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=204306"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/204306\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=204306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=204306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=204306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}