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

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

Serving Software Downloads in 976 Categories, Downloaded 30.150.135 Times

MRTG::Config 0.04

  Date Added: April 03, 2010  |  Visits: 545

MRTG::Config

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 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
MRTG::CONFIG RELATED
Libraries  -  Getopt::Tabular 0.3
Getopt::Tabular is a Perl module for table-driven argument parsing for Perl 5. SYNOPSIS use Getopt::Tabular; (or) use Getopt::Tabular qw/GetOptions SetHelp SetHelpOption SetError GetError/; ... ≥topt::Tabular::SetHelp...
25.6 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  
Education  -  Python lambda calculus module 1.0
Python lambda calculus module project is a simple but full-featured module for exploring lambda calculus. It understands the different types of lambda expressions, can extract lists of variables (both free and bound) and subterms, and can...
14.34 KB  
Libraries  -  Gtk2::Ex::Dialogs 0.11
Gtk2::Ex::Dialogs is a Perl module with useful tools for Gnome2/Gtk2 Perl GUI design. SYNOPSIS use Gtk2::Ex::Dialogs ( destroy_with_parent => TRUE, modal => TRUE, no_separator => FALSE ); # do some stuff like creating your apps main...
20.48 KB  
Libraries  -  classesfaq 0.943
classesfaq is a Perl module with frequently asked questions about the Perl classes pragma..
122.88 KB  
Libraries  -  DBD::Informix 2005.02
DBD::Informix is a Perl module witj IBM Informix Database Driver for Perl DBI. SYNOPSIS use DBI; You should also read the documentation for DBI perldoc DBI as this document qualifies what is stated there. Note that this document was last...
276.48 KB  
Networking Tools  -  NetSaint Configuration Webmin Module 0.80.1-0.0.5
NetSaint Configuration Webmin Module provides a Webmin module for configuring NetSaint. The NetSaint Configuration Webmin Module gives an easy-to-use administration interface for the NetSaint CGI Monitor. It supports all configuration directives...
59.39 KB  
Libraries  -  MRTG::Parse 0.03
MRTG::Parse is a Perl extension for parsing and utilizing the logfiles generated by the famous MRTG Tool. SYNOPSIS use strict; use MRTG::Parse; my $mrtg_logfile = "/var/www/htdocs/mrtg/eth0.log"; my $period = "day"; my $desired_unit =...
5.12 KB  
Libraries  -  Apache::ProxyConf 1.0
Apache::ProxyConf is a Perl module that can generate proxy configuration for browsers. SYNOPSIS # In httpd.conf: SetHandler perl-script PerlHandler Apache::ProxyConf PerlSetVar ProxyConfConfig "/some/location/proxyconf.ini"...
7.17 KB  
Libraries  -  Template::Alloy::Parse 1.006
Template::Alloy::Parse is a Perl module with common parsing role for creating AST from templates. The Template::Alloy::Parse role is reponsible for storing the majority of directive parsing code, as well as for delegating to the TT, HTE, Tmpl,...
143.36 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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