ppplog_docs

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
ppplog_docs [16.07.2006 13:51 (vor 18 Jahren)] – angelegt cwachappplog_docs [16.11.2016 23:18 (vor 8 Jahren)] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
  
-<code> 
-########################################### 
-## Example Config File 
-## ppplog 1.0 
-##  
-## supplied by Clemens Wacha <wacha@gmx.ch> 
-########################################### 
  
-# comments start with '#' .. ahaaa ;-) +===== General ===== 
-# defaults in [] +  # comments start with '#' .. ahaaa ;-) 
-# options are CASE SENSITIVE (yes im lazy..)+  # defaults in [] 
 +  # options are CASE SENSITIVE (yes im lazy..)
  
-# debug [0] +==== Debug ====
-# if enabled lists lots of debug messages +
-+
-#debug 1+
  
-check_delay [1+  debug [0
-# time between connection tests. ppplog sleeps exaclty check_delay  +  # if enabled lists lots of debug messages  
-# seconds. you can increase this value as you like. ppplog will stop +  
-# accounting as soon as it detects that the link is down (which takes more time +  #debug 1
-# if check_delay is big). +
-+
-#check_delay 1+
  
-# dial_delay [0] +==== Check delay ====
-# the delay in seconds between the start of pppd and the actual internet +
-# connection. depends on your phone company. normally they charge you as soon +
-# as the line is established. +
-+
-# dial_delay 0+
  
-silent [0+  check_delay [1
-# you will get no output if silent is 1 +  time between connection tests. ppplog sleeps exaclty check_delay  
-+  # seconds. you can increase this value as you like. ppplog will stop 
-#silent 0+  # accounting as soon as it detects that the link is down (which takes more time 
 +  # if check_delay is big).  
 +  
 +  #check_delay 1
  
-# background [0] +==== Dial delay ====
-# program goes to background immediately after start. useful if you +
-# would like it to run as a service +
-#  +
-#background 0+
  
-########################## +  dial_delay [0] 
-# Accounting Information +  the delay in seconds between the start of pppd and the actual internet 
-##########################+  connection. depends on your phone company. normally they charge you as soon 
 +  as the line is established. 
 +  
 +  dial_delay 0
  
-# config [no default] +==== Silence mode ====
-# THIS LINE IS IMPORTANT! The line creates a new set of zone definitions. All accounting +
-# options after this line are attached to the config set. So this line has to appear before you  +
-# define log-/savefiles zone definitions etc. If you want to log costs for another +
-# phone company at the same time just add another 'config' option. +
-+
-#config my_sunrise_definition+
  
-logfilename [~/ppplog.log+  silent [0
-where do you want the logfile to be. set to /dev/null if you dont like a  +  # you will get no output if silent is 1 
-# logfile (why do you use this program???). gets updated every time a connection +  
-# gets closed. +  #silent 0
-+
-#logfilename /usr/local/etc/ppplog/ppplog.log+
  
-savefilename [~/.ppplog+==== Backgrouding ==== 
-the file where ppplog keeps track of the running coststhe file gets +  background [0
-updated every time connection gets closed. +  program goes to background immediately after startuseful if you 
-+  would like it to run as service 
-#savefilename /usr/local/etc/ppplog/ppplog.save+  #  
 +  #background 0
  
-# isolog [0] - nice format 
-# do you prefer a nicley formatted logfile or an ISO compliant (hopefully) 
-# logfile for further processing? 
-# 
-#isolog 0 
  
-# isodelim [" "] +===== Accounting Information =====
-# only used if isolog 1. the delimiter between the log entries +
-+
-#isodelim "," # CSV Mode+
  
-# initial_cost [0.00] +==== Config name ====
-# some phone companies charge you an establishing fee. (i.e. sunrise in  +
-# Switzerland 0.03/per call +
-+
-#initial_cost 0.03+
  
-min_cost [0+  config [no default
-# a call always costs at least that mucheven if your phone call would cost +  THIS LINE IS IMPORTANT! The line creates new set of zone definitionsAll accounting 
-less because it didn't took long enough. depends on your phone company+  options after this line are attached to the config setSo this line has to appear before you  
-normally you set either initial_cost or min_cost+  define log-/savefiles zone definitions etc. If you want to log costs for another 
-+  # phone company at the same time just add another 'config' option.  
-#min_cost 0+  
 +  #config my_sunrise_definition
  
-currency_before ["$"+==== Log file ==== 
-a text string displayed before the cost if silent = 0. if isolog = 1 this +  logfilename [~/ppplog.log
-is the string used in the log file+  where do you want the logfile to beset to /dev/null if you dont like a  
-+  # logfile (why do you use this program???). gets updated every time a connection 
-#currency_before "CHF"+  gets closed
 +  
 +  #logfilename /usr/local/etc/ppplog/ppplog.log
  
-currency_after [""+==== Save file ==== 
-displayed in formatted log and if silent = 0 after the cost+  savefilename [~/.ppplog
-+  # the file where ppplog keeps track of the running coststhe file gets 
-#currency_after ""+  updated every time a connection gets closed. 
 +  # 
 +  #savefilename /usr/local/etc/ppplog/ppplog.save
  
-uom_cost [1+==== ISO logging ==== 
-the unit of measure cost (in secondsis used to simplify the zone cost  +  isolog [0- nice format 
-# entries. most phone companies tell you the phone cost per hour. In this  +  do you prefer a nicley formatted logfile or an ISO compliant (hopefully
-# case set uom_cost to 3600. see the examples below and mail me if that is  +  logfile for further processing? 
-unclear. +  
-+  #isolog 0
-#uom_cost 3600+
  
-day [no default+==== ISO delimiter ==== 
-day is used to simplify the zone entriesjust select the days when the zone +  isodelim [" "
-is active. if the zone is active on weekday's, write day 1 2 3 4 5. 1 stands +  only used if isolog = 1. the delimiter between the log entries  
-for monday2 for tuesday etc. +  
-# +  #isodelim ",CSV Mode
-#day 1 2 3 4 5+
  
-zone [no default+==== Initial cost ==== 
-zone defines a cost zonethis is the most important option heretell  +  initial_cost [0.00
-# ppplog when the zone starts, when it ends, how long a unit is and how  +  some phone companies charge you an establishing fee(i.esunrise in  
-# much the unis costsexample +  # Switzerland = 0.03/per call 
-+  
-#      name of zone   starts at 08:00 ends 17:00  unit 1 sec and costs 1.5 +  #initial_cost 0.03
-zone "normalcharge" 08 00           17 00                    1.50 +
-+
-if it costs 1.5 per hour remember to set uom_cost 3600. +
-+
-#zone char* int int  int int   int float+
  
-specialday [no default+==== Minimal cost per call ==== 
-specialday is special zone used for national holidaysthe format is similar +  min_cost [0
-to zoneremark the last 3 parameters. special days are always checked first+  # a call always costs at least that mucheven if your phone call would cost 
-ppplog uses the first zone that matches the current time and date!! +  less because it didn't took long enoughdepends on your phone company
-+  normally you set either initial_cost or min_cost. 
-specialday name starthour startmin stophour stopmin unitlength unitcost day month year +  
-#specialday "x-mas" 08 00 23 00 1 1.5 24 12 2003+  #min_cost 0
  
-# include [] +==== Currency strings ==== 
-# include reads another config file. this helps you keep national holiday +  # currency_before ["$"
-# definitions in a seperate file. of course you can put any config options +  # a text string displayed before the cost if silent = 0. if isolog = 1 this 
-# into that file +  # is the string used in the log file. 
-+  # 
-#include /usr/local/etc/ppplog/myholidays.conf+  #currency_before "CHF" 
 + 
 + 
 +  # currency_after [""
 +  # displayed in formatted log and if silent = 0 after the cost.  
 +  # 
 +  #currency_after "" 
 + 
 +==== Cost divider (Unit of Measure) ==== 
 +  # uom_cost [1] 
 +  # the unit of measure cost (in seconds) is used to simplify the zone cost  
 +  # entries. most phone companies tell you the phone cost per hour. In this  
 +  # case set uom_cost to 3600. see the examples below and mail me if that is  
 +  # unclear. 
 +  # 
 +  #uom_cost 3600 
 + 
 +==== Active days ==== 
 +  # day [no default] 
 +  # day is used to simplify the zone entries. just select the days when the zone 
 +  # is active. if the zone is active on weekday's, write day 1 2 3 4 5. 1 stands 
 +  # for monday, 2 for tuesday etc. 
 +  # 
 +  #day 1 2 3 4 5 
 + 
 +==== Zone definition ==== 
 +  # zone [no default] 
 +  # zone defines a cost zone. this is the most important option here. tell   
 +  # ppplog when the zone starts, when it ends, how long a unit is and how  
 +  # much the unis costs. example 
 +  # 
 +  #      name of zone   starts at 08:00 ends 17:00  unit 1 sec and costs 1.5 
 +  # zone "normalcharge" 08 00           17 00                    1.50  
 +  # 
 +  # if it costs 1.5 per hour remember to set uom_cost 3600. 
 +  # 
 +  #zone char* int int  int int   int float 
 + 
 +==== Special days, holidays etc ==== 
 +  # specialday [no default] 
 +  # specialday is a special zone used for national holidays. the format is similar 
 +  # to zone. remark the last 3 parameters. special days are always checked first. 
 +  # ppplog uses the first zone that matches the current time and date!!  
 +  # 
 +  # specialday name starthour startmin stophour stopmin unitlength unitcost day month year 
 +  #specialday "x-mas" 08 00 23 00 1 1.5 24 12 2003 
 + 
 + 
 +===== Config file including ===== 
 +  # include [] 
 +  # include reads another config file. this helps you keep national holiday 
 +  # definitions in a seperate file. of course you can put any config options 
 +  # into that file  
 +  
 +  #include /usr/local/etc/ppplog/myholidays.conf 
 + 
 +===== Examples ===== 
 + 
 +==== Example 1 ==== 
 +<code>
  
-############################ 
-## Example1 ################ 
-############################ 
-# 
 # sunrise switzerland has 3 zones on weekdays and 2 zones on weekends. # sunrise switzerland has 3 zones on weekdays and 2 zones on weekends.
 # they charge you per second not per unit. you have to pay 0.03 CHF for # they charge you per second not per unit. you have to pay 0.03 CHF for
Zeile 185: Zeile 204:
 # #
 # thats it! easy, isn't it? # thats it! easy, isn't it?
 +</code>
  
-## Example2 ## + 
-#+==== Example 2 ==== 
 +<code>
 # swisscom switzerland has 3 zones on weekdays and 2 zones on weekends. # swisscom switzerland has 3 zones on weekdays and 2 zones on weekends.
 # they charge you per unit. every phone call costs at least 0.2 CHF. # they charge you per unit. every phone call costs at least 0.2 CHF.
  • ppplog_docs.txt
  • Zuletzt geändert: 16.11.2016 23:18 (vor 8 Jahren)
  • von 127.0.0.1