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":2526,"date":"2019-12-06T14:07:51","date_gmt":"2019-12-06T14:07:51","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2526"},"modified":"2019-12-06T19:12:01","modified_gmt":"2019-12-06T19:12:01","slug":"how-to-monitor-ports-and-services-with-monitorix-on-centos6","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/how-to-monitor-ports-and-services-with-monitorix-on-centos6\/","title":{"rendered":"How to Monitor Ports and Services with MonitorIX on CentOS6"},"content":{"rendered":"

MonitorIX<\/strong><\/h3>\n

This article will go over the steps on how to\u00a0install MonitorIX<\/strong>\u00a0and configure it to log a custom port, in this case the\u00a0Minecraft port (25565)<\/strong>.<\/p>\n

MonitorIX can be used to monitor traffic and system usage to help diagnose problems or simply to view the systems performance.<\/p>\n

What is MonitorIX?<\/strong><\/h3>\n

Monitorix is a free, open source, lightweight system monitoring tool designed to monitor as many services and system resources as possible. It has been created to be used\u00a0under production Linux\/UNIX servers<\/strong>, but due to its simplicity and small size can be used on embedded devices as well.<\/p><\/blockquote>\n

What can I monitor with it?<\/strong><\/h3>\n

MonitorIX can be used to monitor anything from mail statistics, disk usage, hardware temperatures to current traffic on your MySQL or custom defined port.<\/p>\n

Follow the steps below to\u00a0install MonitorIX on CentOS 6<\/strong>.<\/p>\n

1. Required Packages<\/strong><\/h3>\n
yum install rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple perl-IO-Socket-SSL\r\n<\/code><\/pre>\n

Note: if you are unable to install some packages, you may have to enable to EPEL repo:<\/strong><\/p>\n

32-Bit\r\n    wget http:\/\/download.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-8.noarch.rpm\r\n\r\n64-Bit\r\n    wget http:\/\/download.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\r\n\r\nrpm -ivh epel-release-6-8.noarch.rpm\r\n<\/code><\/pre>\n

Then re-try the installation<\/p>\n

2. Install MonitorIX<\/strong><\/h3>\n
rpm -ivh http:\/\/www.monitorix.org\/monitorix-3.6.0-1.noarch.rpm\r\n<\/code><\/pre>\n

Note:<\/strong><\/span>\u00a0be sure to check the\u00a0MonitorIX Downloads<\/a><\/span>\u00a0page to see if there are new versions<\/strong><\/p>\n

After\u00a0installation<\/strong>, you can start\u00a0MonitorIX<\/strong>\u00a0with<\/p>\n

service monitorix start\r\n<\/code><\/pre>\n

After installation you can view the graphs at\u00a0http:\/\/YOURSERVER.DOMAIN:8080\/monitorix\/<\/strong>\u00a0or\u00a0http:\/\/YOURSERVERIP:8080\/monitorix\/<\/strong><\/p>\n

Defining Custom Ports to Monitor<\/strong><\/h3>\n
nano \/etc\/monitorix\/monitorix.conf\r\n<\/code><\/pre>\n

By reading through the config, you can change settings such as titles, the port in which MonitorIX runs on, enabling certain graphs under\u00a0<graph_enable><\/strong>\u00a0and so much more.<\/p>\n

Here is an example of the\u00a0<port><\/strong>\u00a0section to monitor traffic on the\u00a0Minecraft port (25565)<\/strong>:<\/p>\n

 PORT graph\r\n -----------------------------------------------------------------------------\r\n<port>\r\n        max = 12\r\n        rule = 24000\r\n        list = 25, 21, 80, 22, 110, 139, 3306, 53, 25565, 25565\r\n        <desc>\r\n                25      = SMTP,    tcp, in, 0, 1000\r\n                21      = FTP,     tcp, in, 0, 1000\r\n                80      = HTTP,    tcp, in, 0, 1000\r\n                22      = SSH,     tcp, in, 0, 1000\r\n                110     = POP3,    tcp, in, 0, 1000\r\n                139     = NETBIOS, tcp, in, 0, 1000\r\n                3306    = MYSQL,   tcp, in, 0, 1000\r\n                53      = DNS,     udp, in, 0, 1000\r\n                25565   = MINECRAFT,    tcp, in, 0, 1000\r\n        <\/desc>\r\n        graphs_per_row = 3\r\n<\/port>\r\n<\/code><\/pre>\n

By changing the\u00a0max<\/strong>\u00a0and adding\/changing a port on the\u00a0list =<\/strong>\u00a0section you can add a new graph to the\u00a0<desc><\/strong>\u00a0section. Make sure you close the document with\u00a0CTRL+X<\/strong>\u00a0and then Y to save, followed by ENTER.<\/p>\n

Now you can restart the service<\/strong><\/p>\n

service monitorix restart\r\n<\/code><\/pre>\n

and view your\u00a0newly monitored<\/strong>\u00a0port.<\/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,242],"manual_kb_tag":[332],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2526"}],"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=2526"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2526\/revisions"}],"predecessor-version":[{"id":2527,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2526\/revisions\/2527"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2526"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2526"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}