nagios实现监控主机

2 unzip Nagios.zip -d /usr/src/
3 cd /usr/src/
4 ls
5 cd Nagios/
6 ls
7 cd nagios_software/
8 ls
9 tar fx nagios-4.0.8.tar
10 ls
11 cd nagios-4.0.8
12 ls
13 ./configure --prefix=/usr/local/nagios
14 make all
15 /etc/rc.d/init.d/httpd restart
16 make install
17 useradd nagios
18 make install
19 make install-init
20 make install-commandmode
21 make install-config
22 make install-webconf
23 /etc/init.d/httpd restart
24 /etc/init.d/nagios restart
25 htpasswd -cm /usr/local/nagios/etc/htpasswd.users nagios
26 ls
27 cd ..
28 ls
29 tar nagios-plugins-2.0.3.tar
30 tar fx nagios-plugins-2.0.3.tar
31 ls
32 cd nagios-plugins-2.0.3
33 ls
34 ./configure --prefix=/usr/local/nagios/
35 cd /etc/httpd/conf.d/
36 ls
37 vim nagios.conf
38 cd /usr/local/nagios/etc/
39 ls
40 vim cgi.cfg
41 /etc/init.d/httpd restart
42 /etc/init.d/nagios restart
43 cd /usr/local/
44 ls
45 cd libexec/
46 ls
47 /etc/init.d/nagios restart
48 cd /usr/src/
49 ls
50 cd Nagios/
51 ls
52 cd nagios_software/
53 ls
54 cd nagios-plugins-2.0.3
55 ls
56 ./configure --prefix=/usr/local/nagios/
57 make && make install
58 /etc/init.d/nagios restart

猜你喜欢

转载自www.cnblogs.com/nwpLinux/p/9261398.html