Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2637,"date":"2019-12-06T19:12:44","date_gmt":"2019-12-06T19:12:44","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2637"},"modified":"2019-12-06T19:12:44","modified_gmt":"2019-12-06T19:12:44","slug":"monitor-debian-server-status-with-munin","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/monitor-debian-server-status-with-munin\/","title":{"rendered":"Monitor Debian Server Status with Munin"},"content":{"rendered":"

Munin<\/strong><\/span><\/a>\u00a0is a monitoring tool to survey processes and resources in your machine and presents the information in graphs through a web interface.<\/p>\n

Use the following steps to setup Munin on your machine and view your web interfaces with Apache.<\/p>\n

Install required packages<\/h2>\n
apt-get install munin munin-plugins-extra libwww-perl apache2-utils\r\n<\/code><\/pre>\n

Create user to access the web interface<\/h2>\n
htpasswd -c \/etc\/munin\/.htpasswd munin\r\n<\/code><\/pre>\n

This 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>\n

Edit configuration<\/h2>\n

Edit\u00a0\/etc\/munin\/munin.conf<\/code>\u00a0file for some basic settings.<\/p>\n

Find and change\u00a0[localhost.localdomain]<\/code>\u00a0to your own hostname such as\u00a0server1.example.com<\/code>.<\/p>\n

Open and edit\u00a0\/etc\/apache2\/conf.d\/munin<\/code>.<\/p>\n

Comment 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>\n

Then, 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>\n

Extras<\/h2>\n

If your Apache is listening on port other than 80, edit\u00a0\/etc\/munin\/plugin-conf.d\/munin-node<\/code><\/p>\n

Add 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>\n

Finish<\/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>\n

You can now access your munin web interface at\u00a0http:\/\/YOUR_SERVER_IP\/munin<\/code>.<\/p>\n

The 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}]}}