Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Copy files to new directory. 

    Code Block
    cp -r /usr/local/nmis8 /opt/nmis8
  2. Fix permissions on the copied files. 

    Code Block
    chown -Rv nmis:nmis /opt/nmis8
    chmod -Rv g+w /opt/nmis8 
  3. Edit config files so that NMIS will write data to our new location, edit /usr/local/nmis8/conf/Config.nmis 

    Code Block
    # this line
    line 13: '<nmis_data>' => '<nmis_base>',
    # should change to
    line 13: '<nmis_data>' => '/opt/nmis8',
  4. To test, move the existing data directores to new folders. 

    Code Block
     mv /usr/local/nmis8/database /usr/local/nmis8/database_old
  5. Run a manual update, you should see no errors. 

    Code Block
    /usr/local/nmis8/bin/nmis8nmis.pl type=update debug=1
    # you should not see any errors like this:
    # createRRD, ERROR (localhost) unable to create /opt/nmis8/database/health/server/localhost-reach.rrd: creating '/opt/nmis8/database/health/server/localhost-reach.rrd': No such file or directory  
  6. Open or reload the NMIS web page and everything should still look the same.
  7. After confirming there are no errors you can now safely delete the old database directory. 

    Code Block
    themeEmacs
    rm -rf /usr/local/nmis8/database_old

...