How to move nagios to new hardware?


I have to move my nagios from old hardware to new hardware.
I intall nagios, plugin, etc., and move configuration files.
But I have move clients history also.
For this I copy status.dat, nagios log and arhive folder.
But i cannot move spool directory and retention.dat due to permission denied
Is there a procedure to move nagios ith history,trends, availability etc…?


Who owns these files, can you copy as root?


nagios user owns thse files , but i try to copy them both super use and nagios user.
Both are got permission denied.


did you stop nagios before moving the files?