1 | Smokeping Monitoring |
---|
2 | -------------------- |
---|
3 | |
---|
4 | On Master Server, access and become root |
---|
5 | |
---|
6 | $ sudo su - |
---|
7 | |
---|
8 | 1. Configure Smokeping |
---|
9 | |
---|
10 | Go to Smokeping's working directory |
---|
11 | |
---|
12 | # cd /usr/local/etc/smokeping |
---|
13 | |
---|
14 | Backup Smokeping's original config as we will use a simpler configuration |
---|
15 | |
---|
16 | # mv config config.orig |
---|
17 | |
---|
18 | Download a smokeping configuration file |
---|
19 | |
---|
20 | # fetch http://noc.ws.nsrc.org/config |
---|
21 | |
---|
22 | Take a look a Smokeping's configuration, it's fairly simple |
---|
23 | |
---|
24 | # less config |
---|
25 | |
---|
26 | Edit the file, and find the sections near the bottom where |
---|
27 | it is written '10.10.xx.', and replace these with the IP of your |
---|
28 | group (you should now have 3 functioning DNS servers). |
---|
29 | |
---|
30 | Have a look at the rest of the file - most of the values have been |
---|
31 | set, but you may want to change your name & email near the top. |
---|
32 | |
---|
33 | Next, we will need to change Smokeping's working directory permission |
---|
34 | |
---|
35 | # chown smokeping /usr/local/var/smokeping |
---|
36 | |
---|
37 | 2. Enable and Start Smokeping Service |
---|
38 | |
---|
39 | Add into /etc/rc.conf |
---|
40 | |
---|
41 | smokeping_enable="YES" |
---|
42 | |
---|
43 | Start smokeping service |
---|
44 | |
---|
45 | # /usr/local/etc/rc.d/smokeping start |
---|
46 | |
---|
47 | |
---|
48 | 3. Apache Web Server Configuration for smokeping |
---|
49 | |
---|
50 | Go to Apache's working directory |
---|
51 | |
---|
52 | # cd /usr/local/etc/apache22 |
---|
53 | |
---|
54 | Create a new configuration file for Smokeping: |
---|
55 | |
---|
56 | # vi Includes/smokeping.conf |
---|
57 | (or ee Includes/smokeping.conf, if you would rather use 'ee') |
---|
58 | |
---|
59 | - - - - - - - - - - - - - - - - - cut below - - - - - - - - - - - - - - - |
---|
60 | |
---|
61 | Alias /smokeping/ "/usr/local/smokeping/htdocs/" |
---|
62 | AddHandler cgi-script .cgi |
---|
63 | |
---|
64 | <Directory "/usr/local/smokeping/htdocs"> |
---|
65 | Options ExecCGI FollowSymLinks |
---|
66 | AllowOverride None |
---|
67 | Order allow,deny |
---|
68 | Allow from all |
---|
69 | </Directory> |
---|
70 | |
---|
71 | - - - - - - - - - - - - - - - - - cut above - - - - - - - - - - - - - - - |
---|
72 | |
---|
73 | Restart apache service for new config to take place |
---|
74 | |
---|
75 | # /usr/local/etc/rc.d/apache22 reload |
---|
76 | |
---|
77 | Access to your smokeping via http://10.10.x.1/smokeping/smokeping.cgi |
---|
78 | |
---|
79 | It will take at least 3 - 4 minutes to start receiving data. |
---|
80 | |
---|