📄 readme
字号:
# README# From: Selena Brewington <selena@chesnok.com>The two scripts included in here are for taking an existing RRD,dumping out its XML contents, mucking with the XML to add anarbitrary number of datasources, and then creating a new RRD withthe new XML information. 'add_ds.pl' is what is doing all thework. 'batch.pl' does the legwork of running rrdtool and moving around the output from the various commands.Easiest way to use these:* Put batch.pl and add_ds.pl in the same directory as the RRDsyou want to modify and run: $ ls -1 | ./batch.pl <# new datasources you want to add>You'll end up with an 'xml' directory where all the xml filesand your new RRDs are available. Copy the new RRDs back overthe old RRDs once you've convinced yourself that the new RRDshave been formed correctly (try using the rrd-dump tool that isin the cricket/utils directory, for example).I put some options that you can configure at the top of thebatch.pl script. Also, add_ds.pl has a bunch of stuff you canmodify at the command line or, again, change inside the scriptitself - warning: it's not fancy. Try: ./add_ds.pl -hbatch.pl has an 'overwrite' option that can be invoked, but Ihighly recommend that you check that this script does what you want,the way you want it, before you go and trample all over your existing RRDs.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -