Board index

Cheshire Cat Software

Steve Shipway's Discussion Groups
Locations of visitors to this page
It is currently Thu 09 Sep, 2010 12:00 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: FAQ
PostPosted: Tue 19 Aug, 2008 5:20 pm 
Offline
Site Admin
User avatar

Joined: Mon 28 Jul, 2003 5:42 pm
Posts: 3005
Location: Auckland, New Zealand
Frequently Asked Questions

General
:?: What is cfgmaker?
cfgmaker is a utiltity, distributed with MRTG, which helps to generate configuration files by polling the device using SNMP and probing for network interface information.

:?: What are templates?
Templates are snippets of Perl code, which allow you to modify the configuration output by cfgmaker to customise it in some way, such as to add the additional Routers2 directives. These are run for each network interface which is detected on the device.

:?: What are host templates?
Host templates are snippets of Perl code, which specify additional configuration output to be added for the device. This can allow you to add CPU monitoring for a switch, for example. These are run once for each device.

:?: What are filters?
Filters are Perl expressions which allow you to define new rules to decide if a given interface should be included in the configuration file or not. The default is to include all interfaces which are not loopback and have a valid speed defined, but you may also wish to exclude dialup interfaces, for example.

Filters
:?: How do I use a filter?
Add the following option to the cfgmaker command line for some filter code 'xxx':
Code:
--if-filter="xxx"


:?: Why would I want to use filters?
You may wish to automatically exclude some interfaces from monitoring, or certain interface types, such as dial-up interfaces.

Templates
:?: How do I use a template?
Add the following option to the cfgmaker command line for a template file xxxx:
Code:
--if-template=xxx


:?: Why would I use a template?
By using templates, you can redefine the way the configuration script is output. For example, to add extra Routers2-specific directives.

Host Templates
:?: How do I use a host template?
Add the following option to the cfgmaker command line for a template file xxxx:
Code:
--host-template=xxx


:?: What is the difference between templates and host templates?
Templates are run for each interface on the device. Host templates are run once for the device itself and do not relate to any interface.

:?: Why would I want to use a host template?
Thes can allow you to add additional non-interface items to the monitoring if they are available via SNMP, such as CPU monitoring.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group