MZL & Novatech TrafficStatistic Website
Home MZL
Webshop
Products
Webservice
Helpdesk
Feedback
About us
News
Submit News
MZL & Novatech Product and Service News
Traffic Statistics News Robot
Perl module SNMP::Server:...
Traffic Statistics Users Newsfeed
Search
MZL & Novatech TrafficStatistic Website
News - more news - submit news - XML
USA, 11/19/08:  (details)
iOrgSoft Inc. Released The Best Video Converter-a versatile video editing and conversion software
New York, 11/07/08:  (details)
MelodyCan Convert wma, m4p, m4b, m4a, aac, mpeg, m4v, mp3 on 64 bit OS
USA, 11/06/08:  (details)
Wondershare Media Converter is not only a professional DRM remover, which can remove DRM from both protected music and video files, but also a powerful DRM Media Converter that supports nearly all the popular media formats.
gd/china, 11/06/08:  (details)
Brand-new Daniusoft DVD to iPod Converter
sz/gd, 10/21/08:  (details)
Super DVD ripper upgrade to free Rip DVD without watermark

Channel: Traffic Statistics News RobotThis Traffic Statistic news channel is feeded by the Traffic Statistics News Robot, which crawls through the web to find Traffic Statistic related resources. The TrafficStatistic News Robot is currently running in alpha state, so be prepared that it might may bring out sometimes surprising results. The robot should care for robots.txt as defined in robots.txt. If the robot grabbed any content it shouldn't have grabed or if you want your resource to be grabed just send a mail to newsrobot@trafficstatistic.com and the trafficstatistic admin will delete it.



CPAN Perl, 11/19/04

Perl module SNMP::Server::Logtail - Tails logfiles and presents counters via SNMP


This module implements the core functionality that combines with the Net-SNMP SNMP daemon (not to be confused with the Net::SNMP Perl module) which allows you to monitor updates to a logfile. Typically, it's used to present a MIB of counters that increment whenever certain events are logged. It also detects when the logfile has been rotated and will start monitoring the new logfile when this occurs.

The example in SYNOPSIS above is a complete program that Net-SNMP can use. Note that this module imports functions into your namespace, has global variables, and is generally hostile to your script doing anything other than purely being a client to it. This is intentional.

To tell Net-SNMP about your new MIB and script, insert the following line into snmpd.conf:

pass_persist .1.3.6.1.4.1.2021.255 /path/to/script.pl

and then reload Net-SNMP. You can then perform a SNMP query:

snmpget -v 1 -c public localhost .1.3.6.1.4.1.2021.255.1

You can obviously also read this by using Net::SNMP, MRTG, or similar.

The function set with add_logfile() is called back whenever a new entry appears in the logfile. It is passed a hash reference and single lines from the logfile. The function may use the hash as it sees fit, although normally it would just increment/set values in the hash as new log data becomes available to it.

The arguments given to add_oidmap() define which entries in the hash are read whenever a SNMP query is made. It contains key/value pairs. The key corresponds to keys in the hash which are read - the value is the suffix of the OID that causes this read. (The OID's prefix is given in snmpd_init.)

Link provided: http://search.cpan.org/~mooli/SNMP-Server-1.001/



Added by: Traffic Statistics News Robot

Previous news item - - - Next news item

Impressum
© 2004-2005 MZL Billing Services & Novatech Ltd. All rights reserved.
Sponsoring Mein Parteibuch