{"id":1455,"date":"2013-01-16T11:36:14","date_gmt":"2013-01-16T05:36:14","guid":{"rendered":"http:\/\/notes.norfolks.org\/?p=1455"},"modified":"2013-07-12T02:03:15","modified_gmt":"2013-07-11T20:03:15","slug":"%d1%83%d0%b4%d0%b0%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-centreon","status":"publish","type":"post","link":"https:\/\/notes.norfolks.fun\/?p=1455","title":{"rendered":"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 Centreon"},"content":{"rendered":"<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 Mysql \u043f\u043e\u0434 \u0440\u0443\u0442\u043e\u043c \u0438 \u043f\u0438\u0448\u0435\u043c:<\/p>\n<pre lang=\"mysql\">DROP USER 'centreon'@'localhost';\r\nDROP USER 'ndoutils'@'localhost';\r\nDROP DATABASE centstats;\r\nDROP DATABASE centreon;\r\nDROP DATABASE ndoutils;<\/pre>\n<p>\u0410 \u0442\u0430\u043a \u0436\u0435:<\/p>\n<pre lang=\"mysql\">drop database centstatus;\r\n drop database centstorage;\r\n<\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 Centreon&#8217;\u043e\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0438\u0437 <code>\/etc\/sudoers<\/code><\/p>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 centreon&#8217;\u0430:<\/p>\n<pre lang=\"bash\">rm -rf \/etc\/centreon \/var\/lib\/centreon \/usr\/local\/centreon \/usr\/lib\/nagios\/plugins\/*centreon*<\/pre>\n<p>\u0438 \u0447\u0438\u0441\u0442\u0438\u043c \u043e\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 Centreon&#8217;a \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <code>\/etc<\/code>:<\/p>\n<pre lang=\"bash\">find \/ -name *cent* -delete<\/pre>\n<p>\u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u043e\u0435: \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438. \u041f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f Centreon \u0432\u0435\u0441\u044c \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0441\u0442\u043e \u0435\u0434\u0435\u0442: \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f, \u043f\u0443\u0442\u0438 \u043a cgi \u0444\u0430\u0439\u043b\u0430\u043c \u043a\u0440\u0438\u0432\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u044b. \u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u043f\u043e\u0448\u0435\u043b \u043f\u043e \u0441\u0430\u043c\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u043f\u0443\u0442\u0438:<\/p>\n<p>\u041f\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0430\u043a\u0435\u0442\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u043d\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0443\u0436\u0435 \u0441\u0442\u043e\u0438\u0442,\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044f \u0441\u0442\u0430\u0432\u0438\u043b \u0432\u0435\u0440\u0441\u0438\u044e Nagios, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u044f \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u0438\u0432\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 Testing:<\/p>\n<pre lang=\"bash\">apt-get -t testing install --reinstall nagios3-common<\/pre>\n<p>\u043f\u043e\u0442\u043e\u043c \u0438\u0434\u0435\u043c \u0442\u0443\u0434\u0430, \u0433\u0434\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432\u0441\u0435 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u044b\u0435 apt-get&#8217;\u043e\u043c .deb \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<pre lang=\"bash\">cd \/var\/cache\/apt\/archives\/<\/pre>\n<p>\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0432\u0441\u0435 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0442\u044c:<\/p>\n<pre lang=\"bash\">mkdir nagios<\/pre>\n<p>\u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 \u0441\u043e\u043a\u0440\u043e\u0432\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<pre lang=\"bash\">dpkg -x nagios3-common_3.2.3-1_all.deb nagios\/\r\ndpkg -x nagios3-cgi_3.2.3-1_i386.deb nagios\/ <\/pre>\n<p>\u0447\u0442\u043e \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0432 \u0438\u0442\u043e\u0433\u0435:<\/p>\n<p>tree -L 3 nagios<br \/>\n nagios<br \/>\n \u251c\u2500\u2500 etc<br \/>\n \u2502   \u251c\u2500\u2500 default<br \/>\n \u2502   \u2502   \u2514\u2500\u2500 nagios3<br \/>\n \u2502   \u251c\u2500\u2500 init.d<br \/>\n \u2502   \u2502   \u2514\u2500\u2500 nagios3<br \/>\n \u2502   \u2514\u2500\u2500 nagios3<br \/>\n \u2502       \u251c\u2500\u2500 cgi.cfg<br \/>\n \u2502       \u251c\u2500\u2500 commands.cfg<br \/>\n \u2502       \u251c\u2500\u2500 conf.d<br \/>\n \u2502       \u251c\u2500\u2500 nagios.cfg<br \/>\n \u2502       \u251c\u2500\u2500 resource.cfg<br \/>\n \u2502       \u2514\u2500\u2500 stylesheets<br \/>\n \u251c\u2500\u2500 usr<br \/>\n \u2502   \u251c\u2500\u2500 lib<br \/>\n \u2502   \u2502   \u2514\u2500\u2500 cgi-bin<br \/>\n \u2502   \u2514\u2500\u2500 share<br \/>\n \u2502       \u251c\u2500\u2500 doc<br \/>\n \u2502       \u251c\u2500\u2500 lintian<br \/>\n \u2502       \u2514\u2500\u2500 nagios3<br \/>\n \u2514\u2500\u2500 var<br \/>\n     \u251c\u2500\u2500 cache<br \/>\n     \u2502   \u2514\u2500\u2500 nagios3<br \/>\n     \u251c\u2500\u2500 lib<br \/>\n     \u2502   \u2514\u2500\u2500 nagios3<br \/>\n     \u251c\u2500\u2500 log<br \/>\n     \u2502   \u2514\u2500\u2500 nagios3<br \/>\n     \u2514\u2500\u2500 run<br \/>\n         \u2514\u2500\u2500 nagios3<\/p>\n<p>\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u044b nagios.conf  \u0438 cgi.conf \u043b\u0435\u0436\u0430\u0449\u0438\u0435 \u0432 etc\/nagios3\/ \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \/etc\/nagios3\/<\/p>\n<p> \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 Nagios:<\/p>\n<p>\/etc\/init.d\/nagios restart<\/p>\n<p> \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0432\u0441\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p><a href=\"http:\/\/r1sh.blogspot.ru\/2011\/02\/centreon.html\">http:\/\/r1sh.blogspot.ru\/2011\/02\/centreon.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 Mysql \u043f\u043e\u0434 \u0440\u0443\u0442\u043e\u043c \u0438 \u043f\u0438\u0448\u0435\u043c: DROP USER &#8216;centreon&#8217;@&#8217;localhost&#8217;; DROP USER &#8216;ndoutils&#8217;@&#8217;localhost&#8217;; DROP DATABASE centstats; DROP DATABASE centreon; DROP DATABASE ndoutils; \u0410 \u0442\u0430\u043a \u0436\u0435: drop database centstatus; drop database centstorage; \u0414\u0430\u043b\u0435\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 Centreon&#8217;\u043e\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0438\u0437 \/etc\/sudoers \u0423\u0434\u0430\u043b\u044f\u0435\u043c &hellip; <a href=\"https:\/\/notes.norfolks.fun\/?p=1455\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-1455","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1455"}],"version-history":[{"count":4,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1455\/revisions"}],"predecessor-version":[{"id":1552,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=\/wp\/v2\/posts\/1455\/revisions\/1552"}],"wp:attachment":[{"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notes.norfolks.fun\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}