Note that you can also monitor Server A, if desired.<\/p><\/blockquote>\n
Install and setup Munin<\/h3>\n
Follow these steps on Server A.<\/p>\n
First, install Apache to serve our Munin server status page, as well as Munin itself.<\/p>\n
yum install httpd munin\r\n<\/code><\/pre>\nInstall nano if you’re not comfortable in vi.<\/p>\n
yum install nano\r\n<\/code><\/pre>\nIt’s time to edit the Munin configuration to add monitoring of our additional servers, as by default Munin only monitors the local machine. Run the following.<\/p>\n
nano \/etc\/munin\/munin.conf\r\n<\/code><\/pre>\nAt the bottom, append the following where 192.168.10.2 is replaced with the IP address of Server B, and “serverb” is replaced with a descriptive hostname.<\/p>\n
[serverb]\r\n address 192.168.10.2\r\n use_node_name yes\r\n<\/code><\/pre>\nAdditional servers to be monitored can be added in the same manner.<\/p>\n
By default, Munin is not secured with a password. To setup a password, run the following:<\/p>\n
nano \/etc\/munin\/munin-htpasswd\r\n<\/code><\/pre>\n… and enter a password to secure your Munin installation.<\/p>\n
The username is\u00a0munin<\/strong>.<\/p>\nStart Apache and Munin-node.<\/p>\n
service start httpd\r\nservice start munin-node\r\n<\/code><\/pre>\nYou will now be able to login to\u00a0http:\/\/[SERVER_A_IP]\/munin<\/code>\u00a0with the username\u00a0munin<\/strong>\u00a0and the password you have just specified.<\/p>\nContinue below for setting up munin-node on additional machines and configuring munin-node plugins.<\/p>\n
Setup munin-node<\/h3>\n
The following can be applied to Server A, Server B, and as many additional servers as needed.<\/p>\n
Install munin-node if it is not already installed.<\/p>\n
yum install munin-node\r\n<\/code><\/pre>\nEdit the\u00a0munin-node.conf<\/code>\u00a0file.<\/p>\nnano \/etc\/munin\/munin-node.conf\r\n<\/code><\/pre>\nAppend a new line with the IP address of Server A. The address must be in the format of a regular expression. Replace “192.168.10.1” the IP address of Server A.<\/p>\n
allow ^192\\.168\\.10\\.1$\r\n<\/code><\/pre>\nAt this point, you can start munin-node.<\/p>\n
service munin-node restart\r\n<\/code><\/pre>\nServer B’s status will be visible on your Munin status page at\u00a0http:\/\/[SERVER_A_IP]\/munin<\/code>\u00a0within a few minutes time.<\/p>\nEnabling munin-node plugins<\/h3>\n
munin-node comes packaged with a wide variety of plugins.<\/p>\n
To browse the available plugins:<\/p>\n
cd \/usr\/share\/munin\/plugins\/\r\nls\r\n<\/code><\/pre>\nAll plugins can be enabled by creating a symbolic link to it in the\u00a0\/etc\/munin\/plugins<\/code>\u00a0folder. For example, to enable the Apache status plugins, run the following commands:<\/p>\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\nln -s \/usr\/share\/munin\/plugins\/apache_processes \/etc\/munin\/plugins\/apache_volume\r\n<\/code><\/pre>\n… then restart munin-node.<\/p>\n
service munin-node restart\r\n<\/code><\/pre>\nWait a few minutes and your status will be available on your master server.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[231,244,245],"manual_kb_tag":[497],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/3010"}],"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=3010"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/3010\/revisions"}],"predecessor-version":[{"id":3011,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/3010\/revisions\/3011"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=3010"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=3010"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=3010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}