{"id":77,"date":"2008-07-20T15:23:10","date_gmt":"2008-07-20T06:23:10","guid":{"rendered":"http:\/\/qos.mine.nu\/wordpress\/?p=77"},"modified":"2008-07-20T15:23:10","modified_gmt":"2008-07-20T06:23:10","slug":"zabbix","status":"publish","type":"post","link":"https:\/\/qos.dev7.net\/wordpress\/2008\/07\/zabbix.html","title":{"rendered":"FreeBSD\u306bZABBIX\u3092\u5165\u308c\u3066\u307f\u308b"},"content":{"rendered":"<div id=\"wppda_alert\">\u3053\u306e\u8a18\u4e8b\u306f\uff12\u5e74\u4ee5\u4e0a\u524d\u306b\u66f8\u3044\u305f\u3082\u306e\u3067\u3059\u3002<br\/>\r\n\u305d\u306e\u305f\u3081\u60c5\u5831\u304c\u53e4\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002m(_ _)m<\/div><p><a href=\"http:\/\/www.zabbix.com\/index.php\">ZABBIX<\/a><br \/>\n<a href=\"http:\/\/www.zabbix.jp\/\">ZABBIX-JP &#8211; Un-Official Support Page<\/a><\/p>\n<ul>\n<li><a href=\"http:\/\/www.zabbix.jp\/modules\/main0\/index.php?id=1\">ZABBIX\u3068\u306f<\/a><\/li>\n<\/ul>\n<p><strong>## ZABBIX-1.4 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/><\/strong><br \/>\nsu &#8211;<br \/>\ncd \/usr\/ports\/net-mgmt\/zabbix<br \/>\nmake install clean<\/p>\n<p>cd \/usr\/ports\/net-mgmt\/zabbix-agent<br \/>\nmake install clean<\/p>\n<p><strong>## DB\u4f5c\u6210(MySql\u306e\u5834\u5408)<\/strong><br \/>\nmysql -u root -p<br \/>\ncreate database zabbix;<br \/>\ngrant all privileges on zabbix.* to zabbix@localhost identified by &#8216;password&#8217;;<br \/>\nflush privileges;<br \/>\nquit<\/p>\n<p><strong>## DB\u521d\u671f\u8a2d\u5b9a(MySql\u306e\u5834\u5408)<br \/><\/strong><br \/>\ncd \/usr\/local\/share\/zabbix\/create<br \/>\ncat schema\/mysql.sql data\/data.sql data\/images_mysql.sql | mysql -u zabbix -p zabbix<\/p>\n<p>\u203b \/usr\/local\/share\/zabbix\/patches \u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u30011.1 \u304b\u3089 1.4\u3078\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u5834\u5408\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<p><strong>## ZABBIX\u8a2d\u5b9a<br \/><\/strong><br \/>\ncd \/usr\/local\/etc\/zabbix<\/p>\n<p><strong># ZABBIX\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a<br \/><\/strong><br \/>\ncp zabbix_server.conf.sample zabbix_server.conf<br \/>\nvi zabbix_server.conf<\/p>\n<p><strong># ZABBIX\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u8a2d\u5b9a<br \/><\/strong><br \/>\ncp zabbix_agentd.conf.sample zabbix_agentd.conf<br \/>\nvi zabbix_agentd.conf<\/p>\n<p><strong># Frontend\u8a2d\u5b9a<br \/><\/strong><br \/>\nln -s \/usr\/local\/share\/zabbix\/php \/var\/www\/zabbix&nbsp;&nbsp;&nbsp;&nbsp;<strong>\u30fb\u30fb\u30fbDocumentRoot\u304c\/var\/www\u306e\u5834\u5408<\/strong><br \/>\nhttp:\/\/localhost\/zabbix\/<br \/>\nLogin name: admin<br \/>\nPassword:<br \/>\n\u53f3\u4e0a\u306e\u30e6\u30fc\u30b6\u8a2d\u5b9a\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4\u3068\u8a00\u8a9e\u306e\u5909\u66f4\u3092\u884c\u3046<\/p>\n<p>Administration\u30bf\u30d6\u3092\u9078\u629e \u2192 Installation \u3067\u3001\u4e0a\u306e\u65b9\u3067\u8a2d\u5b9a\u3057\u305fDB\u3078\u306e\u63a5\u7d9a\u30c6\u30b9\u30c8\u30fb\u8a2d\u5b9a\u3092\u884c\u3046<br \/>\n\u624b\u9806\u901a\u308a\u306b\u9032\u3081\u3070\u8a70\u307e\u3089\u306a\u3044\u306e\u3067\u7701\u7565\u3002<\/p>\n<p>\n<strong>## \u30db\u30b9\u30c8\u306e\u8a2d\u5b9a<br \/><\/strong><br \/>\n\u8a2d\u5b9a\u30bf\u30d6\u9078\u629e \u2192 \u30db\u30b9\u30c8 \u2192 Create Host<br \/>\n\u540d\u524d\uff1a\u30c6\u30ad\u30c8\u30fc\u306b\u3002<br \/>\n\u30b0\u30eb\u30fc\u30d7\/\u65b0\u3057\u3044\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\uff1a\u30c6\u30ad\u30c8\u30fc\u306b\u3002<br \/>\nDNS Name\uff1a\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306eDNS Name<br \/>\nIP\u30a2\u30c9\u30ec\u30b9\uff1a\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306eIP\u30a2\u30c9\u30ec\u30b9<br \/>\nConnect to\uff1aDNS Name\u3068IP\u30a2\u30c9\u30ec\u30b9\u306e\u3069\u3061\u3089\u3067\u63a5\u7d9a\u3057\u306b\u884c\u304f\u304b\uff1f\u3069\u3061\u3089\u3067\u3082\u3002<br \/>\n\u30dd\u30fc\u30c8\uff1azabbix_agentd.conf\u3092\u5909\u66f4\u3057\u3066\u306a\u3044\u306a\u3089\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e<br \/>\n\u30b9\u30c6\u30fc\u30bf\u30b9\uff1a\u6709\u52b9<br \/>\nLink with Template\uff1a\u8ffd\u52a0\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001Template_FreeBSD\u3092\u30c1\u30a7\u30c3\u30af\u3057\u300c\u691c\u7d22\u3092\u8868\u793a\u300d\u30dc\u30bf\u30f3\u30af\u30ea\u30c3\u30af<br \/>\nUse Profile\uff1a\u3088\u304f\u5206\u304b\u3089\u305a\u30fb\u30fb\u30fborz<\/p>\n<p>\u3053\u308c\u3067\u66ab\u304f\u7d4c\u3064\u3068\u76e3\u8996\u30c7\u30fc\u30bf\u306b\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\n\u3081\u3067\u305f\u3057\u3081\u3067\u305f\u3057\uff01\uff01<\/p>\n<p>\n\u4ee5\u4e0b\u306f\u3001\u5099\u5fd8\u9332\u3068\u3057\u3066\u3002<br \/>\n<strong>\u3010\u3061\u3087\u3063\u3068\u30cf\u30de\u3063\u305f\u3053\u3068\uff11\u3011ZABBIX\u30b5\u30fc\u30d0 \u2192 ZABBIX\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u7e4b\u304c\u3089\u306a\u3044\u3002\u3002<br \/><\/strong><br \/>\ntail -f zabbix_server.log<\/p>\n<pre>\n1686  46690:20080720:060902 Got empty string from [qos] IP [192.168.0.1] Parameter [agent.ping]\n1687  46690:20080720:060902 Assuming that agent dropped connection because of access permissions\n1688  46690:20080720:060902 Host [qos] will be checked after 60 seconds\n<\/pre>\n<p>\ntail -f zabbix_agentd.log<\/p>\n<pre>\n11468  49661:20080720:062234 In check_security()\n11469  49661:20080720:062234 Listener error: Connection rejected. Allowed server is [127.0.0.1]\n<\/pre>\n<p>\n\u63a5\u7d9a\u3092\u62d2\u5426\u3057\u307e\u3057\u305f\u3002\u30b5\u30fc\u30d0(127.0.0.1)\u304b\u3089\u306e\u63a5\u7d9a\u3060\u3051\u8a31\u53ef\u3057\u307e\u3059\u3002<br \/>\n\u3068\u8a00\u3063\u3066\u308b\u6a21\u69d8\u3002<\/p>\n<p>zabbix_agentd.conf\u3092<br \/>\nServer=127.0.0.1<br \/>\n\u3068\u3057\u3066\u3044\u305f\u306e\u304c\u30de\u30ba\u304b\u3063\u305f\u3063\u307d\u3044\u3002<br \/>\n# \u30b5\u30fc\u30d0 \u2192 \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8 \u3068\u306a\u308b\u5834\u5408\u306e\u30bd\u30fc\u30b9IP\u30a2\u30c9\u30ec\u30b9\u304c\u3001127.0.0.1\u306e\u5834\u5408\u306e\u307f\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\u3068\u306a\u3063\u3066\u3044\u305f\uff1f<\/p>\n<p>\n<strong>\u3010\u3061\u3087\u3063\u3068\u30cf\u30de\u3063\u305f\u3053\u3068\uff12\u3011\u753b\u50cf(\u30a2\u30a4\u30b3\u30f3\u3001\u30b0\u30e9\u30d5)\u304c\u8868\u793a\u3055\u308c\u306a\u3044<br \/><\/strong><br \/>\n\u30a8\u30e9\u30fc\u306f\u7279\u306b\u306a\u3057\u3002<\/p>\n<p># php\u3092\u7591\u3046<br \/>\n\/usr\/local\/etc\/php.ini\u3092<br \/>\nmemory_limit\u3068\u304b\u3092\u30a4\u30ed\u30a4\u30ed\u3068\u5909\u66f4\u3057\u3066\u898b\u308b\u3082\u52b9\u679c\u7121\u3057<\/p>\n<p># mysql\u3092\u7591\u3046<br \/>\n\/usr\/local\/etc\/my.cnf<br \/>\nmax_allowed_packet\u3068\u304b\u3092\u30a4\u30ed\u30a4\u30ed\u3068\u5909\u66f4\u3057\u3066\u898b\u308b\u3082\u52b9\u679c\u7121\u3057<\/p>\n<p>\u3042\u308c\u3084\u3053\u308c\u3084\u30a4\u30ed\u30a4\u30ed\u3084\u3063\u3066\u307f\u305f\u7d50\u679c\u30fb\u30fb\u30fb<br \/>\n\u7d50\u5c40\u3001\u4ee5\u4e0b\u306e<br \/>\n<a href=\"http:\/\/www.zabbix.jp\/modules\/newbb\/viewtopic.php?topic_id=117&#038;forum=4&#038;post_id=538\">\u30b0\u30e9\u30d5\u3084\u30a2\u30a4\u30b3\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u305b\u3093<\/a><\/p>\n<blockquote><p>\u9045\u304f\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u8272\u3005\u8a66\u3057\u3066\u307f\u305f\u3068\u3053\u308d\/etc\/zabbix\/zabbix.conf.php\u306e\u6700\u7d42\u884c\u306b\u3001\u6539\u884c\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3068\u304d\u306b\u3001\u3054\u8cea\u554f\u3068\u540c\u3058\u3088\u3046\u306a\u72b6\u6cc1\u304c\u518d\u73fe\u3067\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u95a2\u4fc2\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p><\/blockquote>\n<p>\n\u304c\u539f\u56e0\u3067\u3057\u305f\u3002\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306f\uff12\u5e74\u4ee5\u4e0a\u524d\u306b\u66f8\u3044\u305f\u3082\u306e\u3067\u3059\u3002 \u305d\u306e\u305f\u3081\u60c5\u5831\u304c\u53e4\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002m(_ _)mZABBIX ZABBIX-JP &#8211; Un-Official Support Page ZABBIX\u3068 &hellip; <a href=\"https:\/\/qos.dev7.net\/wordpress\/2008\/07\/zabbix.html\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[47,28,92,51],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-auafafcc","tag-freebsd","tag-php","tag-ram","tag-zabbix"],"_links":{"self":[{"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":0,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"wp:attachment":[{"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}