{"id":1,"date":"2007-04-04T18:50:37","date_gmt":"2007-04-04T16:50:37","guid":{"rendered":"http:\/\/www.caw.co.za\/?p=1"},"modified":"2007-04-05T17:26:41","modified_gmt":"2007-04-05T15:26:41","slug":"installing-nagios-on-sme-71x","status":"publish","type":"post","link":"https:\/\/www.caw.co.za\/?p=1","title":{"rendered":"Installing nagios on SME 7.1.x"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>Nagios is an application that monitors, reports and optionally can act on events on the network.<\/p>\n<p>This document describes the process of installing nagious 2.8 on SME 7.1.x.<\/p>\n<p><strong>Software Requirements<\/strong><\/p>\n<ol>\n<li>nagios-2.8-1.el4.rf.i386.rpm &#8211; This is the main nagios software package.<\/li>\n<li>nagios-plugins-1.4.5-1.el4.rf.i386.rpm &#8211; This contains the plugins required by nagios. Without the plugins nagios will not be able to monitor anything.<\/li>\n<li>gd-2.0.28-4.4E.1.i386.rpm &#8211; Required by nagios 2.8<\/li>\n<li>xorg-x11-libs-6.8.2-1.EL.13.37.i386.rpm &#8211; Required by gd<\/li>\n<li>fontconfig-2.2.3-7.centos4.i386.rpm &#8211; Required by xorg-x11-libs<\/li>\n<li>xorg-x11-Mesa-libGL-6.8.2-1.EL.13.37.i386.rpm &#8211; Required by xorg-x11-libs<\/li>\n<li>fping-2.4-1.b2.2.el4.rf.i386.rpm &#8211; Required by nagios-plugins<\/li>\n<li>perl-Net-SNMP-5.2.0-1.2.el4.rf.noarch.rpm &#8211; Required by nagios-plugins<\/li>\n<li>perl-Crypt-DES-2.05-3.2.el4.rf.i386.rpm &#8211; Required by perl-Net-SNMP<\/li>\n<\/ol>\n<p><strong>Installation Procedure<\/strong><\/p>\n<ul>\n<li> <strong>Create an Information Bay for nagios<\/strong><\/li>\n<\/ul>\n<blockquote><p>In server-manager create an information bay called &#8216;nagios&#8217; with the following permissions:<\/p>\n<table class=\"sme-noborders\" height=\"276\" width=\"494\">\n<tr>\n<td class=\"sme-noborders-label\">Information bay name<\/td>\n<td class=\"sme-noborders-content\" width=\"80%\">nagios <input name=\"name\" value=\"nagios\" type=\"hidden\" \/> <input name=\"action\" value=\"modify\" type=\"hidden\" \/><\/td>\n<\/tr>\n<tr>\n<td class=\"sme-noborders-label\">Description<\/td>\n<td class=\"sme-noborders-content\"><input value=\"Nagios\" name=\"description\" type=\"text\" \/><\/td>\n<\/tr>\n<tr>\n<td class=\"sme-noborders-label\">Group<\/td>\n<td class=\"sme-noborders-content\"><select name=\"group\" type=\"select\"><option value=\"admin\" selected=\"selected\">Admin <\/option><\/select><\/td>\n<\/tr>\n<tr>\n<td class=\"sme-noborders-label\">User access via file sharing or user ftp<\/td>\n<td class=\"sme-noborders-content\"><select name=\"userAccess\" type=\"select\"><option value=\"wr-admin-rd-group\" selected=\"selected\">Write = admin, Read = group <\/option><\/select><\/td>\n<\/tr>\n<tr>\n<td class=\"sme-noborders-label\">Public access via web or anonymous ftp<\/td>\n<td class=\"sme-noborders-content\"><select name=\"publicAccess\" type=\"select\"><option value=\"local\" selected=\"selected\">Local network (no password required)<\/option><\/select><\/td>\n<\/tr>\n<tr>\n<td class=\"sme-noborders-label\">Execution of dynamic content (CGI, PHP, SSI)<\/td>\n<td class=\"sme-noborders-content\"><select name=\"CgiBin\" type=\"select\"><option value=\"enabled\" selected=\"selected\">enabled <\/option><\/select><\/td>\n<\/tr>\n<\/table>\n<\/blockquote>\n<ul>\n<li><strong>Install nagios<\/strong><\/li>\n<\/ul>\n<blockquote><p> <em>The <\/em>\u00c3\u201a\u00c2\u00ab<em> character is a line continuation character and should not be included in the command.<\/em><\/p>\n<p><code>#wget ftp:\/\/ftp.nluug.nl\/pub\/os\/Linux\/distr\/CentOS\/\u00c3\u201a\u00c2\u00ab<br \/>\n4.4\/os\/x86_64\/CentOS\/RPMS\/gd-2.0.28-4.4E.1.i386.rpm<br \/>\n#wget http:\/\/isoredirect.centos.org\/centos\/4\/os\/i386\/\u00c3\u201a\u00c2\u00ab<br \/>\nCentOS\/RPMS\/xorg-x11-libs-6.8.2-1.EL.13.37.i386.rpm<br \/>\n#wget http:\/\/isoredirect.centos.org\/centos\/4\/os\/i386\/\u00c3\u201a\u00c2\u00ab<br \/>\nCentOS\/RPMS\/fontconfig-2.2.3-7.centos4.i386.rpm<br \/>\n#wget http:\/\/isoredirect.centos.org\/centos\/4\/os\/i386\/CentOS\/\u00c3\u201a\u00c2\u00ab<br \/>\nRPMS\/xorg-x11-Mesa-libGL-6.8.2-1.EL.13.37.i386.rpm<br \/>\n#wget ftp:\/\/rpmfind.net\/linux\/dag\/redhat\/el4\/en\/i386\/\u00c3\u201a\u00c2\u00ab<br \/>\ndag\/RPMS\/fping-2.4-1.b2.2.el4.rf.i386.rpm<br \/>\n#wget http:\/\/dag.wieers.com\/rpm\/packages\/\u00c3\u201a\u00c2\u00ab<br \/>\nperl-Net-SNMP\/perl-Net-SNMP-5.2.0-1.2.el4.rf.noarch.rpm<br \/>\n#wget http:\/\/dag.wieers.com\/rpm\/packages\/\u00c3\u201a\u00c2\u00ab<br \/>\nperl-Crypt-DES\/perl-Crypt-DES-2.05-3.2.el4.rf.i386.rpm<br \/>\n#rpm -ivh fontconfig-2.2.3-7.centos4.i386.rpm \u00c3\u201a\u00c2\u00ab<br \/>\nxorg-x11-Mesa-libGL-6.8.2-1.EL.13.37.i386.rpm xorg-x11-libs-6.8.2-1.EL.13.37.i386.rpm<br \/>\n#rpm -ivh   nagios-2.8-1.el4.rf.i386.rpm<br \/>\n#rpm -ivh fping-2.4-1.b2.2.el4.rf.i386.rpm<br \/>\n#rpm -ivh perl-Crypt-DES-2.05-3.2.el4.rf.i386.rpm perl-Net-SNMP-5.2.0-1.2.el4.rf.noarch.rpm<br \/>\n#rpm -ivh nagios-plugins-1.4.5-1.el4.rf.i386.rpm<\/code><\/p><\/blockquote>\n<ul>\n<li> <strong>Configure nagios to use the ibay <\/strong><\/li>\n<\/ul>\n<blockquote><p>I prefer to place all the nagios data in the ibay. If your requirements are not the same you can skip this step.<\/p>\n<p>Edit the nagios configuration files in <em>\/etc\/nagios<\/em><br \/>\n#vi \/etc\/nagios\/nagios.cfg<\/p>\n<p>Change the following lines:<br \/>\nobject_cache_file=\/home\/e-smith\/files\/ibays\/nagios\/files\/objects.cache<br \/>\nstatus_file=\/home\/e-smith\/files\/ibays\/nagios\/files\/status.dat<br \/>\ncommand_file=\/home\/e-smith\/files\/ibays\/nagios\/files\/rw\/nagios.cmd<br \/>\ncomment_file=\/home\/e-smith\/files\/ibays\/nagios\/files\/comments.dat<br \/>\ndowntime_file=\/home\/e-smith\/files\/ibays\/nagios\/files\/downtime.dat<br \/>\ntemp_file=\/home\/e-smith\/files\/ibays\/nagios\/files\/nagios.tmp<\/p>\n<p>#vi \/etc\/nagios\/cgi.cfg<\/p>\n<p>Change the following lines:<br \/>\nphysical_html_path=\/home\/e-smith\/files\/ibays\/nagios\/html<br \/>\nuse_authentication=0<\/p>\n<p><em>Note: Setting use_authentication=0 disables authentication. It is sufficient for our needs. If you require authentication then use_authentication should not be changed. Setting up authentication is beyond the scope of this document<\/em><\/p><\/blockquote>\n<ul>\n<li><strong>Edit <em>\/etc\/nagios\/localhost.cfg<\/em><\/strong><\/li>\n<\/ul>\n<blockquote><p>Define all the hosts, hostgroups, services, etc. according to your requirements.<\/p><\/blockquote>\n<ul>\n<li><strong>Copy the CGI scripts to the ibay<\/strong><\/li>\n<\/ul>\n<blockquote><p><code>#cp -r \/usr\/lib\/nagios\/cgi\/* \/home\/e-smith\/files\/ibays\/nagios\/cgi-bin\/.<\/code><\/p><\/blockquote>\n<ul>\n<li><strong>Copy the web files to the ibay<\/strong><\/li>\n<\/ul>\n<blockquote><p><code>#cp -r \/usr\/share\/nagios\/* \/home\/e-smith\/files\/ibays\/nagios\/html\/.<\/code><\/p><\/blockquote>\n<ul>\n<li><strong>Configure nagios to start in runlevel 7<\/strong><\/li>\n<\/ul>\n<blockquote><p><code>#ln -s \/etc\/rc.d\/init.d\/nagios \/etc\/rc7.d\/S97nagios<\/code><\/p><\/blockquote>\n<ul>\n<li><strong>Start nagios<\/strong><\/li>\n<\/ul>\n<blockquote><p><code>#chmod 777  \/home\/e-smith\/files\/ibays\/nagios\/files<br \/>\n#\/etc\/rc.d\/init.d\/nagios start<\/code><\/p>\n<p>This should start the nagios service. Fix any errors in the configuration files if the startup returns any errors. It is also good to have a look at the nagios log file <em>\/var\/log\/nagios\/nagios.log<\/em>. Any errors during the operation of nagios such as missing plugins, etc. will be logged in the log file<\/p><\/blockquote>\n<ul>\n<li><strong>Connect to the nagios web<\/strong><\/li>\n<\/ul>\n<blockquote><p>Open your browser and browse to <em>http:\/\/your.server\/nagios<\/em><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Overview Nagios is an application that monitors, reports and optionally can act on events on the network. This document describes the process of installing nagious 2.8 on SME 7.1.x. Software Requirements nagios-2.8-1.el4.rf.i386.rpm &#8211; This is the main nagios software package. nagios-plugins-1.4.5-1.el4.rf.i386.rpm &#8211; This contains the plugins required by nagios. Without the plugins nagios will not&hellip;&nbsp;<a href=\"https:\/\/www.caw.co.za\/?p=1\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Installing nagios on SME 7.1.x<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-sme"],"_links":{"self":[{"href":"https:\/\/www.caw.co.za\/index.php?rest_route=\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.caw.co.za\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.caw.co.za\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.caw.co.za\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.caw.co.za\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1"}],"version-history":[{"count":0,"href":"https:\/\/www.caw.co.za\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.caw.co.za\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.caw.co.za\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.caw.co.za\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}