| 1 | Smokeping Monitoring |
|---|
| 2 | -------------------- |
|---|
| 3 | |
|---|
| 4 | On the MASTER serveur (auth1) |
|---|
| 5 | |
|---|
| 6 | 1. Configure Smokeping |
|---|
| 7 | |
|---|
| 8 | Go to Smokeping's config directory |
|---|
| 9 | |
|---|
| 10 | $ cd /usr/local/etc/smokeping |
|---|
| 11 | |
|---|
| 12 | Backup Smokeping's original config as we will use a simpler configuration |
|---|
| 13 | |
|---|
| 14 | $ sudo mv config config.orig |
|---|
| 15 | |
|---|
| 16 | Download a smokeping configuration file |
|---|
| 17 | |
|---|
| 18 | $ sudo fetch http://noc.dns.nsrc.org/configs/smokeping-dns/config |
|---|
| 19 | |
|---|
| 20 | Take a look a Smokeping's configuration, it's fairly simple |
|---|
| 21 | |
|---|
| 22 | $ less config |
|---|
| 23 | |
|---|
| 24 | Edit the file, and find the sections near the bottom where |
|---|
| 25 | it is written '10.20.xx.', and replace these with the IP of your |
|---|
| 26 | group (if you don't yet have 3 functioning DNS servers, it's ok). |
|---|
| 27 | |
|---|
| 28 | Have a look at the rest of the file - most of the values have been |
|---|
| 29 | set, but you may want to change your name & email near the top. |
|---|
| 30 | |
|---|
| 31 | Next, we will need to change Smokeping's working directory permission |
|---|
| 32 | |
|---|
| 33 | $ sudo chown smokeping /usr/local/var/smokeping |
|---|
| 34 | |
|---|
| 35 | 2. Enable and Start Smokeping Service |
|---|
| 36 | |
|---|
| 37 | Add into /etc/rc.conf |
|---|
| 38 | |
|---|
| 39 | smokeping_enable="YES" |
|---|
| 40 | |
|---|
| 41 | Start smokeping service |
|---|
| 42 | |
|---|
| 43 | $ sudo service smokeping start |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | 3. Apache Web Server Configuration for smokeping |
|---|
| 47 | |
|---|
| 48 | Go to Apache's working directory |
|---|
| 49 | |
|---|
| 50 | $ cd /usr/local/etc/apache22 |
|---|
| 51 | |
|---|
| 52 | Create the configuration file for Smokeping: |
|---|
| 53 | |
|---|
| 54 | $ sudo vi Includes/smokeping.conf |
|---|
| 55 | (or 'ee Includes/smokeping.conf', if you would rather use 'ee') |
|---|
| 56 | |
|---|
| 57 | Add the following lines to the file and save the file when done: |
|---|
| 58 | |
|---|
| 59 | - - - - - - - - - - - - - - - - - cut below - - - - - - - - - - - - - - - |
|---|
| 60 | |
|---|
| 61 | Alias /smokeping/ "/usr/local/smokeping/htdocs/" |
|---|
| 62 | |
|---|
| 63 | <Directory "/usr/local/smokeping/htdocs"> |
|---|
| 64 | Options ExecCGI FollowSymLinks |
|---|
| 65 | AllowOverride None |
|---|
| 66 | Order allow,deny |
|---|
| 67 | Allow from all |
|---|
| 68 | </Directory> |
|---|
| 69 | |
|---|
| 70 | - - - - - - - - - - - - - - - - - cut above - - - - - - - - - - - - - - - |
|---|
| 71 | |
|---|
| 72 | Make sure that apache is enabled in /etc/rc.conf, if not, add this |
|---|
| 73 | to the /etc/rc.conf (sudo vi /etc/rc.conf): |
|---|
| 74 | |
|---|
| 75 | apache22_enable="YES" |
|---|
| 76 | |
|---|
| 77 | Restart apache service for new config to take place |
|---|
| 78 | |
|---|
| 79 | $ sudo service apache22 restart |
|---|
| 80 | |
|---|
| 81 | Access to your smokeping via http://10.20.xx.1/smokeping/smokeping.fcgi |
|---|
| 82 | |
|---|
| 83 | It will take at least 3 - 4 minutes to start receiving data. |
|---|
| 84 | |
|---|
| 85 | To see DNS latency on your three nameservers click on "Service |
|---|
| 86 | latency" and then "DNS latency" in the menu on the left of your |
|---|
| 87 | screen in SmokePing. |
|---|