I run a couple of Internet-facing servers for my website, side projects, and the like. I also have the pleasure of a home Internet connection that isn't always the best. (Don't we all!) It's useful to be able to monitor network conditions to specific servers or addresses -- usually to determine that my home connection is to blame. There are numerous solutions for monitoring networked computers (,, in a session), but one stands out as being really good at visualizing network latency. -- written by of notoriety -- monitors network latency and visualizes it with a number of useful graphs. There are a lot of ways you can configure SmokePing to monitor and present network latency, but it's pretty dang helpful right out of the box. Installing and configuring SmokePing is pretty straightforward for most Linux distributions, but I had a hard time finding a good example of how to do it on. So, here are the steps I took to get an and SmokePing stack running. Install SmokePing SmokePing itself is already distributed with the. It's just a matter of installing SmokePing and its dependencies: pkg install smokeping Add SmokePing to /etc/rc.conf: smokeping_enable='YES' Configure SmokePing SmokePing's main configuration file is /usr/local/etc/smokeping/config. We'll need to edit this to change some basic configuration settings, as well as to add the targets that we want to monitor: Find the owner, contact, and optionally mailhost and sendmail lines, and change them appropriately. Owner = jexample contact = [email protected] mailhost = mail.example.com sendmail = /usr/sbin/sendmail You'll want to comment out the *** Alerts *** and *** Slaves *** sections for now: # *** Alerts *** # to = [email protected] # from = [email protected] # # +someloss # type = loss # # in percent # pattern = >0%,*12*,>0%,*12*,>0% # comment = loss 3 times in a row. # *** Slaves *** # secrets=/usr/local/etc/smokeping/smokeping_secrets # +boomer # display_name=boomer # color=0000ff # # +slave2 # display_name=another # color=00ff00 Now, find the *** Targets *** section and set up the targets you want to monitor. Targets are listed hierarchically, with multiple plus signs denoting the depth. Mudah banget. Install apache20 # /usr/ports/www/apache20/ # make install clean 2. Install smokepingnya # /usr/ports/net-mgmt/smokeping # make install clean. The example below divides our targets into 'web servers' and 'databases'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2019
Categories |