mrtg windows
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 40
Qmrtg 2.1
Qmrtg is a modular tool to help monitoring the activity of a qmail server. more>>
Qmrtg is a modular tool to help monitoring the activity of a qmail server. Its intended to be used with MRTG. Each module carries out a different log analysis.
A super-module lets the user easily request any analysis without having to know anything about the modules themselves. It was originally written for qmail, but most of its modules work with any software using multilog (see daemontools). It is an alternative to qmailmrtg7.
Enhancements:
- autoconf and automake are now used.
- A bug in the concurrency analyzer that caused incorrect reports under some circumstances was fixed.
- The user documentation was revised along with the target description in the mrtg config file.
<<lessA super-module lets the user easily request any analysis without having to know anything about the modules themselves. It was originally written for qmail, but most of its modules work with any software using multilog (see daemontools). It is an alternative to qmailmrtg7.
Enhancements:
- autoconf and automake are now used.
- A bug in the concurrency analyzer that caused incorrect reports under some circumstances was fixed.
- The user documentation was revised along with the target description in the mrtg config file.
Download (0.094MB)
Added: 2005-10-11 License: BSD License Price:
1473 downloads
MRTG 2.15.2
MRTG short from Multi Router Traffic Grapher is a tool to monitor the traffic load on network-links. more>>
MRTG short from Multi Router Traffic Grapher is a tool to monitor the traffic load on network-links.
Routers are only the beginning. MRTG is being used to graph all sorts of network devices as well as everything else from weather data to vending machines.
MRTG is written in perl and works on Unix/Linux as well as Windows and even Netware systems.
Enhancements:
- SNMVv3 handling was improved.
- Support for SNMPv2/3 devices WITHOUT HC counters was added.
- Indexmaker parsing was made more robust.
- Netware support was updated.
<<lessRouters are only the beginning. MRTG is being used to graph all sorts of network devices as well as everything else from weather data to vending machines.
MRTG is written in perl and works on Unix/Linux as well as Windows and even Netware systems.
Enhancements:
- SNMVv3 handling was improved.
- Support for SNMPv2/3 devices WITHOUT HC counters was added.
- Indexmaker parsing was made more robust.
- Netware support was updated.
Download (1.1MB)
Added: 2007-04-29 License: GPL (GNU General Public License) Price:
918 downloads
mrtg-ping-probe 2.2.0
mrtg-ping-probe project monitors round trip time and packet loss to another host. more>>
mrtg-ping-probe project monitors round trip time and packet loss to another host. Still on my TODO list: add own min/max/avg rtt calculation, add perl ping module, add rping and rsh support...
mrtg-ping-probe is a ping probe for MRTG 2.x. It is used to monitor the round trip time and packet loss to networked devices. MRTG uses its output to generate graphs visualizing minimum and maximum round trip times or packet loss.
mrtg-ping-probe depends on the following software being installed on your system: perl (at least version 5.6.1), mrtg (I use version 2.8.8, though any mrtg 2.x version should work), and a ping program that displays a summary of the round trip times upon termination or timeout.
mrtg-ping-probe runs on AIX, BSD/OS 2.1, FreeBSD/2.2.x, IRIX/6.2, Linux, Mac OS X (Darwin 5.4), NetBSD, OpenBSD, OS/2, OSF1 V3.2, Solaris 1.1.2 (SunOS 4.1.4), Solaris 2.5.1 (SunOS 5.5.1), Solaris 7 (SunOS 5.7), Solaris 8 (SunOS 5.8), Solaris 9 (SunOS 5.9), HP-UX 9, Windows 98, and Windows 2000 (english, french, portugesee, and spanish locales).
If you install the Windows ping program that comes with Windows 98, Windows 2000, or WinSock 2.x, mrtg-ping-probe will also run on Windows 95 and Windows 4.0.
Support for additional systems is usually easy to add, as described in the file INSTALL.
Act responsible: do not use mrtg-ping-probe to ping devices without the owners permission. Just imagine 10,000 people would decide to ping your hosts ... mrtg-ping-probe is meant to be used within your network to get round trip time performance figures for your network.
Usage: mrtg-ping-probe [-hsvV] [-d deadtime] [-k count] [-l length] [-o ping_options] [-p [factor*]{min|max|avg|loss|integer}/[factor*]{min|max|avg|loss|integer}] [-r [rsh:][user@]host[:osname]] [-t timeout] host
Enhancements:
- new platforms supported: italian Windows 2000 locale.
- bugfixes: on Windows actually return deadtime when we lost all packets, not 0. the ping child process should actually be killed now on Unix platforms.
- changes: ***** Possible Incompatability ***** raised minimum required perl version to 5.6.1. lots of typos fixed.
<<lessmrtg-ping-probe is a ping probe for MRTG 2.x. It is used to monitor the round trip time and packet loss to networked devices. MRTG uses its output to generate graphs visualizing minimum and maximum round trip times or packet loss.
mrtg-ping-probe depends on the following software being installed on your system: perl (at least version 5.6.1), mrtg (I use version 2.8.8, though any mrtg 2.x version should work), and a ping program that displays a summary of the round trip times upon termination or timeout.
mrtg-ping-probe runs on AIX, BSD/OS 2.1, FreeBSD/2.2.x, IRIX/6.2, Linux, Mac OS X (Darwin 5.4), NetBSD, OpenBSD, OS/2, OSF1 V3.2, Solaris 1.1.2 (SunOS 4.1.4), Solaris 2.5.1 (SunOS 5.5.1), Solaris 7 (SunOS 5.7), Solaris 8 (SunOS 5.8), Solaris 9 (SunOS 5.9), HP-UX 9, Windows 98, and Windows 2000 (english, french, portugesee, and spanish locales).
If you install the Windows ping program that comes with Windows 98, Windows 2000, or WinSock 2.x, mrtg-ping-probe will also run on Windows 95 and Windows 4.0.
Support for additional systems is usually easy to add, as described in the file INSTALL.
Act responsible: do not use mrtg-ping-probe to ping devices without the owners permission. Just imagine 10,000 people would decide to ping your hosts ... mrtg-ping-probe is meant to be used within your network to get round trip time performance figures for your network.
Usage: mrtg-ping-probe [-hsvV] [-d deadtime] [-k count] [-l length] [-o ping_options] [-p [factor*]{min|max|avg|loss|integer}/[factor*]{min|max|avg|loss|integer}] [-r [rsh:][user@]host[:osname]] [-t timeout] host
Enhancements:
- new platforms supported: italian Windows 2000 locale.
- bugfixes: on Windows actually return deadtime when we lost all packets, not 0. the ping child process should actually be killed now on Unix platforms.
- changes: ***** Possible Incompatability ***** raised minimum required perl version to 5.6.1. lots of typos fixed.
Download (0.036MB)
Added: 2007-07-16 License: GPL (GNU General Public License) Price:
554 downloads
upnp2mrtg 1.6
upnp2mrtg is a add-on for the mrtg (Multi Router Traffic Grapher). more>>
upnp2mrtg is a add-on for the mrtg (Multi Router Traffic Grapher). upnp2mrtg is a command line tool written in shell which can gather statistics from an upnp enabled FritzBox DSL router.
Main features:
- shell script
- if your bash is compiled with --enable-net-redirections no netcat is required
- only 1700 bytes or 70 lines of code
- very well tested! ;-))
- very little requirements
- fast
- works
<<lessMain features:
- shell script
- if your bash is compiled with --enable-net-redirections no netcat is required
- only 1700 bytes or 70 lines of code
- very well tested! ;-))
- very little requirements
- fast
- works
Download (0.004MB)
Added: 2006-10-14 License: GPL (GNU General Public License) Price:
1106 downloads
RRDBrowse 1.6
RRDBrowse is a poller daemon, templater and webinterface for RRDTool. more>>
RRDBrowse is a poller daemon, templater and webinterface for RRDTool. It has a threaded daemon which periodically runs from cron. It works with small .nfo files which hold router information and optionally connection details, colors, min max, bandwidth settings, etc, etc. RRDBrowse uses a small caching mechanism to store interface names. Its like MRTG in actual state.
Main features:
- 100% Perl
- Extremely Simple Configuration.
- Flexible & Extendible using Simple and Small Perl modules.
- Caching of ifIndex tables and other slow data. Retrieve once, Process Multiple times.
- Its Fast, thanks to RRDTool! Large organizations can handle thousands updated items each run.
Enhancements:
- Added RT statistics module
- Added oidderive module from Ingimar Robertsson
- Added w2kcpu and w2kmem modules from Okumura Yoshifumi
- Cleanups in utilities and cgi
- Added option to specify your own stylesheet
- Added Limit option in ciscocpu
- Improved debugging facilities
- Added Linux Disk I/O Statistics
- Added Linux Open Files and Open Sockets stats
<<lessMain features:
- 100% Perl
- Extremely Simple Configuration.
- Flexible & Extendible using Simple and Small Perl modules.
- Caching of ifIndex tables and other slow data. Retrieve once, Process Multiple times.
- Its Fast, thanks to RRDTool! Large organizations can handle thousands updated items each run.
Enhancements:
- Added RT statistics module
- Added oidderive module from Ingimar Robertsson
- Added w2kcpu and w2kmem modules from Okumura Yoshifumi
- Cleanups in utilities and cgi
- Added option to specify your own stylesheet
- Added Limit option in ciscocpu
- Improved debugging facilities
- Added Linux Disk I/O Statistics
- Added Linux Open Files and Open Sockets stats
Download (0.034MB)
Added: 2006-06-29 License: GPL (GNU General Public License) Price:
1213 downloads
mrtg-select 1.0
mrtg-select allows the flexible display of MRTG graphs, chosen by keyword and time span. more>>
mrtg-select allows the flexible display of MRTG graphs, chosen by keyword and time span.
I use MRTG to graph all kinds of stuff, and looking at those graphs on the same page helps me detect correlations. ("Say, Professor -- that spike in CPU temperature came right when the Rapture Index hit a three-year high!")
mrtg-select lets me pick a subset of graphs to be displayed on the same page, based on keyword and time span.
And the best part is that it figures out the keywords automagically just by being pointed at the directory where the graphs live -- theres no config file to update. Licensed under the GPL.
<<lessI use MRTG to graph all kinds of stuff, and looking at those graphs on the same page helps me detect correlations. ("Say, Professor -- that spike in CPU temperature came right when the Rapture Index hit a three-year high!")
mrtg-select lets me pick a subset of graphs to be displayed on the same page, based on keyword and time span.
And the best part is that it figures out the keywords automagically just by being pointed at the directory where the graphs live -- theres no config file to update. Licensed under the GPL.
Download (0.002MB)
Added: 2005-11-16 License: GPL (GNU General Public License) Price:
1440 downloads
qmailmrtg7 4.2
qmailmrtg7 utilizes qmail and tcpserver/multilogs extensive logging capabilities to create mrtg graphs. more>>
qmailmrtg7 uses qmails excellent and extensive logging via multilog, tcpserver and qmail-send. qmailmrtg7 takes the pop3 smtp and qmail transaction logs and sends them to 9 different mrtg graphs, each graph with 4 historical time series.
Main features:
- very fast - typically processes in less than 2 seconds
- Intelligently uses the multilog file name time stamp to determine which logs to open and process.
- Single small C program with no external dependances and simple command line options. See the qmail.mrtg.cfg for working examples of the options.
- Works on any system that supports qmail
<<lessMain features:
- very fast - typically processes in less than 2 seconds
- Intelligently uses the multilog file name time stamp to determine which logs to open and process.
- Single small C program with no external dependances and simple command line options. See the qmail.mrtg.cfg for working examples of the options.
- Works on any system that supports qmail
Download (0.009MB)
Added: 2005-10-07 License: GPL (GNU General Public License) Price:
1477 downloads
mrtg-mica-probe 0.0.2
mrtg-mica-probe is a Telebit MicaBlazer modem usage probe. more>>
mrtg-mica-probe is a Telebit MicaBlazer modem usage probe.
mrtg-mica-probe is a modem usage probe for the ITK NetBlazer 6100 (formerly Telebit MicaBlazer) 3.32. It is used to monitor the number of used modem and ISDN lines.
The latest release of mrtg-mica-probe can always be found on the web at http://pwo.de/projects/mrtg/ or via anonymous ftp at ftp://ftp.pwo.de/pub/pwo/mrtg/mrtg-mica-probe/.
mrtg.cfg-mica shows some sample mrtg.cfg entries.
Enhancements:
- added documentation to workaround a Telebit bug that might prevent SNMP from starting correctly.
<<lessmrtg-mica-probe is a modem usage probe for the ITK NetBlazer 6100 (formerly Telebit MicaBlazer) 3.32. It is used to monitor the number of used modem and ISDN lines.
The latest release of mrtg-mica-probe can always be found on the web at http://pwo.de/projects/mrtg/ or via anonymous ftp at ftp://ftp.pwo.de/pub/pwo/mrtg/mrtg-mica-probe/.
mrtg.cfg-mica shows some sample mrtg.cfg entries.
Enhancements:
- added documentation to workaround a Telebit bug that might prevent SNMP from starting correctly.
Download (0.029MB)
Added: 2007-07-12 License: GPL (GNU General Public License) Price:
835 downloads
mrtg-ntap-probe 0.4.0
mrtg-ntap-probe can probe for Network Appliance NetCache caching appliance and NetApp Filer. more>>
mrtg-ntap-probe can probe for Network Appliance NetCache caching appliance and NetApp Filer.
mrtg-ntap-probe retrieves the disk and file (inode) utilization by volume or quota tree name, so you do not need to find the right OID, which might change over time as you add and/or remove volumes and quota trees.
You need a recent release of mrtg 2.x, perl 5.003 or better, a NetApp NetCache appliance with NetCache release 5.1 or better and/or a Network Appliance Filer running Data Ontap 6.0 or better.
If you have a Network Appliance service contract and access to their software tools library on now.netapp.com, you should also take a look at their mrtg-filer and mrtg-netcache packages!
<<lessmrtg-ntap-probe retrieves the disk and file (inode) utilization by volume or quota tree name, so you do not need to find the right OID, which might change over time as you add and/or remove volumes and quota trees.
You need a recent release of mrtg 2.x, perl 5.003 or better, a NetApp NetCache appliance with NetCache release 5.1 or better and/or a Network Appliance Filer running Data Ontap 6.0 or better.
If you have a Network Appliance service contract and access to their software tools library on now.netapp.com, you should also take a look at their mrtg-filer and mrtg-netcache packages!
Download (0.019MB)
Added: 2007-07-12 License: GPL (GNU General Public License) Price:
838 downloads
mrtg-misc-probe 0.3.0
mrtg-misc-probe probes different system features for mrtg to graph. more>>
mrtg-misc-probe probes different system features for mrtg to graph.
Currently it can probe:
- percent usage of disk space and inodes for UFS filesystems
- percent usage of disk space for VxFS filesystems
- incoming and outgoing mail messages on sendmail mail server
- total size of mail messages sendt and received on sendmail mail server
- network delay using NTP peers/servers
- number of ClearCase vobs and views
- number of available and used ClearCase and MultiSite licenses
- number of active and disconnected sessions of a Citrix Metaframe server
- number of reachable hosts in a given network range
- network device reachability (ping success)
Enhancements:
- New probes: ctxmf - number of active and disconnected Citrix Metaframe sessions; hostcount - scan given nmap-network-range and return number of hosts found.
<<lessCurrently it can probe:
- percent usage of disk space and inodes for UFS filesystems
- percent usage of disk space for VxFS filesystems
- incoming and outgoing mail messages on sendmail mail server
- total size of mail messages sendt and received on sendmail mail server
- network delay using NTP peers/servers
- number of ClearCase vobs and views
- number of available and used ClearCase and MultiSite licenses
- number of active and disconnected sessions of a Citrix Metaframe server
- number of reachable hosts in a given network range
- network device reachability (ping success)
Enhancements:
- New probes: ctxmf - number of active and disconnected Citrix Metaframe sessions; hostcount - scan given nmap-network-range and return number of hosts found.
Download (0.017MB)
Added: 2007-07-12 License: GPL (GNU General Public License) Price:
836 downloads
MRTG::Parse 0.03
MRTG::Parse is a Perl extension for parsing and utilizing the logfiles generated by the famous MRTG Tool. more>>
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 = "GB";
my ($traffic_incoming, $traffic_outgoing, $traffic_sum) = mrtg_parse($mrtg_logfile, $period, $desired_unit);
print "Incoming Traffic: $traffic_incomingn";
print "Outgoing Traffic: $traffic_outgoingn";
print "= Sum $traffic_sumn";
This perl extension enables its users to parse and utilize the logfiles that are generated by the famous MRTG (Multi Router Traffic Grapher) tool.
mrtg_parse() takes three argument:
1st: filename of the mrtg logfile
2nd: time period to genereate the output for
valid values are:
- individual time periods like: 20040821-20050130 (ISO 8601)
- static values: day, month, year
3rd: the desired unit (optional)
valid values are:
- B, KB, MB, GB, TB
- if missing mrtg_parse will chose an adequate one for you
mrtg_parse() returns three values:
1st: Incoming traffic
2nd: Outgoing traffic
3rd: Sum of incoming and outgoing
<<lessSYNOPSIS
use strict;
use MRTG::Parse;
my $mrtg_logfile = "/var/www/htdocs/mrtg/eth0.log";
my $period = "day";
my $desired_unit = "GB";
my ($traffic_incoming, $traffic_outgoing, $traffic_sum) = mrtg_parse($mrtg_logfile, $period, $desired_unit);
print "Incoming Traffic: $traffic_incomingn";
print "Outgoing Traffic: $traffic_outgoingn";
print "= Sum $traffic_sumn";
This perl extension enables its users to parse and utilize the logfiles that are generated by the famous MRTG (Multi Router Traffic Grapher) tool.
mrtg_parse() takes three argument:
1st: filename of the mrtg logfile
2nd: time period to genereate the output for
valid values are:
- individual time periods like: 20040821-20050130 (ISO 8601)
- static values: day, month, year
3rd: the desired unit (optional)
valid values are:
- B, KB, MB, GB, TB
- if missing mrtg_parse will chose an adequate one for you
mrtg_parse() returns three values:
1st: Incoming traffic
2nd: Outgoing traffic
3rd: Sum of incoming and outgoing
Download (0.005MB)
Added: 2007-04-03 License: Perl Artistic License Price:
938 downloads
MRTGWebCfg 2.18
MRTGWebCfg is a tool for configuring MRTG through a Web-based interface. more>>
MRTGWebCfg is a tool for configuring MRTG through a Web-based interface.
MRTG is an abbrevation of "Multi Router Traffic Grapher", which is a service, collecting data through SNMP queries and putting that data on a Web page.
For instance, it can represent link load (incoming data rate, outgoing data rate, maximum and average data rate) on hourly, daily and other basis.
MRTGWebCfg is a PHP written tool which provides Web based interface for:
- Managing MRTG config
- Plotting custom RRD plots
- Plotting graphical data on Web pages
Enhancements:
- This release adds MySQL support and has minor bugfixes.
<<lessMRTG is an abbrevation of "Multi Router Traffic Grapher", which is a service, collecting data through SNMP queries and putting that data on a Web page.
For instance, it can represent link load (incoming data rate, outgoing data rate, maximum and average data rate) on hourly, daily and other basis.
MRTGWebCfg is a PHP written tool which provides Web based interface for:
- Managing MRTG config
- Plotting custom RRD plots
- Plotting graphical data on Web pages
Enhancements:
- This release adds MySQL support and has minor bugfixes.
Download (0.041MB)
Added: 2007-05-26 License: GPL (GNU General Public License) Price:
881 downloads
Windows Powertools 4.0.0.1
Windows Powertools has these features : *Cache2Trash:Clear unwanted temporary files to gain space *DiskCheck: Check for disk errors and resol... more>> <<less
Download (655KB)
Added: 2009-04-07 License: Freeware Price: Free
1074 downloads
MRTS 0.1.1
MRTG RRDtool Total Statistics is a PHP script that uses MRTG and RRDtool to sum up traffic monthly and yearly. more>>
MRTG RRDtool Total Statistics is a PHP script that uses MRTG and RRDtool to sum up traffic monthly and yearly. Just click on any device and MRTS will show you the traffic-graphs and the statistics on how much traffic you have made during the actual/last months/year.
MRTS is short for MRTG RRDtool Total Statistics. It is a PHP script written by Thor Dreier that uses MRTG and RRDtool to sum up total traffic monthly and yearly. But why making words, if you can see the full power of MRTS in some examples: http://mrts.domainnet.dk
First thing to do is to check, which of the above mentioned packages you already have installed. No idea? Well, then you should do a simple
ls /var/db/pkg
or
pkg_info
which lists the packages, you have installed using the FreeBSD ports. If you dont know what the FreeBSD ports are, then you probably wont have to read on, as some basics really are required in this tutorial ;) Anyway, im trying to explain step by step. After you have checked your installed packages, install the packages you still need.
Net-SNMP: /usr/ports/net-mgmt/net-snmp
MRTG: /usr/ports/net-mgmt/mrtg
RRDtool: /usr/ports/net/rrdtool
Some of these programs depend on various libraries (e.g. zlib, libpng, GD), but thats the good thing: The port-install-mechanism will automatically check, if you have them or not and it will install them, if needed. Do a make && make install && make clean
in the corresponding port directories to install that specific port. Now it could take a while until all ports are compiled.
<<lessMRTS is short for MRTG RRDtool Total Statistics. It is a PHP script written by Thor Dreier that uses MRTG and RRDtool to sum up total traffic monthly and yearly. But why making words, if you can see the full power of MRTS in some examples: http://mrts.domainnet.dk
First thing to do is to check, which of the above mentioned packages you already have installed. No idea? Well, then you should do a simple
ls /var/db/pkg
or
pkg_info
which lists the packages, you have installed using the FreeBSD ports. If you dont know what the FreeBSD ports are, then you probably wont have to read on, as some basics really are required in this tutorial ;) Anyway, im trying to explain step by step. After you have checked your installed packages, install the packages you still need.
Net-SNMP: /usr/ports/net-mgmt/net-snmp
MRTG: /usr/ports/net-mgmt/mrtg
RRDtool: /usr/ports/net/rrdtool
Some of these programs depend on various libraries (e.g. zlib, libpng, GD), but thats the good thing: The port-install-mechanism will automatically check, if you have them or not and it will install them, if needed. Do a make && make install && make clean
in the corresponding port directories to install that specific port. Now it could take a while until all ports are compiled.
Download (0.003MB)
Added: 2006-06-29 License: GPL (GNU General Public License) Price:
1212 downloads
MRTG::Config 0.04
MRTG::Config is a Perl module for parsing MRTG configuration files. more>>
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";
<<lessWARNING
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";
Download (0.012MB)
Added: 2007-07-26 License: Perl Artistic License Price:
824 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above mrtg windows search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed