htpasswd -c \/etc\/munin\/.htpasswd munin\r\n<\/code><\/pre>\nThis step will prompt for password.<\/p>\n
Enable plugins for monitoring<\/h2>\n
Choose which plugin to be enabled by creating symbolic link to it:<\/p>\n
ln -s \/usr\/share\/munin\/plugins\/cpu \/etc\/munin\/plugins\/cpu\r\nln -s \/usr\/share\/munin\/plugins\/df \/etc\/munin\/plugins\/df\r\nln -s \/usr\/share\/munin\/plugins\/forks \/etc\/munin\/plugins\/forks\r\nln -s \/usr\/share\/munin\/plugins\/fw_packets \/etc\/munin\/plugins\/fw_packets\r\nln -s \/usr\/share\/munin\/plugins\/ip_127.0.0.1 \/etc\/munin\/plugins\/ip_127.0.0.1\r\nln -s \/usr\/share\/munin\/plugins\/load \/etc\/munin\/plugins\/load\r\nln -s \/usr\/share\/munin\/plugins\/memory \/etc\/munin\/plugins\/memory\r\nln -s \/usr\/share\/munin\/plugins\/processes \/etc\/munin\/plugins\/processes\r\nln -s \/usr\/share\/munin\/plugins\/threads \/etc\/munin\/plugins\/threads\r\nln -s \/usr\/share\/munin\/plugins\/uptime \/etc\/munin\/plugins\/uptime\r\nln -s \/usr\/share\/munin\/plugins\/exim_mailqueue \/etc\/munin\/plugins\/exim_mailqueue\r\nln -s \/usr\/share\/munin\/plugins\/exim_mailstats \/etc\/munin\/plugins\/exim_mailstats\r\nln -s \/usr\/share\/munin\/plugins\/postfix_mailstats \/etc\/munin\/plugins\/postfix_mailstats\r\nln -s \/usr\/share\/munin\/plugins\/postfix_mailqueue \/etc\/munin\/plugins\/postfix_mailqueue\r\nln -s \/usr\/share\/munin\/plugins\/mysql_queries \/etc\/munin\/plugins\/mysql_queries\r\nln -s \/usr\/share\/munin\/plugins\/nginx_request \/etc\/munin\/plugins\/nginx_request\r\nln -s \/usr\/share\/munin\/plugins\/nginx_status \/etc\/munin\/plugins\/nginx_status\r\nln -s \/usr\/share\/munin\/plugins\/apache_accesses \/etc\/munin\/plugins\/apache_accesses\r\nln -s \/usr\/share\/munin\/plugins\/apache_processes \/etc\/munin\/plugins\/apache_processes\r\n<\/code><\/pre>\nEdit configuration<\/h2>\n
Edit\u00a0\/etc\/munin\/munin.conf<\/code>\u00a0file for some basic settings.<\/p>\nFind and change\u00a0[localhost.localdomain]<\/code>\u00a0to your own hostname such as\u00a0server1.example.com<\/code>.<\/p>\nOpen and edit\u00a0\/etc\/apache2\/conf.d\/munin<\/code>.<\/p>\nComment the following lines:<\/p>\n
Order allow,deny\r\nAllow from localhost 127.0.0.0\/8 ::1\r\nOptions None\r\n<\/code><\/pre>\nThen, uncomment the following lines to enable authentication:<\/p>\n
# AuthUserFile \/etc\/munin\/.htpasswd\r\n# AuthName \"Munin\"\r\n# AuthType Basic\r\n# require valid-user\r\n<\/code><\/pre>\nIf your Apache is listening on port other than 80, edit\u00a0\/etc\/munin\/plugin-conf.d\/munin-node<\/code><\/p>\nAdd following lines to the end of file if your Apache is listening to port 8080:<\/p>\n
[apache_*]\r\nenv.ports 8080\r\n<\/code><\/pre>\nFinish<\/h2>\n
Finally, restart your services.<\/p>\n
\/etc\/init.d\/munin-node restart\r\n\/etc\/init.d\/apache2 restart\r\n<\/code><\/pre>\nYou can now access your munin web interface at\u00a0http:\/\/YOUR_SERVER_IP\/munin<\/code>.<\/p>\nThe Munin graphs will be available after few minutes.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[233,242],"manual_kb_tag":[379],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2637"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2637"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2637\/revisions"}],"predecessor-version":[{"id":2638,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2637\/revisions\/2638"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2637"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2637"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}