blob: 74cdedacf6c958c26e5b5fb1166780628d3fbb1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
NAGDIR = /etc/nagios3/
NAGLIBDIR = /usr/lib/nagios
HTDOCS = /usr/share/nagios3/htdocs
.phony: debian
debian:
[ `which nagios3` ] || apt-get install nagios3
rm $(NAGDIR)/conf.d/localhost_nagios2.cfg || true
rm $(NAGDIR)/conf.d/host-gateway_nagios3.cfg || true
cp -r conf/* $(NAGDIR)/conf.d/
htpasswd -bc htpasswd.users nagiosadmin krebs
htpasswd -b htpasswd.users shack shackit
sed -i 's/\(authorized_for_all_hosts=nagiosadmin$\)/\1,shack/
sed -i 's/\(authorized_for_all_services=nagiosadmin$\)/\1,shack/
cp -R htdocs/* $(HTDOCS)
cp -r plugins $(NAGLIBDIR)
/etc/init.d/nagios3 reload
|