...
- NMIS 9 and OMK apps are installed on the server.
Step 1. Stop all daemons
...We first need to make sure all the daemons are stopped in the destination server:
Code Block |
---|
sudo service nmis9d stop
sudo service omkd stop
sudo service opeventsd stop
sudo service opchartsd stop
sudo service opconfigd stop |
Step 2. Move and adapt NMIS configurations files
Configuration Files
Copy
Copy the configuration directory from the source server.
Create a conf backup first:
Code Block |
---|
mv /usr/local/nmis9/conf /tmp/nmis9/conf |
This can be done really easy with rsync:
Code Block |
---|
rsync -r root@uburnto.opmantek.net:/usr/local/nmis8/conf /usr/local/nmis9/conf |
Configure
We need to make some adjustments to the file. This is:
- Replace all nmis8 occurrences by nmis9.
- Remove sql section.
- Add database section.
Code Block |
---|
'database' => {
'db_name' => 'nmisng',
'db_password' => 'op42flow42',
'db_port' => '27017',
'db_query_timeout' => 5000,
'db_server' => 'localhost',
'db_username' => 'opUserRW',
'db_never_remove_indices' => [ 'nodes' ],
},
...
'<nmis_base>' => '/usr/local/nmis9',
'<url_base>' => '/nmis9',
'<cgi_url_base>' => '/cgi-nmis9',
|
Model Files
...
Plugins
...
Step 3. Move and adapt OMK configuration files
...