System information

For Solaris:
groupadd -g 4200 nmis
useradd -u 4200 -g nmis -c "NMIS User" nmis
Setting the location of Perl in the scripts
So that NMIS runs properly you will need to edit all the perl scripts and change the top line
which tells the script which shell to use currently this line would read:
#!/usr/local/bin/perl
This should work for 99% of people as this is the usuall location of Perl. If your executable lives
somewhere else then you would need to change this ie:
#!/usr/bin/perl5
This should be done in nmis.pl, nmiscgi.pl, reports.pl, logs.pl and admin.pl.
Setting the location of library files in the scripts
If you have used the standard directories nmis should find all its own config files, about the only
thing to do is to make sure NMIS can find rrdtool.
NMIS uses this for the rrdtool libraries:
use lib "/usr/local/rrdtool/lib/perl";
You might have installed rrdtool to the following directory like /usr/local/rrdtool/rrdtool-1.0.33.
The easiest thing to do is create a symbolic link like this:
ln -s /usr/local/rrdtool-1.0.33 /usr/local/rrdtool
If you do this, as you upgrade rrdtool you can easily change the symbolic link without having to
edit all the NMIS scripts.
Fixing File Locations
NMIS was written on Solaris so until version 2.2 is finalised there are some hard-coded file
locations you might have to change in /bin/admin.pl change the file locations for ping,
traceroute etc. to suit your machine (the command 'which ping' will tell you where it lives). You
may need to change the syntax of ping - for eample the following works in Linux at about line 89
of /cgi-bin/admin.pl
if ($admin eq "ping") {
$adminoutput=`/bin/ping -c 5 -s 64 $node`;
}
The same applies for other commands. This will be automagically fixed in 2.2 :)
Also change the first line of run-reports.sh to #!/bin/sh if you don't have ksh at /bin/ksh ('which ksh' will tell
you where it is or report an error if you don't have it at all.)
Setting up Ping
Ping is now Perl Net::Ping it requires NMIS to run as root to use the Net::Ping module. You
could also try setting the sticky bit to allow nmis to run with root privilages.
Adding devices to the device list
NMIS - Network Management Information System http://www.sins.com.au/nmis/
6 of 43 15/04/2002 3:59 PM