howtoconfigurecricket
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howtoconfigurecricket [2007/09/27 19:24] – faltin | howtoconfigurecricket [2015/10/14 13:42] (current) – remove obsolete page morten | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | |||
| - | |||
| - | ====== How to configure local Cricket-additions in NAV-v3 ====== | ||
| - | |||
| - | |||
| - | ===== Introduction ===== | ||
| - | |||
| - | |||
| - | The information assume that you have installed nav in / | ||
| - | |||
| - | The information here is under construction. It is possibly erroneous | ||
| - | and for a fact incomplete. | ||
| - | |||
| - | The default installation of Cricket in NAV-v3 gives you statistics for | ||
| - | your routers and switches and their interfaces. However, it may be | ||
| - | desirable to add local statistics to the installation of Cricket. This | ||
| - | document will lead you through a detailed way to do this without | ||
| - | installing a new instance of Cricket. This document will **not** help | ||
| - | you if you do not know anything about Cricket. For information about | ||
| - | how to configure Cricket, see the documentation at [[http:// | ||
| - | |||
| - | |||
| - | |||
| - | ===== The three steps ===== | ||
| - | |||
| - | Adding your local statistics to Cricket may be done in three (or four) | ||
| - | steps: | ||
| - | |||
| - | * Create a directory to store the configuration. | ||
| - | * Create the configuration you wish in the newly created directory. | ||
| - | * Edit the subtree-sets so that Cricket knows that this directory is active. | ||
| - | * Alternatively: | ||
| - | |||
| - | |||
| - | |||
| - | ===== Creating a directory ===== | ||
| - | |||
| - | |||
| - | The Cricket config-tree is located at | ||
| - | / | ||
| - | |||
| - | The basic structure of a NAV-v3 install is the following directories: | ||
| - | |||
| - | * giga-router-interfaces | ||
| - | * giga-switch-ports | ||
| - | * router-interfaces | ||
| - | * routers | ||
| - | * servers | ||
| - | * switch-ports | ||
| - | * switches | ||
| - | |||
| - | These directories are configured automatically, | ||
| - | should not be altered. | ||
| - | |||
| - | However, any other directories you create will not be affected by the | ||
| - | automatic processes in NAV-v3. This is thus where you start when | ||
| - | making your local additions. | ||
| - | |||
| - | Create the directory you want to store your configuration in here. | ||
| - | |||
| - | |||
| - | < | ||
| - | > cd / | ||
| - | > mkdir localadditions | ||
| - | </ | ||
| - | |||
| - | Make sure that directory has correct permissions. At least it should | ||
| - | be a member of the nav-group and that group should have read and | ||
| - | execute-permissions. | ||
| - | |||
| - | |||
| - | ===== Creating the configuration ===== | ||
| - | |||
| - | This document does not cover how to configure Cricket. The | ||
| - | Cricket-documentation is located at | ||
| - | [[http:// | ||
| - | and should give you | ||
| - | all the information you need. Remember to compile the new config-tree | ||
| - | when you are done making the configuration. | ||
| - | |||
| - | |||
| - | < | ||
| - | > / | ||
| - | </ | ||
| - | |||
| - | |||
| - | ===== Edit subtree-sets ===== | ||
| - | |||
| - | |||
| - | Cricket gathers data using cron. The cron-daemon executes the | ||
| - | collector-script located in / | ||
| - | the configuration of the cron-daemon, | ||
| - | to group directories into specific " | ||
| - | " | ||
| - | argument. | ||
| - | |||
| - | NAV-v3 uses two different sets when gathering data - " | ||
| - | " | ||
| - | Cricket) and the " | ||
| - | updates in NAV" below). The reason giga runs every minute is to reduce the | ||
| - | chance that the 32-bits counters wrap on giga-interfaces. This method | ||
| - | is not perfect, but mitigates the threat of a wrap. | ||
| - | |||
| - | To collect data from your local configuration you only need to edit | ||
| - | the subtree-sets file and add your directory in the " | ||
| - | will ensure that data is gathered every five minute. | ||
| - | |||
| - | |||
| - | < | ||
| - | set normal: | ||
| - | /routers | ||
| - | /switches | ||
| - | / | ||
| - | / | ||
| - | /servers | ||
| - | / | ||
| - | </ | ||
| - | |||
| - | If you want to collect data in another interval you will have to make | ||
| - | another set. In addition you will need to make a new cron-job so that | ||
| - | Cricket gathers data (covered in the next section). | ||
| - | |||
| - | |||
| - | ===== Adding a new cron-job to collect data ===== | ||
| - | |||
| - | Adding a new cron-job may be done in several ways: | ||
| - | |||
| - | 1. Adding a cron-job to an existing user. If the user is a member of the nav-group, this user can run the collect-subtrees script with the intended interval. Remember to use the set you made as argument to collect-subtrees. The cron-job should look something like this (assuming 10 minute intervals): | ||
| - | |||
| - | < | ||
| - | CRICKETDIR=/ | ||
| - | */10 * * * * $CRICKETDIR/ | ||
| - | </ | ||
| - | |||
| - | 2. Adding a new cron-job in / | ||
| - | |||
| - | 3. Make a new cron-fragment in / | ||
| - | |||
| - | |||
| - | ===== Coming updates in NAV ===== | ||
| - | |||
| - | The current directory-structure with giga-switch-ports and | ||
| - | giga-router-interfaces in addition to the other directories is not an | ||
| - | optimal structure. When you search for a graph you do not want to have | ||
| - | to search in multiple places to find what you are looking for. | ||
| - | |||
| - | A coming update in NAV plans to solve this problem. It will get rid of | ||
| - | the giga-directories and put all information in one directory for | ||
| - | switch-ports and one for router-interfaces. | ||
| - | |||
| - | The reason this has not been done before is that you need to use | ||
| - | SNMP-v2 to fulfill this, and the current set of network-equipment does | ||
| - | not always update the SNMP-v2 counters according to the standard. We | ||
| - | plan to develop a test for this and put the ones that follow the | ||
| - | standard in the " | ||
| - | directory. | ||
| - | other directory will decrease as time goes by and they start to update | ||
| - | the counters correctly. | ||
howtoconfigurecricket.1190921047.txt.gz · Last modified: by faltin
