Good afternoon!
I recently came to the Monks looking for wisdom in handling an ever-growing collection of MRTG config files... In the end, I could not find a solution with other people's code, so I
wrote something new.
This is my first CPAN module, and I hope it will be useful to others. I especially hope I can get some feedback on improvements, features, bugs, etc. BTW, there's a bug in the globals() method - I just found it today :(
If you're wondering *why* this module might be useful... I'm currently using it to load, parse, and store to a DBM::Deep file the MRTG configs for over 450 routers, many of which have in excess of 1000 interfaces.
It completes this task in less than 5 min. on a modest P3-700Mhz/768MB/40GB-IDE server without exhausting the RAM.
Another script then uses the module to load the 'compiled' configs and generates an entire website complete with node indices, interface indices and summaries from data in the RRD files, and does this in about 35 min. (I did almost no optimization of this script - just changed the hash references from Tobi's structure to mine... however, the slowness may also be because the RRD files are stored on other servers over NFS.)
Please feel free to criticise, compliment, or otherwise offer any info that may help this be useful to people other than myself! Also... I have many other thoughts on trying to improve the state of SNMP programming and management using Perl. Is anybody else reading this interested in discussing it further?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.