Professional Documents
Culture Documents
Cacti ISP Billing
Cacti ISP Billing
Version 1.0.13
Author: Tony Roman Copyright 2012 Cacti Group
1 of 42
Contents
1. Preface 2. Features 3. Operations i. General ii. Output iii. Data Collection iv. RRA Definitions 4. Installation 5. Up ra!in ". Confi uration i. Default # Glo$al ii. Custo%ers an! Grap&s iii. 'illin (i%e Fra%e )Interval* iv. Rate v. +%ail vi. Currenc, vii.'ran!in +%ail Output viii. +-portin to C./ )Co%%a .eparate! /alues* File i-. (&res&ol! (rac0in -. Usin t&e $uil! Co%%an! -i. +-a%ple Confi uration -ii.(rac0 File 1. (estin 2. C./ File For%ats i. +%ail C./ File ii. +-port C./ File 3. Co%%an! 4ine Reference
2 of 42
Revision 5istor,
2006-11-11 Document creation 2006-12-20 Minor changes for grammar an synta! 200"-02-1" #p ates for $ersion 1%0%1& inc'u ing e!ten e emai' support 200"-02-2( #p ate for $ersion 1%0%2& inc'u ing a itiona' sections on #pgra ing& RRA Definitions& Data Co''ection an Testing% 200"-0)-0) #p ate for $ersion 1%0%* an information on supporte Cacti $ersions% 200"-0"-16 #p ate for $ersion 1%0%( 200"-0+-2( #p ate for $ersion 1%0%) an Cacti 0%,%" 200"-12-10 #p ate for $ersion 1%0%6 200,-01-21 #p ate for $ersion 1%0%" 200,-02-0* #p ate for $ersion 1%0%, 200,-11-2* #p ate for $ersion 1%0%+& information a-out: .eatures& Rates& Trac/ing .i'e& etc% 200+-0*-0, #p ate for $ersion 1%0%10& Thresho' trac/ing a e 2010-0,-2" #p ate for $ersion 1%0%11 2011-0)-0, #p ate for $ersion 1%0%12& c'arification on 0an 1i th 2ummation Thresho' s 2012-0)-*0 #p ate for $ersion 1%0%1* an Cacti 0%,%,
3 of 42
Preface
Section 1
If you are reading this, you have already taken the first steps of using Cacti or thinking a out using Cacti to graph your and your custo!ers" and#idth usage. $he I%& illing script is a si!ple to use co!!and line php script that e!ails periodic reports of custo!ers" and#idth usage and calculated o#ed a!ounts. $his docu!ent assu!es you have Cacti up and running and graphing and#idth usage. It is also assu!ed that you have at least a asic understanding of Cacti and ho# to vie# the graphs. $he syste! supports !ultiple types of illing intervals' (early, )onthly, *i+!onthly, ,eekly and -aily. .ll these are configura le to allo# for !a/i!u! fle/i ility. *illing rates are also very fle/i le. 0egular illing rates, fi/ed or co!!itted1overage illing rates can e applied glo ally, to individual custo!ers or to a single graph. )ini!u! Cacti version 0.2.3h is re4uired for the I%& *illing %cript. $his re4uire!ent is present ecause the 56th &ercentile functions #here updated e/tensively in this version of Cacti. $he I%& illing script is dependent on Cacti, so version re4uire!ents of Cacti apply to the I%& illing script. If you have any 4uestions a out the operation of the script, have a ug to report or #ould like to re4uest a feature, please contact $ony 0o!an at ro!an7disorder.co!.
4 of 42
Features
Section 2
$he Cacti I%& *illing %cript is a co!prehensive addon for Cacti that allo#s for daily, #eekly, !onthly or i+!onthly per custo!er illing of Cacti generated graphs for 8th &ercentile and *and#idth %u!!ation. )ultiple or single graphs can e associated #ith a custo!er to allo# for !ultiple interface illing for a single custo!er. %tandard, Co!!itted19verage and :i/ed illing rates are supported per custo!er. ;!ail output can e generated per custo!er. ;!ail output is <$)= #ith graph i!ages and an attached C%V file containing the sa!e data that the e!ail contains. .ll these options are configura le. ;/ported C%V data can e create per custo!er and post+processed y a user defined script to any for!at for i!porting into a illing syste!. ;/a!ple scripts are supplied for creation of ta deli!ited files, %>= insert state!ents, ?)= output, etc. 9nly 8th &ercentile and *and#idth %u!!ation co!!ent lines on Cacti graphs are considered a illa le ite!. %o, the value that a custo!er #ill see on the graph #ill e that is used to calculate illa le totals. Inter+ illing period notifications of e/ceeded co!!itted rate, configura le per custo!er.
6 of 42
Operations
Section 3 General .u$ .ection i
$he I%& illing script is to e run everyday on the server #hich Cacti is installed. %i!ply use cron or #indo#s scheduler to schedule the e/ecution of the script. $he I%& illing script re4uires a configuration and a track file @auto generatedA. $he configuration file is #here the custo!ers" infor!ation is defined. $he track file is #here the last ti!e illing #as perfor!ed for the configured custo!ers is saved. )ultiple configuration files can e used for different groups of custo!ers, all that needs to e done is schedule each configuration separately to e run daily. )ultiple configurations can use the sa!e track file, ut it is suggested that separate track files are used per configuration file, as duplicate custo!er descriptions et#een configuration files can collide in the track file. 6&at !oes t&e I.P $illin script use fro% Cacti to !eter%ine 7&at is $illa$le8 (&e I.P $illin script onl, loo0s at rap&s 7it& rap&s ite%s t,pes of co%%ents t&at contain rap& varia$les t&at !efine! 'an!7i!t& .u%%ation an! 9t& Percentile values. 3!amp'e 1 8th &ercentile Graph
3 of 42
$he resulting illa le value #ould e B$otal 9ut' 123.62 )*D and B$otal In' E.22 G*D. Billing Intervals $here are 4 availa le illing intervals' Dai'y: *illing occurs daily or every nth nu! er of days defined fro! !idnight to !idnight. 4ee/'y: *illing occurs #eekly or every nth #eeks on %aturday night at !idnight to %aturday night at !idnight. Month'y: *illing occurs !onthly on the defined day, 1 to last day of !onth, every 1 or nth !onths on !idnight of the defined day. 0i-month'y: *illing occurs !onthly on the 16th and last day of the !onth. 8ote' .ll illing intervals are processed on the day after the ending day of the interval. :or e/a!ple, !onthly for 9cto er #ould e fro! 10+1 00'00'00 to 10+31 23'65'65, ut #ouldnFt e processed until the illing script is run on 11+1.
E of 42
2 of 42
;!ails y default include an attached C%V file that !i!e type is set to open #ith ;/cel or 9pen 9ffice %preadsheet. ;!ails default to <$)= for!at, per e!ail address para!eters allo# for te/t only e!ails and re!oval of the C%V attach!ent.
5 of 42
It is often asked #hat data the I%& *illing script #ill use fro! the 00-$ool files. $he ans#er is si!ple, it #ill let 00-$ool figure it out. 8o#, #hat does 00-$ool do, it atte!pts to use the highest resolution data set that contains data for the selected ti!e fra!e. $his is #hy it is very i!portant, for illing purposes, that you retain si/ !onths to a year of high resolution data. . great e/a!ple #ould e to retain one year of 6 )inute .verage @-ailyA infor!ation. &lease refer the the ne/t section for infor!ation on defining and updating your 00. definitions in Cacti to retain the reco!!ended higher resolution data.
10 of 42
11 of 42
3!amp'e " Dai'y 7) Minute A$erage8 one year high reso'ution ata
$he a ove e/a!ples have een altered to retain one year of -aily @6 )inute .verageA high resolution data. 6AR9I9G: Defining large high resolution RRA efinitions can egra e s!stem performance an use a consi era"le amount of is# space$ One traffic interface %ith the efault t%o a! high resolution retention %ill result in a &'( si)e RRD*ool file+ "ut the same file %ith one !ear of high resolution retention %ill result in a &, file$ ,ultiple that change "! all the RRD*ool file that Cacti uses an it can "e a consi era"le amount of is# space$ P-P e.ecution time an memor! ma.imums settings %ill have to "e increase to accommo ate the time an resources nee e to process such ata sets$
12 of 42
Dail! /' ,inute Average0 RRA Retention length 2 -ays @Cacti -efaultA 3 )onths 3 )onths 5 )onths 1 (ear
1p ating !our e.isting RRD*ool files 9ne thing Cacti #ill not do for you is alter 00-$ool files that have already een created. (ou have to Brrdtool resiHeD the files to have the correct nu! er of defined ro#s. &lease refer to the rrdtool docu!entation on instructions for doing this. $here is a very helpful post on the Cacti foru!s on ho# to do this and a script to assist in doing so. http'11foru!s.cacti.net1vie#topic.phpItJ11426
13 of 42
Installation
Section 2
1. Knpacking the progra! $he file is supplied in a tar.gH for!at. Kse the follo#ing co!!and to e/tract' gunHip +c ispL illingM.tar.gH N tar +/vf + If you are on ,indo#s, you can use your favorite archiving progra! that supports tar.gH. ,inHip is a great e/a!ple of an archive progra! that #ill e/tract these files. 2. 9nce the ispL illing directory is e/tracted, it needs to e !oved to the directory that Cacti is installed. ;/a!ple co!!and' !v ispL illing 1var1###1htdocs1cacti1
3. $o ensure you donFt get any pesky &<& errors a out sessions, itFs i!portant to add the ispL illing.php to the OnoLhttpLheaderLfiles array in the include1config.php @0.2.3G+A or include1 glo al.php @0.2.ECA file for Cacti. If you are running #indo#s, this change !ay not e needed. 1M :iles that do not need http header infor!ation + Co!!and line scripts M1 OnoLhttpLheaderLfiles J array@ Ppoller.phpP, Pc!d.phpP, P4ueryLhostLcpu.phpP, P4ueryLhostLpartitions.phpP, Ps4l.phpP, PssLhostLcpu.phpP, PssLhostLdisk.phpP, PssLs4l.phpP, PispL illing.phpP AQ 4. *efore you can add the scheduled Go s for the illing script a configuration file has to e generated. $he ispL illing script has a uilt in function to uilt a configuration off of your already created graphs in Cacti. .s !entioned earlier, it #ill only uses graphs that contain co!!ent fields #ith graph varia les defined for 8th &ercentile and *and#idth %u!!ation. $he uild process also !akes so!e assu!ptions, like a ill rate of O0 and !onthly illing interval processed on the last day of the !onth. :or !ore infor!ation on ho# to configure these ite!s and usage of the uild co!!and, please refer to Chapter 4 on Configuration. Copyright 2010 Cacti Group 14 of 42
Kse the follo#ing co!!and to uild an e/a!ple./!l configuration file' php ispL illing.php + uild 3!amp'e , R 9utput of uild co!!and
Ksing the list function can generate a !ore reada le su!!ary for!at. Kse the follo#ing co!!and line to e/ecute the co!!and' php ispL illing.php +list $he resulting output #ill aid you in deter!ining #hich graphs to configure for #hat custo!ers. 3!amp'e + R 9utput of list co!!and
16 of 42
9nce you have uilt your configuration file, you can check to see if it is #hat you #ant y using the info co!!and line option to revie# the configuration. $he info co!!and line option is very useful, it #ill allo# you to get infor!ation a out configured custo!ers in each configuration file you have. $o use the info function, use the follo#ing co!!and line' php ispL illing.php +configJcusto!er./!l trackJtrack./!l +info
13 of 42
6. %cheduling the ispL illing script' Kni/ uses cron for this purpose, this script can e run as any user, ut should not e run as root. $he only consideration to understand is the user running the script !ust have read access to the rrd files in the Cacti installation. Kse the follo#ing line in your glo al cronta to schedule the ispL illing script. 0e!e! er to input the full path to php and use the correct user account.
01MMM
It is i!portant to note that you need to replace the paths #ith the correct paths for your syste!.
1E of 42
1pgra ing
Section '
*ecause you !ight already have a previous version of the I%& *illing %cript, upgrading !ust e covered. Kpgrading is easyT 1. )ove your current I%& *illing directory to a ackup location.
!v 1var1###1ht!l1cacti1ispL illing 1var1###1ht!l1cacti1ispL illing. ackup
2. ;/tract and !ove or copy the ne# I%& *illing directory to your Cacti installation.
!v 1t!p1ispL illing 1var1###1ht!l1cacti1ispL illing
3. Copy your configuration files fro! the ackup to the ne# installation.
cp +p 1var1###1ht!l1cacti1ispL illing. ackup1config1M 1var1###1ht!l1cacti1ispL illing1config
4. &erfor! a test run to confir! that everything is good. 3ote4 . ove are Gust e/a!ple paths. &lease use the proper paths for your syste!.
12 of 42
Configuration
Section 5
$he configuration file for the I%& illing script is a specifically for!atted ?)= file. In the follo#ing sections, the for!at and para!eters of the configuration sections #ill e revie#ed and e/plained. $he configuration file !ust egin #ith the follo#ing'
UI/!l versionJF1.0F encodingJFK$:+2F standaloneJFyesFIV UcactiL illerV
3ote4 BK$:+2D encoding should e used on anything other than ,indo#s. 9n ,indo#s, use BI%9+ 2265+1D encoding. 9nce you have your configuration ready, you should al#ays check it. Kse the follo#ing co!!and line option to check the configuration for errors'
php ispL illing.php +check +configJcusto!er./!l +trackJtrack./!l
15 of 42
Valid para!eters for glo al section e!ail settings are covered later in this section. Valid para!eters for the rate and illingLti!efra!e sections are covered later in this section. Valid para!eters for currency section are covered later in this section. Valid para!eters for e/portLfileLprocessor and file are covered later in this section. Valid para!eters for threshold are covered later in this section. .n e!ail address !ust e defined in the default section, e!ail address should also e defined per custo!er. .ny custo!er that does not have an e!ail defined #ill use the defined default e!ail. 0efer Copyright 2010 Cacti Group 20 of 42
21 of 42
-escription Custo!ers container opening tag Custo!er container opening tag $his is the custo!er description, this value can not e duplicated et#een custo!ers. $his value #ill appear on the illing reports as the custo!ers description. 9ptional field R 0efer to the C%V e/port section for para!eters and values. 9ptional field R 9nly used y C%V e/port for potentially identifying custo!er in e/ternal syste!. 9ptional field R 0efer to rates section for para!eters and values. 9ptional field R 0efer to illingLti!efra!e section for para!eters and values. 9ptional field R ;!ail address to e!ail the resulting report to. )ultiple entries are supported. $o disa le e!ailing use the string value of B8K==D. 9ptional field R 0efer to currency section for para!eters and values. Graphs container tag, re4uired. .t least one graph section !ust e defined, !ultiple are allo#ed. 9ptional field R 0efer to rates section for para!eters and values. 9ptional field R 9nly used y C%V e/port for potentially identifying custo!ersF graph in e/ternal syste!. Graph id R $his value can e gotten fro! the Cacti #e interface y vie#ing the graph in 4uestion and e/a!ining the K0= for the varia le called BlocalLgraphLidD. 9ptional field R -efine the e/act graph ite! on the graph to process illing. If no graphLite!s are defined, any !atching co!!ent fields #ill e used fro! the defined graph. Graph container closing tag 22 of 42
UgraphLite!VU1graphLite!V
-escription Graphs container closing tag Custo!er container closing tag Custo!ers container closing tag
3ote4 .ltering the custo!er description after you have processed illing #ill re4uire the sa!e !odification to the track file description. ;/a!ple Custo!er ?)='
Ucusto!ersV Ucusto!erV UdescriptionV:ire#all + $raffic + 152.132.1.1 @&I? :ire#all inA R 1U1descriptionV Ue!ailV illing7isp.co!U1e!ailV Ue!ailVcusto!er7isp.co!U1e!ailV Urate unitJP) PV1.00U1rateV U illingLti!efra!eV UtypeV!onthlyU1typeV UdayV22U1dayV UeveryV1U1everyV UstartLdateV2003+05+21U1startLdateV U1 illingLti!efra!eV UgraphsV UgraphV UidV14U1idVUT++ Graph $itle' P:ire#all + $raffic + 152.132.1.1 @&I? :ire#all inAP ++V UgraphLite!LidV605U1graphLite!LidVUT++ Co!!ent' P$otal 9ut' Nsu!'auto'current'2'autoNP++V UgraphLite!LidV610U1graphLite!LidVUT++ Co!!ent' P$otal In' Nsu!'auto'current'2'autoNP++V Urate unitJP) P typeJPco!!ittedPV0.60U1rateV Urate unitJP) P typeJPoverageP thresholdJP1000000000PV2.00U1rateV U1graphV UgraphV UidV13U1idVUT++ Graph $itle' P:ire#all + $raffic + 152.132.1.1 @&I? :ire#all inAP ++V U1graphV U1graphsV U1custo!erV U1custo!ersV
In the e/a!ple a ove, the custo!er is defined #ith co!!itted1overage rate on the graph #ith an id of 14 and the graph #ith the id of 13 #ill use the custo!er defined rate.
23 of 42
-escription *illing ti!e fra!e container opening tag. -efined illing ti!e fra!e type' daily, #eekly, !onthly or i+!onthly. daily R illing occurs daily or every nth days as defined y the every field. #eekly R illing occurs #eekly or every nth #eeks as defined y the every field. !ontly R illing occurs !onthly on the defined day, 1 to last day of the !onth, every nth !onths as defined y every. i+!onthly R illing occurs t#ice !onthly on the 16 th and last day of the !onth.
UdayVU1dayV
Ksed only #hen type of !onthly is defined and denotes the day of the !onth #ith illing reoccurs. Ksing the key#ord FlastF denotes to use the last day of the !onth eing illed. Ksed y daily, #eekly and !onthly types, this denotes every nth days, #eeks or !onths to ill. ;/a!ple, you #ant to ill every 3 !onths, you #ould define every #ith a value of 3.
UeveryVU1everyV
UstartLdateVU1startLdateV 9ptional field to define #hen to start illing a custo!er. $his allo#s for you to pre+configure a custo!er and not get illing reports until needed. U1 illingLti!efra!eV *illing ti!e fra!e container closing tag
24 of 42
26 of 42
!ini!u!
23 of 42
2E of 42
22 of 42
25 of 42
-escription Glo als opening tag ;!ail opening tag ;!ail address the illing reports appear to e co!ing fro!. ;!ail su Gect ;!ail title, also used as the na!e of the return e!ail address. $his is the na!e of the attached csv file #ithout the B.csvD e/tension. :ooter te/t to add to the end of illing e!ail reports ;!ail closing tag Glo als closing tag
8ote' -o not add additional BUglo alVU1glo alVD tags, si!ply place the a ove section in the e/isting glo al section of your configuration file.
30 of 42
postLprocess.pl R General e/a!ple post processing script to start #ith, #ritten in perl. postLprocessLta .pl R &ost processor that converts C%V to $.* deli!ited file, #ritten in perl. postLprocessL/!l.pl R &ost processor creates /!l e/port file, #ritten in perl. postLprocessLplatypusLe/a!ple.pl R ;/a!ple post processor creates an i!porta le C%V file for &laytpus *illing %yste!, #ritten in perl. $his script needs to e altered to fit your illing profiles in &laytpus. postLprocessLs4lLe/a!ple.pl R ;/a!ple post processor that creates %>= insert state!ents, #ritten in perl.
Glo al :ile ;/port fields' ?)= :ield Uglo alV UdefaultsV Ufile processJDyesDVU1fileV
-escription Glo als opening tag -efaults opening tag 8a!e of the file to #rite C%V data. &ara!eter BprocessD can e set to BnoD to disa le a particular custo!er or glo ally running the post processing script. -efault value of ByesD is assigned to the BprocessD para!eter if it is not defined. -efaults closing tag &ost processing script that is e/ecuted after the e/port file has een #ritten. $he first para!eter that is provided to the script is the path to the e/ported C%V data file. Glo als closing tag
31 of 42
8ote' $hese are optional para!eters and should e added to the appropriate sections of your configuration.
32 of 42
(&res&ol! (rac0in .u$ .ection i,ith version 1.0.10 of the I%& *illing %cript there co!es a very co!ple/ feature that allo#s you to infor! you custo!ers at #hat ti!e an overage @e/ceed co!!itted rateA occurred. ,hile so!e !ay think that this is an easy task, and it is for *and#idth %u!!ation, it ho#ever is not for 8th &ercentile. $he follo#ing options #hen ena led #ill allo# for overage notifications to e sent to custo!ers as #ell as reporting to the custo!er at #hat ti!e an overage occurred. ;na ling threshold tracking #ill use !ore !e!ory and processor po#er. It is strongly suggested that you follo# est practices y running the I%& *illing %cript every day. $his #ay, the C&K usage to calculate ti!e fra!e threshold data #ill occur over everyday of the illing period. Glo al $hreshold $racking fields' ?)= :ield Uglo alV UthresholdV Uena ledVU1ena ledV UnotificationVU1notificationV Usu GectVU1su GectV UtitleVU1titleV U1thresholdV U1glo alsV
-escription Glo als opening tag $hreshold opening tag ;na le threshold tracking for notification on illing reports of #hen overage occurred. -efault BnoD, set to ByesD to activate. ;na le threshold notifications e!ails #hen custo!ers e/ceed their co!!itted rate. -efault BnoD, set to ByesD to ena le. %u Gect line to set for notification e!ails. $itle to set the title and na!e of the fro! e!ail for notification e!ails. $hreshold closing tag Glo als closing tag
89$;' *ecause of the nature of 8th &ercentile calculations, a custo!er could e notified !ultiple ti!es a out potentially going over their co!!itted rate, ut in the end they !ay not go over their co!!itted rate. *ecause of that the 8th &ercentile notifications are li!ited to sending out one if an overage is detected, !aking note and not sending out another notification until the 8th percentile value has fallen elo# the threshold and risen a ove it again. . !a/i!u! of 4 notifications per illing period #ill e sent, e4ually spaced over the illing period. 89$;' 8otifications are li!ited to once a day, and are notifications of overages occurring on the prior day.
33 of 42
8ote' $hese are optional para!eters and should e added to the appropriate sections of your configuration.
34 of 42
Usin t&e $uil! Co%%an! .u$ .ection $he uild co!!and line option allo#s you to uild an ?)= configuration file for your custo!ers. %o!e !odification of the ?)= configuration file #ill e needed after it is created. $he rates, illing intervals and the custo!er descriptions should e revie#ed and edited. $he follo#ing co!!and line options are availa le to the uild co!!and'
-escription 0e4uired to uild a configuration file. If file na!e is defined, then the configuration #ill e #ritten to the defined file. Ksed to li!it the uilt configuration file to a list of graph idFs. Graph idFs are co!!a separated string #ith no spaces. If defined, sets the default e!ail address in the uilt configuration file. If defined, set the default e!ail to no send csv attach!ents on illing reports
e!ailLnoLht!l If defined, sets the default e!ail to not send ht!l illing reports
36 of 42
33 of 42
3E of 42
*esting
Section 6
%o, you have your configuration created for all your custo!er and you are ready to test it. $his section #ill e/plain ho# testing can e perfor!ed and #hat considerations should e kno#n #hen testing. ;/a!ple testing co!!and line'
php ispL illing.php +d +configJconfig1custo!ers./!l +trackJconfig1track./!l +trackLnoL#rite +startLdateJP200E+02+01 00'00'00P +currentLti!eJP200E+03+01 00'00'01P
$he a ove e/a!ple #ould e used to test a !onthly illing custo!er. $he start date #ould e overridden #ith the first day of :e ruary, B200E+02+01 00'00'00D and the current ti!e used y the illing script #ould e overridden #ith first day of )arch, B200E+03+01 00'00'00D. 9ote: I!portant to understand that the current ti!e override is an internal varia le in the illing script. -o not define the last day of :e ruary, ecause in nor!al operation, the illing script needs to #ait till the ti!e fra!e that it is illing for has past. $his !eans that you !ust define a current ti!e one day fro! the last day of the illing interval you are testing. $he B+dD co!!and line para!eter is i!portant to have #hile testing. $his #ill output de ug a out #hat the illing script is doing. -epending on your configuration, this could e a lot of infor!ation.
32 of 42
35 of 42
:ield Custo!er-escription Custo!er;/ternalId *illing&eriod%tart *illing&eriod;nd GraphId Graph$itle Graph;/ternalId GraphIte!Id $ype Interval ;very 0ate$ype 0ate.!ount 0ateKnit *its $otal 9verage9ccurred
-escription -escription of custo!er ;/ternal id defined for custo!er %tart of illing period ;nd of illing period Cacti graph id $itle of graph ;/ternal id defined for graph Cacti graph ite! id $ype of Cacti graph varia le *illing interval *illing interval repeat factor 0ate type &er unit rate a!ount 0ate unit 8u! er of its used in illing calculation Calculated total If threshold tracking is ena led, this #ill have #hen the overage occurred
40 of 42
$here are !any co!!and line options, ut only t#o are re4uired for nor!al operations BconfigD and BtrackD. 9utline elo# are detailed e/planations for each displayed co!!and line option. 9ption configJ trackJ trackLnoL#rite check uild -escription &ath to the custo!er configuration ?)= file &ath to the track ?)= file. $his file is used to track the last ti!e a custo!er #as processed. $he description defined for the custo!er is #hat is used for tracking. -isa les updating the tracking file. Checks the configuration file for issues. *uilds a configuration file fro! the graphs configured in Cacti that are considered illa le. 9ptional filena!e can e supplied. Kse the filter option to li!it #hat graphs are created. =ist of graph ids to uild a configuration. $his is only used y the uild co!!and line option. -isplays infor!ation a out the configured custo!ers. 41 of 42
trackLclearLcache Clears threshold tracking cache data fro! track file and e/its.
filter info
-escription -isplays a list of graphs configured in Cacti that are considered illa le. 9verriding e!ail address for processing. ,hen processing custo!ers and this is defined, all configured custo!ers #ill e e!ailed to the defined e!ail. $his para!eter is also used #hen uilding configuration #ith the uild co!!and line option. 9nly used #hen e!ail override is ena led, turns off <$)= for!atted e!ail reports, !aking the! te/t only. 9nly used #hen e!ail override is ena led, turns off the attach!ent of the C%V file to e!ail reports. 9verride the track file and configuration start dates for custo!ers. Ksed for testing configurations. 9verride the current ti!e used y the illing script. Ksed for testing configurations. ,rites out technical support file, used y technical support to get syste! infor!ation -e ug !ode, outputs ver ose infor!ation a out processing -isplays help and version -isplays help and version
42 of 42