3
# some shorthands for sanity
5
enc="/etc/nagios3/conf.d"
6
usn="/usr/share/nagios3"
12
for file in $en/resource.cfg /var/log/nagios3 /var/run/nagios3 \
13
/var/lib/nagios3 /var/lib/nagios3/spool \
14
/var/lib/nagios3/spool/checkresults \
15
/var/cache/nagios3 /var/lib/nagios3/rw; do
16
dpkg-statoverride --force --remove $file 2>/dev/null || true
18
rm -rf /var/run/nagios3 /var/log/nagios3 /var/lib/nagios3 \
20
rm -f /etc/nagios3/htpasswd.users
21
rm -f /etc/nagios3/apache2.conf
22
rm -f /etc/nagios3/conf.d/host-gateway_nagios3.cfg
23
#rm -f /etc/nagios3/conf.d/extcommands_nagios3.cfg
24
if which ucf >/dev/null 2>&1; then
25
ucf --purge /etc/nagios3/apache2.conf
26
ucf --purge /etc/nagios3/conf.d/host-gateway_nagios3.cfg
27
#ucf --purge /etc/nagios3/conf.d/extcommands_nagios3.cfg