root/src/config_templates.conf

Revision 322ceb0139cf145a94006446310d0aa106998056, 3.0 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

This allows for a

<include file="fileinsamedirasmaster.conf"/>

tp be placed anywhere in the master config of either noitd or stratcond.
The include is processed by parsing the specified file and putting all
children of the root element of the included document as replacements for
the children of the <include> node itself.

Special care is taken to make it look like we did not do this when we go to
write the config anywhere.

refs #254

  • Property mode set to 100644
Line 
1 <?xml version="1.0" encoding="utf8" standalone="yes"?>
2 <configtemplates>
3     <config id="SwitchPort">
4       <oid_description>IF-MIB::ifDescr.%[:ccns:name]</oid_description>
5       <oid_alias>IF-MIB::ifAlias.%[:ccns:name]</oid_alias>
6       <oid_speed>IF-MIB::ifSpeed.%[:ccns:name]</oid_speed>
7       <oid_adminstatus>IF-MIB::ifAdminStatus.%[:ccns:name]</oid_adminstatus>
8       <oid_operstatus>IF-MIB::ifOperStatus.%[:ccns:name]</oid_operstatus>
9       <oid_inoctets>IF-MIB::ifInOctets.%[:ccns:name]</oid_inoctets>
10       <oid_outoctets>IF-MIB::ifOutOctets.%[:ccns:name]</oid_outoctets>
11       <oid_inerrors>IF-MIB::ifInErrors.%[:ccns:name]</oid_inerrors>
12       <oid_outerrors>IF-MIB::ifOutErrors.%[:ccns:name]</oid_outerrors>
13       <oid_indiscards>IF-MIB::ifInDiscards.%[:ccns:name]</oid_indiscards>
14       <oid_outdiscards>IF-MIB::ifOutDiscards.%[:ccns:name]</oid_outdiscards>
15       <oid_inucastpkts>IF-MIB::ifInUcastPkts.%[:ccns:name]</oid_inucastpkts>
16       <oid_outucastpkts>IF-MIB::ifOutUcastPkts.%[:ccns:name]</oid_outucastpkts>
17       <oid_inbcastpkts>IF-MIB::ifInNUcastPkts.%[:ccns:name]</oid_inbcastpkts>
18       <oid_outbcastpkts>IF-MIB::ifOutNUcastPkts.%[:ccns:name]</oid_outbcastpkts>
19     </config>
20     <config id="SwitchPortX">
21       <oid_description>IF-MIB::ifName.%[:ccns:name]</oid_description>
22       <oid_alias>IF-MIB::ifAlias.%[:ccns:name]</oid_alias>
23       <oid_speed>IF-MIB::ifSpeed.%[:ccns:name]</oid_speed>
24       <oid_adminstatus>IF-MIB::ifAdminStatus.%[:ccns:name]</oid_adminstatus>
25       <oid_operstatus>IF-MIB::ifOperStatus.%[:ccns:name]</oid_operstatus>
26       <oid_inoctets>IF-MIB::ifHCInOctets.%[:ccns:name]</oid_inoctets>
27       <oid_outoctets>IF-MIB::ifHCOutOctets.%[:ccns:name]</oid_outoctets>
28       <oid_inerrors>IF-MIB::ifInErrors.%[:ccns:name]</oid_inerrors>
29       <oid_outerrors>IF-MIB::ifOutErrors.%[:ccns:name]</oid_outerrors>
30       <oid_indiscards>IF-MIB::ifInDiscards.%[:ccns:name]</oid_indiscards>
31       <oid_outdiscards>IF-MIB::ifOutDiscards.%[:ccns:name]</oid_outdiscards>
32       <oid_inucastpkts>IF-MIB::ifHCInUcastPkts.%[:ccns:name]</oid_inucastpkts>
33       <oid_outucastpkts>IF-MIB::ifHCOutUcastPkts.%[:ccns:name]</oid_outucastpkts>
34       <oid_inbcastpkts>IF-MIB::ifHCInBroadcastPkts.%[:ccns:name]</oid_inbcastpkts>
35       <oid_outbcastpkts>IF-MIB::ifHCOutBroadcastPkts.%[:ccns:name]</oid_outbcastpkts>
36     </config>
37     <config id="disk">
38       <oid_path>UCD-SNMP-MIB::dskPath.%[:ccns:name]</oid_path>
39       <oid_device>UCD-SNMP-MIB::dskDevice.%[:ccns:name]</oid_device>
40       <oid_total>UCD-SNMP-MIB::dskTotal.%[:ccns:name]</oid_total>
41       <oid_avail>UCD-SNMP-MIB::dskAvail.%[:ccns:name]</oid_avail>
42       <oid_used>UCD-SNMP-MIB::dskUsed.%[:ccns:name]</oid_used>
43       <oid_pctspace>UCD-SNMP-MIB::dskPercent.%[:ccns:name]</oid_pctspace>
44       <oid_pctinodes>UCD-SNMP-MIB::dskPercentNode.%[:ccns:name]</oid_pctinodes>
45       <oid_errorflag>UCD-SNMP-MIB::dskErrorFlag.%[:ccns:name]</oid_errorflag>
46       <oid_errormsg>UCD-SNMP-MIB::dskErrorMsg.%[:ccns:name]</oid_errormsg>
47     </config>
48 </configtemplates>
Note: See TracBrowser for help on using the browser.