Date: Fri, 29 Mar 2024 01:05:56 +0000 (UTC) Message-ID: <891499377.4005.1711674356560@skald.opmantek.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4004_1608877750.1711674356560" ------=_Part_4004_1608877750.1711674356560 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
NMIS 8.3.18G is being released for general availability, This release pr= ovides many bug fixes and a few new features.
NMIS8 now requires Net::Syslog, see the 8.3.9G patch for info on SMTP::SSL=
cpan install Net::SMTP::SSL # (required for 8.3.9G) install Net::Syslog
#Backup current N= MIS code and config including models DATE=3D`date "+%Y-%m-%d-%H%M"` cd /usr/local/nmis8 tar cvf ~/nmis8-backup-$DATE.tar ./admin ./bin ./cgi-bin ./conf ./install .= /lib ./menu ./mibs ./models #Make sure NMIS is working before you patch it. /usr/local/nmis8/bin/nmis.pl type=3Dcollect debug=3Dtrue node=3D<node to= test> #Get CP working right. (no prompts) unalias cp #Unarchive the NMIS tarball cd ~ mkdir patch cd patch=20 tar xvf ../nmis-8.3.18g.tar.gz # Patch the Code Base cp nmis8/admin/* /usr/local/nmis8/admin cp nmis8/bin/* /usr/local/nmis8/bin cp nmis8/cgi-bin/* /usr/local/nmis8/cgi-bin cp -r nmis8/install/* /usr/local/nmis8/install cp -r nmis8/lib/* /usr/local/nmis8/lib cp -r nmis8/menu/* /usr/local/nmis8/menu cp nmis8/models-install/* /usr/local/nmis8/models
Your NMIS installation may have settings that you have changed from the = default installation. If you would like to keep these changes you wil= l need to merge the additional fields that have been added into the stock c= onfiguration into your custom configuration. NMIS provides a tool cal= led updateconfig.pl to help you do this:
# merge changes f= or new NMIS Config options.=20 /usr/local/nmis8/admin/updateconfig.pl /usr/local/nmis8/install/Config.nmis= /usr/local/nmis8/conf/Config.nmis /usr/local/nmis8/admin/updateconfig.pl /usr/local/nmis8/install/Access.nmis= /usr/local/nmis8/conf/Access.nmis
Most of the config files will likely be the same as the install version,= for these you can just copy the new versions
# copy newer conf= iguration files (check that you don't have local changes to these files bef= ore running)=20 cp /usr/local/nmis8/install/Tables.nmis /usr/local/nmis8/conf=20 cp /usr/local/nmis8/install/Table-*.nmis /usr/local/nmis8/conf=20 cp /usr/local/nmis8/install/Logs.nmis /usr/local/nmis8/conf=20 cp /usr/local/nmis8/install/Users.nmis /usr/local/nmis8/conf cp /usr/local/nmis8/install/BusinessServices.nmis /usr/local/nmis8/conf cp /usr/local/nmis8/install/ServiceStatus.nmis /usr/local/nmis8/conf=20 cp /usr/local/nmis8/install/Services.nmis /usr/local/nmis8/conf cp /usr/local/nmis8/install/License.nmis /usr/local/nmis8/conf cp /usr/local/nmis8/install/Modules.nmis /usr/local/nmis8/conf cp /usr/local/nmis8/install/Escalations.nmis /usr/local/nmis8/conf cp /usr/local/nmis8/install/Portal.nmis /usr/local/nmis8/conf cp /usr/local/nmis8/install/logrotate.conf /usr/local/nmis8/conf cp /usr/local/nmis8/install/users.dat /usr/local/nmis8/conf
Change Config.nmis to tell NMIS to use the new file permission scheme
%hash =3D ( --SNIP--=20 'system' =3D> { --SNIP-- 'os_execperm' =3D> '0770', 'os_fileperm' =3D> '0660',
We recommend updating the authentication system from apache to htpasswd = (so NMIS does authentication instead of Apache). 3 steps need to be taken t= o change this.
Change Config.nmis to tell NMIS to use htpasswd
%hash =3D ( --SNIP--=20 'authentication' =3D> { --SNIP-- 'auth_method_1' =3D> 'htpasswd', # <=3D change this FROM apache T= O htpasswd
Backup old apache configGenerate new apache configuration (if you ha= ve customised yours edit it and remove the auth portions instead of generat= ing a new one)
#backup old confi= g cd /etc/httpd/conf.d/ cp 00nmis.conf 00nmis.conf.pre-8.3.18G.bak
Create new config to replace old config and restart apache
/usr/local/nmis/b= in/nmis.pl type=3Dapache > /etc/httpd/conf.d/00nmis.conf service httpd restart
Run this command to make all the DS's COUNTER instead of GAUGE
/usr/local/nmis8/= admin/rrd_tune_mib2ip.pl run=3Dtrue change=3Dtrue
Restart Daemons
/usr/local/nmis8/= bin/fpingd.pl restart=3Dtrue
# optionally audi= t your config /usr/local/nmis8/bin/nmis.pl type=3Daudit # fix your config /usr/local/nmis8/bin/nmis.pl type=3Dconfig # fix permissions /usr/local/nmis8/admin/fixperms.pl # test polling /usr/local/nmis8/bin/nmis.pl type=3Dcollect debug=3Dtrue node=3D<node to= test>