Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 16th, 2012  |  syntax: None  |  size: 12.61 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. : cat /var/etc/apinger.conf
  2.                                                                                                                  
  3. # pfSense apinger configuration file. Automatically Generated!                                                    
  4.                                                                                                                  
  5. ## User and group the pinger should run as                                                                        
  6. user "root"                                                                                                      
  7. group "wheel"                                                                                                    
  8.                                                                                                                  
  9. ## Mailer to use (default: "/usr/lib/sendmail -t")                                                                
  10. #mailer "/var/qmail/bin/qmail-inject"                                                                            
  11.                                                                                                                  
  12. ## Location of the pid-file (default: "/var/run/apinger.pid")                                                    
  13. pid_file "/var/run/apinger.pid"                                                                                  
  14.                                                                                                                  
  15. ## Format of timestamp (%s macro) (default: "%b %d %H:%M:%S")                                                    
  16. #timestamp_format "%Y%m%d%H%M%S"                                                                                  
  17.                                                                                                                  
  18. status {                                                                                                          
  19.         ## File where the status information whould be written to                                                
  20.         file "/tmp/apinger.status"                                                                                
  21.         ## Interval between file updates                                                                          
  22.         ## when 0 or not set, file is written only when SIGUSR1 is received                                      
  23.         interval 10s                                                                                              
  24. }                                                                                                                
  25.                                                                                                                  
  26. ########################################                                                                          
  27. # RRDTool status gathering configuration                                                                          
  28. # Interval between RRD updates                                                                                    
  29. rrd interval 60s;                                                                                                
  30.                                                                                                                  
  31. ## These parameters can be overriden in a specific alarm configuration                                            
  32. alarm default {                                                                                                  
  33.         command on "/usr/local/sbin/pfSctl -c 'filter reload'"                                                    
  34.         command off "/usr/local/sbin/pfSctl -c 'filter reload'"                                                  
  35.         combine 10s                                                                                              
  36. }                                                                                                                
  37.                                                                                                                  
  38. ## "Down" alarm definition.                                                                                      
  39. ## This alarm will be fired when target doesn't respond for 30 seconds.                                          
  40. alarm down "down" {                                                                                              
  41.         time 10s                                                                                                  
  42. }                                                                                                                
  43.                                                                                                                  
  44. ## "Delay" alarm definition.                                                                                      
  45. ## This alarm will be fired when responses are delayed more than 200ms                                            
  46. ## it will be canceled, when the delay drops below 100ms                                                          
  47. alarm delay "delay" {                                                                                            
  48.         delay_low 200ms                                                                                          
  49.         delay_high 500ms                                                                                          
  50. }                                                                                                                
  51.                                                                                                                  
  52. ## "Loss" alarm definition.                                                                                      
  53. ## This alarm will be fired when packet loss goes over 20%                                                        
  54. ## it will be canceled, when the loss drops below 10%                                                            
  55. alarm loss "loss" {                                                                                              
  56.         percent_low 10                                                                                            
  57.         percent_high 20                                                                                          
  58. }                                                                                                                
  59.                                                                                                                  
  60. target default {                                                                                                  
  61.         ## How often the probe should be sent                                                                    
  62.         interval 1s                                                                                              
  63.                                                                                                                  
  64.         ## How many replies should be used to compute average delay                                              
  65.         ## for controlling "delay" alarms                                                                        
  66.         avg_delay_samples 10                                                                                      
  67.                                                                                                                  
  68.         ## How many probes should be used to compute average loss                                                
  69.         avg_loss_samples 50                                                                                      
  70.                                                                                                                  
  71.         ## The delay (in samples) after which loss is computed                                                    
  72.         ## without this delays larger than interval would be treated as loss                                      
  73.         avg_loss_delay_samples 20                                                                                
  74.                                                                                                                  
  75.         ## Names of the alarms that may be generated for the target                                              
  76.         alarms "down","delay","loss"                                                                              
  77.                                                                                                                  
  78.         ## Location of the RRD                                                                                    
  79.         #rrd file "/var/db/rrd/apinger-%t.rrd"                                                                    
  80. }                                                                                                                
  81. target "10.34.29.1" {                                                                                            
  82.         description "DSL"                                                                                        
  83.         srcip "72.69.84.122"                                                                                      
  84.         alarms override "loss","delay","down";                                                                    
  85.         rrd file "/var/db/rrd/DSL-quality.rrd"                                                                    
  86. }                                                                                                                
  87.                                                                                                                  
  88. alarm delay "CABLEdelay" {                                                                                        
  89.         delay_low 200ms                                                                                          
  90.         delay_high 500ms                                                                                          
  91. }                                                                                                                
  92. alarm down "CABLEdown" {                                                                                          
  93.         time 10s                                                                                                  
  94. }                                                                                                                
  95. target "10.34.29.1" {                                                                                            
  96.         description "DSL"                                                                                        
  97.         srcip "72.69.84.122"                                                                                      
  98.         alarms override "loss","delay","down";                                                                    
  99.         rrd file "/var/db/rrd/DSL-quality.rrd"                                                                    
  100. }                                                                                                                
  101.                                                                                                                  
  102. target "8.8.4.4" {                                                                                                
  103.         description "CABLE"                                                                                      
  104.         srcip "216.252.57.247"                                                                                    
  105.         alarms override "loss","CABLEdelay","CABLEdown";                                                          
  106.         rrd file "/var/db/rrd/CABLE-quality.rrd"                                                                  
  107. }                                                                                                                
  108.                                                                                                                  
  109. : ifconfig pppoe0                                                    
  110. pppoe0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1492                              
  111.         inet6 fe80::240:48ff:feb2:8216%pppoe0 prefixlen 64 scopeid 0x9                                            
  112.         inet 72.69.80.117 --> 10.34.29.1 netmask 0xffffffff                                                      
  113.         nd6 options=3<PERFORMNUD,ACCEPT_RTADV>