mrtg ping probe
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 295
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
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-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-eth-probe 1.5.5
MRTG-eth-probe provides a probe for the Multi Router Traffic Grapher. more>>
MRTG-eth-probe provides a probe for the Multi Router Traffic Grapher, generating statistics for network devices that do not support the SNMP protocol. It reads interface stats from /proc/net/dev (or some other file you configure), and generates an output readable for MRTG by parsing the file.
Since the starting of this project MRTG-eth-probe has been downloaded more than 1700 times (as of 2001-11-04). Thanks for this go first of all to Freshmeat for accepting the project and for redirecting so much people to my sourceforge projectpage Additional thanks go to Michael Feger for sending me a patch to 1.5.2 which makes up the most important changes of this release.
Enhancements:
- bugfix: missing dot
<<lessSince the starting of this project MRTG-eth-probe has been downloaded more than 1700 times (as of 2001-11-04). Thanks for this go first of all to Freshmeat for accepting the project and for redirecting so much people to my sourceforge projectpage Additional thanks go to Michael Feger for sending me a patch to 1.5.2 which makes up the most important changes of this release.
Enhancements:
- bugfix: missing dot
Download (0.010MB)
Added: 2006-06-29 License: GPL (GNU General Public License) Price:
1215 downloads
BSNMP ping 0.1
BSNMP ping is a module for bsnmpd which allows you to measure latency and reachability. more>>
BSNMP ping is a module for bsnmpd which allows you to measure latency and reachability. It sends out ICMP packets to the configured hosts.
A history of received packets is maintained, and you can query via SNMP how many dropped packets, maximum/minumum latency and other stats for that history period.
As bsnmpd only runs on BSDs (seems that way), this will also be the case for bsnmp-ping.
EXAMPLES
The following example pings two hosts. The first gets pinged once per second, and keeps a history for 300 seconds. The second is pinged 5 times per second, and the history is kept for 30 seconds.
The following would be added to /etc/snmpd.config:
begemotSnmpdModulePath."ping" = "/usr/local/lib/snmp_ping.so"
%ping
pingHost.1 = "10.8.9.2"
pingInterval.1 = 100
pingHistory.1 = 300
pingHost.2 = "2.2.2.2"
pingInterval.1 = 20
pingHistory.1 = 150
<<lessA history of received packets is maintained, and you can query via SNMP how many dropped packets, maximum/minumum latency and other stats for that history period.
As bsnmpd only runs on BSDs (seems that way), this will also be the case for bsnmp-ping.
EXAMPLES
The following example pings two hosts. The first gets pinged once per second, and keeps a history for 300 seconds. The second is pinged 5 times per second, and the history is kept for 30 seconds.
The following would be added to /etc/snmpd.config:
begemotSnmpdModulePath."ping" = "/usr/local/lib/snmp_ping.so"
%ping
pingHost.1 = "10.8.9.2"
pingInterval.1 = 100
pingHistory.1 = 300
pingHost.2 = "2.2.2.2"
pingInterval.1 = 20
pingHistory.1 = 150
Download (0.30MB)
Added: 2006-04-10 License: BSD License Price:
1296 downloads
Arping 2.05
Arping is an ARP level ping utility. more>>
Arping is an ARP level ping utility. Its good for finding out if an IP is taken before you have routing to that subnet. You can also ping MAC addresses directly.
Broadcasts a who-has ARP packet on the network and prints answers. VERY useful when you are trying to pick an unused IP for a net that you dont yet have routing to. Then again, if you have no idea what Im talking about then you prolly dont need it.
Arping is util to find out it a specific IP address on the LAN is taken and what MAC address owns it. Sure, you *could* just use ping to find out if its taken and even if the computer blocks ping (and everything else) you still get an entry in your ARP cache. But what if you arent on a routable net? Or the host blocks ping (all ICMP even)? Then youre screwed. Or you use arping.
<<lessBroadcasts a who-has ARP packet on the network and prints answers. VERY useful when you are trying to pick an unused IP for a net that you dont yet have routing to. Then again, if you have no idea what Im talking about then you prolly dont need it.
Arping is util to find out it a specific IP address on the LAN is taken and what MAC address owns it. Sure, you *could* just use ping to find out if its taken and even if the computer blocks ping (and everything else) you still get an entry in your ARP cache. But what if you arent on a routable net? Or the host blocks ping (all ICMP even)? Then youre screwed. Or you use arping.
Download (0.031MB)
Added: 2006-06-21 License: GPL (GNU General Public License) Price:
1269 downloads
fping 2.4b2
fping is a ping like program which uses the Internet Control Message Protocol (ICMP) echo request to determine if a host is up. more>>
fping is a ping like program which uses the Internet Control Message Protocol (ICMP) echo request to determine if a host is up. fping is different from ping in that you can specify any number of hosts on the command line, or specify a file containing the lists of hosts to ping.
Instead of trying one host until it timeouts or replies, fping will send out a ping packet and move on to the next host in a round-robin fashion.
If a host replies, it is noted and removed from the list of hosts to check. If a host does not respond within a certain time limit and/or retry limit it will be considered unreachable.
Unlike ping, fping is meant to be used in scripts and its output is easy to parse.
Problem and Issues:
With a large a number of IP addresses in use, its becomes more and more time consuming to check on which IP addresses are actively in use, and which critical machines (routers, bridges, servers, etc) are reachable. One example is we have a program which goes through all of our routers arp caches looking for IP addresses that are in use. After finding a list of IP addresses that arent in any arp caches fping can then be used to see if these IP addresses really arent being used, or are just behind the routers. Checking 2500 hosts (99% of which are unreachable) via ping can take hours.
fping was written to solve the problem of pinging N number of hosts in an efficient manner. By sending out pings in a round-robin fashion and checking on responses as they come in at random, a large number of hosts can be checked at once.
Unlike ping, fping is meant to be used in scripts and its output is easy to parse.
<<lessInstead of trying one host until it timeouts or replies, fping will send out a ping packet and move on to the next host in a round-robin fashion.
If a host replies, it is noted and removed from the list of hosts to check. If a host does not respond within a certain time limit and/or retry limit it will be considered unreachable.
Unlike ping, fping is meant to be used in scripts and its output is easy to parse.
Problem and Issues:
With a large a number of IP addresses in use, its becomes more and more time consuming to check on which IP addresses are actively in use, and which critical machines (routers, bridges, servers, etc) are reachable. One example is we have a program which goes through all of our routers arp caches looking for IP addresses that are in use. After finding a list of IP addresses that arent in any arp caches fping can then be used to see if these IP addresses really arent being used, or are just behind the routers. Checking 2500 hosts (99% of which are unreachable) via ping can take hours.
fping was written to solve the problem of pinging N number of hosts in an efficient manner. By sending out pings in a round-robin fashion and checking on responses as they come in at random, a large number of hosts can be checked at once.
Unlike ping, fping is meant to be used in scripts and its output is easy to parse.
Download (0.059MB)
Added: 2006-03-10 License: GPL (GNU General Public License) Price:
1347 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
Web Ping 0.1
Web Ping is a program for testing your internet connection. more>>
Web Ping is a program for testing your internet connection.
Web Ping is a simple application to test an internet connection to a perticular site. I created this application after my work moved locations and half our network stayed in the old building and the other half moved with us to the new location.
A flaky (significant point) VPN was set up to keep the two connected. Since a couple of the unmoved servers were of interest to me, I keeped checking to see if they were still accessable with the ping command before doing any serious work with them.
A quick and pathetic Google resulted in no other program that meet my needes, so I wrote one.
Insted of doing an actual network ping, Web Ping tests a connection by downloading a web page on a given server. The size of the page and time are stored in memory and the times are graphed. In this way, sites that block network a ping can still be tracked.
Web Ping also keeps track of the largest and smallest download times per session and also tracks the max and min values currently on the graph. Times of interest are graphed in a color which represents if it is a max or a min. (see figure one). The history tab also lists all the max values as they have been recevied.
A running average is also calculated with each download. The files downloaded are not processed or stored in any way. This prevents any security problems that can normaly happen in a web browser enviroment. The only two pecies of information retained about a downloaded file is the size and time.
Usage:
There are two ways to use Web Ping, GUI or CLI mode. The simplest of the two modes is CLI. Web Ping can be started in CLI mode by passing a url to the jar file in a command line interface like this: "java -jar WebPing.jar http://localhost". Web Ping will automaticly start getting statistics on the requested url, printing results to the screnn.
To quite, press q and then then ENTER key. CLI allows the user to Most people will probably want to use the GUI mode which has a history graph and allows the user to start and stop the session.
The best way to run Web Ping is in GUI mode. GUI mode allows the user start and stop the ping process at will and to change the site that is pinged. Users can also see more information about about the history of the pings and view max values and min values easily. There are three tabs on the top of the page, the first is the application, second is the history list, and the last give information about the application.
<<lessWeb Ping is a simple application to test an internet connection to a perticular site. I created this application after my work moved locations and half our network stayed in the old building and the other half moved with us to the new location.
A flaky (significant point) VPN was set up to keep the two connected. Since a couple of the unmoved servers were of interest to me, I keeped checking to see if they were still accessable with the ping command before doing any serious work with them.
A quick and pathetic Google resulted in no other program that meet my needes, so I wrote one.
Insted of doing an actual network ping, Web Ping tests a connection by downloading a web page on a given server. The size of the page and time are stored in memory and the times are graphed. In this way, sites that block network a ping can still be tracked.
Web Ping also keeps track of the largest and smallest download times per session and also tracks the max and min values currently on the graph. Times of interest are graphed in a color which represents if it is a max or a min. (see figure one). The history tab also lists all the max values as they have been recevied.
A running average is also calculated with each download. The files downloaded are not processed or stored in any way. This prevents any security problems that can normaly happen in a web browser enviroment. The only two pecies of information retained about a downloaded file is the size and time.
Usage:
There are two ways to use Web Ping, GUI or CLI mode. The simplest of the two modes is CLI. Web Ping can be started in CLI mode by passing a url to the jar file in a command line interface like this: "java -jar WebPing.jar http://localhost". Web Ping will automaticly start getting statistics on the requested url, printing results to the screnn.
To quite, press q and then then ENTER key. CLI allows the user to Most people will probably want to use the GUI mode which has a history graph and allows the user to start and stop the session.
The best way to run Web Ping is in GUI mode. GUI mode allows the user start and stop the ping process at will and to change the site that is pinged. Users can also see more information about about the history of the pings and view max values and min values easily. There are three tabs on the top of the page, the first is the application, second is the history list, and the last give information about the application.
Download (0.38MB)
Added: 2005-12-09 License: Other/Proprietary License Price:
1438 downloads
PingNode 0.1
PingNode will ping network nodes at a set interval. more>>
PingNode will ping a list of network devices at a specified interval. PingNode will then create a record in a MySQL database for each ping indicating that the node was there or not there.
It will also send an email if the node is found to be down. The index.php page contains a list of monitored hosts with current status.
A detail page contains historical data for a given host.
ToDo:
Seperate table for hosts
Query data by date range
Dynamic host add/delete/modify
Custom Reports
disk space monitor
Process/Service monitor
<<lessIt will also send an email if the node is found to be down. The index.php page contains a list of monitored hosts with current status.
A detail page contains historical data for a given host.
ToDo:
Seperate table for hosts
Query data by date range
Dynamic host add/delete/modify
Custom Reports
disk space monitor
Process/Service monitor
Download (0.033MB)
Added: 2006-05-04 License: GPL (GNU General Public License) Price:
1269 downloads
KDE Ping 1.0
KDE Ping is a network/IP ping utility for KDE. more>>
KDE Ping is a network/IP ping utility for KDE.
<<less Download (MB)
Added: 2006-03-20 License: GPL (GNU General Public License) Price:
1338 downloads
WMPing 0.2.1
WMPing is a dockable application for checking the state of hosts. more>>
WMPing is a small dockable application for checking the state of hosts.
It show "up" status for a host that is available (ping packets are returned to you) and "down" status for a host that cannot be pinged.
Enhancements:
- fixed CPU usage
To compile:
# aclocal
# automake -a -c
# autoconf
# ./congigure
# make
To install:
You must be the superuser for typing:
# make install
<<lessIt show "up" status for a host that is available (ping packets are returned to you) and "down" status for a host that cannot be pinged.
Enhancements:
- fixed CPU usage
To compile:
# aclocal
# automake -a -c
# autoconf
# ./congigure
# make
To install:
You must be the superuser for typing:
# make install
Download (0.097MB)
Added: 2006-09-27 License: GPL (GNU General Public License) Price:
1124 downloads
Download (10.39MB)
Added: 2009-04-05 License: Fully functional Price: $0
11461 downloads
Other version of Network Probe
License:Freeware
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 ping probe 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