I've removed nagios3 with apt-get remove nagios3 and then removed the files in by using the command sudo rm -R /etc/nagios*

Now when I run apt-get install nagios3 the config files (/etc/nagios3/*) are not present. How can I regenerate them?

This box is on Ubuntu 10.04.

  • "removed the files in by using"? I think there is a missing word here. Dec 12, 2011 at 4:19

1 Answer 1


Purge nagios3. Then reinstall. That will probably work.

apt-get purge nagios3
apt-get install nagios3

The purge will get rid of the config files, which the system didn't delete initially, and so thought were still installed. If purging nagios3 is not an option, then it will be a little more complicated. If that is the case, leave a comment.

  • cool. that helped. also had to do sudo apt-get --purge autoremove and sudo apt-get purge nagios-plugins-basic
    – cwd
    Dec 12, 2011 at 4:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .