...
Code Block | ||
---|---|---|
| ||
cd ~ tar xvf ~/opHA-<version>.tar.gz cd opHA/ cp install/Servers.nmis /usr/local/nmis8/conf/ cp cgi-bin/connect.pl /usr/local/nmis8/cgi-bin/ cp lib/NMIS/Connect.pm /usr/local/nmis8/lib/NMIS /usr/local/nmis8/admin/fixperms.pl |
opHA Authentication Model
opHA has a simple yet strong authentication model, to prevent unwanted access to NMIS data.
The slave is configured with:
- An NMIS user and password, by default this is an Apache htpasswd file, defined in /usr/local/nmis8/conf/users.dat
- An NMIS user, with associated privileges, defined in /usr/local/nmis8/conf/Users.nmis
- An NMIS user to use for the authentication policy enforcement, defined in /usr/local/nmis8/conf/Config.nmis
- Server Community, which the server must use to request data.
The master is configured with (for each slave):
- An NMIS user and password, which needs to match the slave configuration
- A slave/server community, which needs to match the slave configuration.
This model enables you to use separate credentials for each slave or the same credentials for each slave, providing for simple configuration, and more secure configuration if required.
All communications between master and slave can be done over SSL if required, this is supported by configuring your server HTTPD to support SSL and then configuring the master, slave communications to use HTTPS.
opHA Slave Configuration
This configuration will be done on each NMIS Slave Server. By default, the shared community for a slave is "secret" if you want to change this to something specific you can edit the NMIS Configuration item "slave_community" using your favourite text editor, edit this line and change secret to your desired opHA community string.
...
Code Block | ||
---|---|---|
| ||
[root@thor conf]# /usr/local/nmis8/bin/nmis.pl type=master debug=true NMIS Copyright (C) 1999-2011 Opmantek Limited (www.opmantek.com) This program comes with ABSOLUTELY NO WARRANTY; This is free software licensed under GNU GPL, and you are welcome to redistribute it under certain conditions; see www.opmantek.com or email contact@opmantek.com NMIS version 8.3.4G 14:00:33 nmisMaster, Running NMIS Master Functions 14:00:33 nmisMaster, Master, processing Slave Server vali 14:00:33 nmisMaster, Get loadnodedetails from vali 14:00:33 nmisMaster, Get sumnodetable from vali 14:00:34 nmisMaster, get summary8 from vali 14:00:34 nmisMaster, get summary16 from vali [root@thor conf]# |
Access opMaps Web Page
The default URL to access opMaps is http://nmis.domain.com/cgi-omk/opMaps
...
Conclusion
After refreshing the web pages on the NMIS Master server you will see the data from the slaves.