Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question
    
"removed the files in by using"? I think there is a missing word here. –  Faheem Mitha Dec 12 '11 at 4:19

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
    
cool. that helped. also had to do sudo apt-get --purge autoremove and sudo apt-get purge nagios-plugins-basic –  cwd Dec 12 '11 at 4:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.