{"id":2423,"date":"2012-03-12T14:42:14","date_gmt":"2012-03-12T12:42:14","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2423"},"modified":"2012-03-12T17:03:59","modified_gmt":"2012-03-12T15:03:59","slug":"%d0%bc%d0%be%d0%bd%d0%b8%d1%82%d0%be%d1%80%d0%b8%d0%bc-%d1%81%d0%bb%d1%83%d0%b6%d0%b1%d1%8b-%d1%81%d1%82%d0%b0%d0%bd%d0%b4%d0%b0%d1%80%d1%82%d0%bd%d1%8b%d0%bc%d0%b8-%d1%81%d1%80%d0%b5%d0%b4%d1%81","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2423","title":{"rendered":"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043c \u0441\u043b\u0443\u0436\u0431\u044b \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438"},"content":{"rendered":"<p><strong>Solaris<\/strong> \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u0433\u0430\u0442\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0436\u0431\u0430\u043c\u0438. \u041e\u0434\u043d\u043e \u0438\u0437 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 &#8211; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0441\u043b\u0443\u0436\u0431. \u0412 \u0434\u0440\u0443\u0433\u0438\u0445 \u041e\u0421 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u041f\u041e \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0438 <strong>monit<\/strong> \u0438\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0430 \u0432 <strong>Solaris<\/strong> \u044d\u0442\u043e \u0443\u0436\u0435 \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u043d\u043e.<\/p>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434<\/span><\/strong><\/em>: <strong>Solaris11<\/strong>.<\/p>\n<p><!--more-->\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0414\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <strong>svccfg setnotify<\/strong>. \u0415\u0451 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0442\u0430\u043a\u043e\u0432:<\/p>\n<p><code># \/usr\/sbin\/svccfg setnotify {[-g] tset | class} notification_parameters<\/code><\/p>\n<p><em><span style=\"color: #ff6600;\">-g<\/span><\/em> = \u0437\u043d\u0430\u0447\u0438\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e<br \/>\n<em><strong><span style=\"color: #ff6600;\">tset<\/span><\/strong><\/em> = \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0441\u043b\u0443\u0436\u0431 \u0438\u043b\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 (\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c <strong>maintenance, degraded, offline, and online, all<\/strong>, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043d\u0430\u0431\u043e\u0440\u044b \u0441 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430\u043c\u0438 <strong>to\/from: to-online, from-offline<\/strong>)<br \/>\n<em><strong><span style=\"color: #ff6600;\">class<\/span><\/strong><\/em> = \u0441\u043e\u0431\u044b\u0442\u0438\u044f (<strong>problem-repaired, problem-diagnosed, problem-updated, problem-resolved<\/strong>)<br \/>\n<strong><em><span style=\"color: #ff6600;\">notification_parameters<\/span><\/em><\/strong> = \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f (<strong>mailto, snmp, syslog<\/strong>)<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0438\u0437 \u0441\u043b\u0443\u0436\u0431 \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u0442 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 maintenance:<\/p>\n<p><code># \/usr\/sbin\/svccfg setnotify -g maintenance mailto:sysadmins@example.com<\/code><\/p>\n<p>\u0418\u043b\u0438 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430:<\/p>\n<p><code># \/usr\/sbin\/svccfg -s svc:\/system\/name-service\/switch:default setnotify maintenance mailto:sysadmins@example.com<\/code><\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e <strong>maintenance<\/strong> \u0442\u0430\u043a\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 <strong>degraded, offline, and online, all<\/strong> (\u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u0430).<br \/>\n\u0415\u0449\u0451 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0430 \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432 \u0434\u0440\u0443\u0433\u043e\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 <strong>to-*<\/strong> \u0438 <strong>from-*<\/strong> :<\/p>\n<p><code># \/usr\/sbin\/svccfg -s svc:\/system\/name-service\/switch:default setnotify to-online mailto:sysadmins@example.com<\/code><\/p>\n<p>\u0410 \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0435\u0449\u0451 \u043a \u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435\u043c\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 snmp traps:<\/p>\n<p><code># \/usr\/sbin\/svccfg setnotify problem-repaired snmp:SNMP-TRAP<\/code><\/p>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e <strong>problem-repaired<\/strong> \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>problem-diagnosed, problem-updated, problem-resolved<\/strong> (\u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b\u0430)<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043c\u043b\u0435\u043d\u0438\u044f:<\/p>\n<p><code># \/usr\/sbin\/svccfg -s svc:\/system\/name-service\/switch:default delnotify to-online<\/code><\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre># \/usr\/sbin\/svccfg listnotify problem-diagnosed\r\n    Event: problem-diagnosed (source: svc:\/system\/fm\/notify-params:default)\r\n        Notification Type: smtp\r\n            Active: true\r\n            reply-to: root@localhost\r\n            to: root@localhost\r\n\r\n        Notification Type: snmp\r\n            Active: true\r\n\r\n        Notification Type: syslog\r\n            Active: true<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Solaris \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u0433\u0430\u0442\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0436\u0431\u0430\u043c\u0438. \u041e\u0434\u043d\u043e \u0438\u0437 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 &#8211; \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0441\u043b\u0443\u0436\u0431. \u0412 \u0434\u0440\u0443\u0433\u0438\u0445 \u041e\u0421 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u041f\u041e \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0438 monit \u0438\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0430 \u0432 Solaris \u044d\u0442\u043e \u0443\u0436\u0435 \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u043d\u043e. \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434: Solaris11.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-2423","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2423"}],"version-history":[{"count":7,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2423\/revisions"}],"predecessor-version":[{"id":2430,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2423\/revisions\/2430"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}