Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
manpage:add_host [2009/10/29 16:23] – Ueli Heuer | manpage:add_host [2009/11/11 20:27] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== add_host ====== | ||
+ | |||
+ | ===== SYNOPSIS ===== | ||
+ | |||
+ | add_host.pl - add hosts to the DVG config database | ||
+ | |||
+ | |||
+ | ===== USAGE ===== | ||
+ | |||
+ | Lists all matching templates | ||
+ | | ||
+ | |||
+ | Edit the matching templats | ||
+ | | ||
+ | |||
+ | Add a new host to the dvg | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | ===== DESCRIPTION ===== | ||
+ | add a host with predefined devices into DVG. The templates defines some basic features of the host (SNMP version, check this | ||
+ | host, is this host activ). The devices are defined in a simmilar way. | ||
+ | |||
+ | |||
+ | ===== TEMPLATE ===== | ||
+ | |||
+ | Templates are stored in the directory $DVG_HOME/ | ||
+ | Empty lines or lines starting with '#' | ||
+ | A template looks like following example: | ||
+ | |||
+ | |||
+ | # | ||
+ | # | ||
+ | # $Id: add_host.pl, | ||
+ | # | ||
+ | # CISCO 1841 | ||
+ | # | ||
+ | # Host | ||
+ | # 0: | ||
+ | # Type -> as defined in table host_type | ||
+ | # Hardware -> as defined in table dvg_hardware(model) | ||
+ | # Module | ||
+ | 0: | ||
+ | # Interfaces | ||
+ | # | ||
+ | # ord -> ordering of the entries | ||
+ | # name -> the name as shown in the UI | ||
+ | # probe -> as defined in the table probe | ||
+ | # activ -> [y|n] | ||
+ | # HC -> [y|n] (host has HC (64bit counters for the interfaces) | ||
+ | # params -> additional parameters as need defined in probe_params order as in the database | ||
+ | 5:PING:Ping hostid: | ||
+ | 10:CPU:CPU (cisco): | ||
+ | 10: | ||
+ | 10:Memory I/O:memory (cisco): | ||
+ | 10:Memory Process: | ||
+ | 15: | ||
+ | 20: | ||
+ | 21: | ||
+ | 25: | ||
+ | 25: | ||
+ | 25: | ||
+ | 25: | ||
+ | |||
+ | |||
+ | ===== BUGS ===== | ||
+ | There could be some bugs. If you find one (or more) please report it to [[DVGTOOL> | ||
+ | |||
+ | * you can add hosts without a valid FQDN This' | ||
+ | |||
+ | ===== COPYRIGHT ===== | ||
+ | Copyright 2004 ... 2008 by Ueli Heuer <ueli at dvgtool dot org> | ||
+ | |||
+ | {{tag> | ||