Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.182.830 Times

MRTG::Config 0.04

  Date Added: April 03, 2010  |  Visits: 711

MRTG::Config

Report Broken Link
Printer Friendly Version


Product Homepage
Download (94 downloads)



MRTG::Config is a Perl module for parsing MRTG configuration files. WARNING This module, while reliable right now, is still in ALPHA stages of development... The API/methods may change. Behaviors of methods will almost certainly change. The internal structure of data will change, as will many other things. I will try to always release working versions, but anyone who expects their code that uses this module to continue working shouldnt... until I remove this warning. SYNOPSIS Ever have the need to parse an MRTG config file? I have. I needed to parse lots and lots of them. Using the functions built-in to MRTG_lib was too slow, too complex, and used too much RAM and CPU time for my poor web server to handle - and the data structures MRTG_lib built were way more complex than I needed. MRTG::Config can load and parse MRTG and MRTG-style confiuguration files very quickly, and the parsed directives, targets and values can be located, extracted, and manipulated through an OO interface. This module is intended to focus on correctly parsing the format of an MRTG configuration, regardless of whether or not the directives and values, etc. are valid for MRTG. I am using both the parsing behavior of MRTG_libs readcfg() function and the description of the format on the MRTG website as my guidelines on how to correctly parse these configuration files. I am still a short way off that goal, but this module is currently being used in a production environment with great success! PLEA FOR MERCY I plan on adding to this documentation and making it better organized soon, but Im willing to answer questions directly in the mean time. Also, this is my first module, written in a hurry to appease some disgruntled engineers. I do plan on continuing to improve it, so any input, positive or negative is certainly welcome! USAGE EXAMPLE use MRTG::Config; my $cfgFile = mrtg.cfg; my $persist_file = mrtg.cfg.db; my $mrtgCfg = new MRTG::Config; $mrtgCfg->loadparse($cfgFile); # Want to store the parsed data for use later or by # another program? $mrtgCfg->persist_file($persist_file); $mrtgCfg->persist(1); foreach my $tgtName (@{$mrtgCfg->targets()}) { my $tgtCfg = $mrtgCfg->target($tgtName); # Lets assume every target has a Title. print $tgtCfg->{title} . "n"; } # globals() has some, um, interesting things you # should know. Please read about it below... my $globalCfg = $mrtgCfg->globals(); # Lets assume WorkDir is set. print $globalCfg->{workdir} . "n";.

Requirements: No special requirements
Platforms: Linux
Keyword: Configuration Libraries Module Mrtg Configuration Mrtgconfig Parse Parsing Perl Perl Module Persist Programming
Users rating: 0/10

License: Freeware Size: 12.29 KB
USER REVIEWS
More Reviews or Write Review


MRTG::CONFIG RELATED
Programming  -  Parse::PerlConfig 0.05
This module is useful for parsing a configuration file written in Perl and obtaining the values defined therein. This is achieved through the parse() function, which creates a namespace, reads in Perl code, evals it, and then examines the...
20.48 KB  
Science  -  Bio::Parse::SwissProt - perl module 0.5
A Perl module that provides methods for retrieving each and every field from a standard SwissProt file.
9.61 KB  
Security Tools  -  SSTTR Java Libraries 1.0
A collection of Java libraries for XML stream and file parsing, basic crypto and other stuff I found useful to have around.
52.77 KB  
Libraries  -  perlfaq3 5.8.8
perlfaq3 Perl module contains programming tools. How do I do (anything)? Have you looked at CPAN (see perlfaq2)? The chances are that someone has already written a module that can solve your problem. Have you read the appropriate manpages?...
12.2 MB  
Libraries  -  GNU Classpath 0.95
GNU Classpath (essential libraries for Java) is a project to create free core class libraries for use with virtual machines and compilers for the Java programming language. GNU Classpath project includes all native methods and core classes...
6.5 MB  
File Management  -  Using Import for Reading Configuration Files 1.0
Using Import for Reading Configuration Files script allows you to read Python-based configuration files that are specified at runtime.Reading configuration files is a common activity in scientific programming. Engineers typically create extensive...
 
Libraries  -  OpenInteract2::Config::Initializer 1.99_06
OpenInteract2::Config::Initializer is a Perl module for observable configuration initialization events. SYNOPSIS # Add an initializer in your package.conf name mypackage version 1.10 ... config_watcher OpenInteract2::MyInitializerSpops...
931.84 KB  
Libraries  -  JoeDog::Config 2.01
JoeDog::Config provides a perl extension for parsing data/configuration file. It reads columns, key-value pairs, and INI style config files into arrays, hashes and hashes of hashes. It can take characters or regexes for separators. ABSTRACT:...
14.34 KB  
Libraries  -  XML::Parser 2.34
XML::Parser is a perl module for parsing XML documents. SYNOPSIS use XML::Parser; $p1 = new XML::Parser(Style => Debug); $p1->parsefile(REC-xml-19980210.xml); $p1->parse( Hello World ); # Alternative $p2 = new XML::Parser(Handlers...
225.28 KB  
Code Management Tools  -  Config Maker 0.2
Config Maker is a tool to automatically create C++ classes that parse configuration files. Only a few lines of text that describe the possible entries in the configuration file are needed, and the complete class will be generated ready for use....
307.2 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB