{"id":57,"date":"2009-07-29T02:08:36","date_gmt":"2009-07-28T17:08:36","guid":{"rendered":"http:\/\/lumieir.net\/blog\/?p=57"},"modified":"2009-08-14T14:10:12","modified_gmt":"2009-08-14T05:10:12","slug":"snmprrdtoolcacti%e3%81%a7%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e7%9b%a3%e8%a6%962","status":"publish","type":"post","link":"http:\/\/lumieir.net\/blog\/2009\/07\/snmprrdtoolcacti%e3%81%a7%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e7%9b%a3%e8%a6%962\/","title":{"rendered":"SNMP+RRDtool+cacti\u3067\u30b5\u30fc\u30d0\u30fc\u76e3\u8996(2)"},"content":{"rendered":"<p>\u524d\u56de\u3067RRDtool\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u5b8c\u4e86\u3057\u305f\u306e\u3067\u3001\u6b21\u306fcacti\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u3056\u3063\u304f\u308a\u3044\u3046\u3068\u3001RRDtool\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u30b5\u30af\u30b5\u30af\u4f5c\u3063\u3066\u304f\u308c\u3066\u3001\u66f4\u306b\u8868\u793a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3082\u63d0\u4f9b\u3057\u3066\u304f\u308c\u308b\u306e\u304ccacti\u3067\u3059\u3002<br \/>\nMRTG\u3092\u3084\u3063\u3066\u3044\u305f\u3068\u304d\u306f\u624b\u4f5c\u696d\u3067\u30c1\u30af\u30c1\u30af\u3068\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u4fbf\u5229\u904e\u304e\u3066\u6d99\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p>\u3055\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002<br \/>\n\u57fa\u672c\u7684\u306b\u306f<br \/>\n\u30fb\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066DocumentRoot\u914d\u4e0b\u306b\u8a2d\u7f6e<br \/>\n\u30fbcron\u3092\u4ed5\u639b\u3051\u308b<br \/>\n\u306e2\u70b9\u3067\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p><code># useradd cacti<br \/>\n<span style=\"color:#99CC00\">cron\u3092\u52d5\u304b\u3059\u306e\u3067\u3001\u5c02\u7528\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3002<\/span><\/code><\/p>\n<p>http:\/\/www.cacti.net\/download_cacti.php<br \/>\n\u2191\u3053\u3053\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<br \/>\n<code># wget http:\/\/www.cacti.net\/downloads\/cacti-0.8.7e.tar.gz<br \/>\n# tar xzf SRCS\/cacti-0.8.7e.tar.gz<br \/>\n# ln -s cacti-0.8.7e \/usr\/local\/cacti<br \/>\n<span style=\"color:#99CC00\">\u203bapache\u306eDocumentRoot\u4e0b\u306b\u8ffd\u52a0\u3002\u79c1\u306fapache\u306ealias\u3092\u4f7f\u3046\u306e\u3067\u3001\u9069\u5f53\u306a\u3068\u3053\u308d\u306b\u8a2d\u7f6e\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/span><\/code><\/p>\n<p><code># mysql -p cacti < cacti.sql\n<span style=\"color:#99CC00\">\u203bcacti\u306e\u8a2d\u5b9a\u304cMySQL\u304bPostgreSQL\u4e0a\u306b\u4fdd\u5b58\u53ef\u80fd\u3067\u3059\u3002\u4eca\u56de\u306fMySQL\u3092\u4f7f\u7528\u3002\u7279\u6a29\u306e\u8a2d\u5b9a\/DB\u306e\u4f5c\u6210\u306f\u6e08\u307e\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/span><br \/>\n<\/code><\/p>\n<p>include\/config.php\u3092\u3001\u7279\u6a29\u3084DB\u540d\u306a\u3069\u9069\u5b9c\u4fee\u6b63\u3002<\/p>\n<p><code># chown -R root:root \/usr\/local\/cacti<br \/>\n# chown -R cacti \/usr\/local\/cacti\/rra<br \/>\n# chown -R cacti \/usr\/local\/cacti\/log<br \/>\n<span style=\"color:#99CC00\">\u203brra\u3068log\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u307f\u3001cron\u3092\u5b9f\u884c\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u66f8\u304d\u8fbc\u3081\u308b\u3088\u3046\u6a29\u9650\u3092\u5909\u66f4\u3002<\/span><\/code><\/p>\n<p><code># crontab -e -u cacti<br \/>\n*\/5 * * * * \/usr\/local\/bin\/php \/usr\/local\/cacti\/poller.php > \/dev\/null 2>&1<br \/>\n<span style=\"color:#99CC00\">\u203bcron\u306e\u8a2d\u5b9a\u3002<\/span><\/code><\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u8a2d\u7f6e\u3057\u305fURL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3001PATH\u306a\u3069\u3092\u8a2d\u5b9a\u3059\u308b\u30a6\u30a3\u30b6\u30fc\u30c9\u304c\u958b\u59cb\u3055\u308c\u307e\u3059\u306e\u3067\u9069\u5b9c\u5165\u529b\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u6b21\u306fcacti\u4e0a\u3067\u306e\u8a2d\u5b9a\u3092\u3084\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3 class='related_post_title'>\u95a2\u9023\u8a18\u4e8b:<\/h3><ul class='related_post'><li><a href=\"http:\/\/lumieir.net\/blog\/2009\/07\/snmprrdtoolcacti%e3%81%a7%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e7%9b%a3%e8%a6%961\/\" title=\"SNMP+RRDtool+cacti\u3067\u30b5\u30fc\u30d0\u30fc\u76e3\u8996(1)\">SNMP+RRDtool+cacti\u3067\u30b5\u30fc\u30d0\u30fc\u76e3\u8996(1)<\/a><\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u3067RRDtool\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u5b8c\u4e86\u3057\u305f\u306e\u3067\u3001\u6b21\u306fcacti\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u3056\u3063\u304f\u308a\u3044\u3046\u3068\u3001RRDtool\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u30b5\u30af\u30b5\u30af\u4f5c\u3063\u3066\u304f\u308c\u3066\u3001\u66f4\u306b\u8868\u793a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3082\u63d0\u4f9b\u3057\u3066\u304f\u308c\u308b\u306e\u304ccac &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"http:\/\/lumieir.net\/blog\/2009\/07\/snmprrdtoolcacti%e3%81%a7%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e7%9b%a3%e8%a6%962\/\"> <span class=\"screen-reader-text\">SNMP+RRDtool+cacti\u3067\u30b5\u30fc\u30d0\u30fc\u76e3\u8996(2)<\/span> \u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[17,19,16,15],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-linux-tech","category-tech","tag-cacti","tag-mrtg","tag-rrdtool","tag-snmp"],"_links":{"self":[{"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":6,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":122,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/posts\/57\/revisions\/122"}],"wp:attachment":[{"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/lumieir.net\/blog\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}