Differences

This shows you the differences between two versions of the page.

Link to this comparison view

hostfile [2014/10/29 17:33]
root [The host attribute]
hostfile [2015/04/24 11:46] (current)
arachne
Line 1: Line 1:
-====== The hosts files ======+====== The host files ======
  
-Every collected hosts is declared in a distinct file, that define it's name, and the probe to collect. To ease declaration, macro and collections can be used.+Every collected host is declared in a distinct file, defining it's name, and the probe to collect. To ease declaration, macro and collections can be used.
 A very simple host declaration can be : A very simple host declaration can be :
 <code xml> <code xml>
Line 12: Line 12:
 ===== The host attribute ===== ===== The host attribute =====
  
-For each hosts, some attributes are defined. A mandatory one is the host name, that will be used for displaying this host and searching it.+For each host, some attributes are defined. A mandatory one is the host name, that will be used for displaying this host and searching it.
  
 This can be a symbolic name, easy to use and remember. For IP connection, a attribute called ''dnsName'' can be added, that will provide (for example) the FQDN for the host, or it's IP. This can be a symbolic name, easy to use and remember. For IP connection, a attribute called ''dnsName'' can be added, that will provide (for example) the FQDN for the host, or it's IP.
Line 18: Line 18:
 ===== Probe declaration ===== ===== Probe declaration =====
  
-Each probe to collect is a separate XML element. It's type is mandatory to identify it. Some probes needs argument, they are defined using a list of named attributes :+Each probe to collect is a separate XML element. It's type is mandatory to identify it. Some probes needs arguments, they are defined using a list of named attributes :
 <code xml> <code xml>
 <probe type="ProbeType"> <probe type="ProbeType">
Line 25: Line 25:
 </code> </code>
  
-Some probes takes an undefined number of argument, they can use lists :+Some probes takes an undefined number of arguments, they can use lists :
 <code xml> <code xml>
 <probe type="ProbeType"> <probe type="ProbeType">
Line 34: Line 34:
 </code> </code>
  
-It's up to the probe writer to decide how kind of declaration to use.+It's up to the probe writer to decide which kind of declaration to use.
  
 Some probes are [[connectedprobes|connected probes]] and needs a connection declaration : Some probes are [[connectedprobes|connected probes]] and needs a connection declaration :
Line 43: Line 43:
 </code> </code>
  
-For each probe, a additional ''timer'' attribute can be used to define a different timer than the default one to use.+For each probe, a additional ''timer'' attribute can be used to define a different timer than the default one.
 For example, if in the properties files, the following timer is declared : For example, if in the properties files, the following timer is declared :
 <code> <code>
Line 55: Line 55:
 <probe type="CpuRawTimeLinux" timer="fast"/> <probe type="CpuRawTimeLinux" timer="fast"/>
 </code> </code>
-===== The collections and enumerations =====+===== Collections and enumerations =====
  
-Some nodes take a long list of probes, and sometime the attributes differs only by a number. Thinks about a switch, with interfaces are called if0, if1, and so one. It can be very tedious to write them all. +Some nodes take a long list of probes, and sometimes the attributes differ only by a number. Thinks about a switch, with interfaces called if0, if1, and so one. It can be very tedious to write them all. 
-Some servers can also use a lot of different file system, repeating the probe declaration for each of them.+Some servers can also use a lot of different file systems, repeating the probe declaration for each of them.
  
 To ease writing and reading of those elements, both collections (an arbitrary set of values) and enumerations (a collection of consecutive values) can be used. To ease writing and reading of those elements, both collections (an arbitrary set of values) and enumerations (a collection of consecutive values) can be used.
Line 64: Line 64:
 ==== Collections ==== ==== Collections ====
  
-collections is declared by it's name :+collection is declared by it's name :
 <code xml> <code xml>
 <collection name="collectionName"> <collection name="collectionName">
Line 83: Line 83:
 ==== Enumerations ==== ==== Enumerations ====
  
-Enumeration are not referenced, but directly generated in the for+Enumeration are not referenced, but directly generated in the for loop
 <code xml> <code xml>
 <for var="i" min="1" max="3" step="1"> <for var="i" min="1" max="3" step="1">
 
hostfile.1414600416.txt · Last modified: 2014/10/29 17:33 by root     Back to top