summaryrefslogtreecommitdiff
path: root/torrus/xmlconfig/old/cisco.generic.old-0.1.4.xml
blob: 4b0c82491dec36284a54e35ee4f9b48caac9d2b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0"?>
<!--
   Copyright (C) 2002  Stanislav Sinyagin

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

  $Id: cisco.generic.old-0.1.4.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $
  Stanislav Sinyagin <ssinyagin@yahoo.com>

-->

<!-- Common Cisco definitions -->

<configuration>

<definitions>

  <!-- CISCO-PROCESS-MIB:cpmCPUTotalTable -->
  <def name="cpmCPUTotal5minRev" value="1.3.6.1.4.1.9.9.109.1.1.1.1.8" />

  <!-- CISCO-MEMORY-POOL-MIB:ciscoMemoryPoolTable -->
  <def name="ciscoMemoryPoolUsed"        value="1.3.6.1.4.1.9.9.48.1.1.1.5" />
  <def name="ciscoMemoryPoolFree"        value="1.3.6.1.4.1.9.9.48.1.1.1.6" />

  <!-- CISCO-ENVMON-MIB:ciscoEnvMonTemperatureStatusTable -->
  <def name="ciscoEnvMonTemperatureStatusIndex"
                          value="1.3.6.1.4.1.9.9.13.1.3.1.1" />
  <def name="ciscoEnvMonTemperatureStatusDescr"
                          value="1.3.6.1.4.1.9.9.13.1.3.1.2" />
  <def name="ciscoEnvMonTemperatureStatusValue"
                          value="1.3.6.1.4.1.9.9.13.1.3.1.3" />
  <def name="ciscoEnvMonTemperatureStatusState"
                          value="1.3.6.1.4.1.9.9.13.1.3.1.6" />

</definitions>

<datasources>

  <template name="cisco-mempool">
    <subtree name="Memory_Usage">
      <param name="rrd-create-dstype" value="GAUGE" />
      <param name="data-file"         value="%system-id%_mempool.rrd" />
      <param name="comment"           value="Memory usage statistics" />
      <param name="precedence"        value="-100" />

      <leaf name="Processor_Memory_Used">
        <param name="snmp-object"     value="$ciscoMemoryPoolUsed.1"/>
        <param name="rrd-ds"          value="ciscoMemoryPoolUsed" />
        <param name="comment">
          Number of bytes from the Processor memory pool
          that are currently in use
        </param>
        <param name="graph-legend"    value="Memory used" />
      </leaf>

      <leaf name="Processor_Memory_Free">
        <param name="snmp-object"     value="$ciscoMemoryPoolFree.1"/>
        <param name="rrd-ds"          value="ciscoMemoryPoolFree" />
        <param name="comment">
          Number of bytes from the Processor memory pool
          that are currently free
        </param>
        <param name="graph-legend"    value="Memory free" />
      </leaf>
    </subtree>
  </template>

  <template name="cisco-cpu">
    <leaf name="CPU_Total_5min">
      <param name="rrd-create-dstype"  value="GAUGE" />
      <param name="data-file"          value="%system-id%_cpu.rrd" />
      <param name="precedence"         value="-200" />
      <param name="snmp-object"        value="$cpmCPUTotal5minRev.1"/>
      <param name="rrd-ds"             value="cpmCPUTotal5minRev" />
      <param name="comment">
          The overall CPU busy percentage in the last 5 minute period
      </param>
      <param name="graph-legend"       value="CPU usage" />
    </leaf>
  </template>

  <!-- template to be applied inside the sensor leaf.
       Two parameters must be defined: sensor-index and sensor-description -->
  <template name="cisco-temperature-sensor">
    <param name="comment"      value="%sensor-description%"/>
    <param name="rrd-ds"       value="sensor_%sensor-index%"/>
    <param name="snmp-object"
           value="$ciscoEnvMonTemperatureStatusValue.%sensor-index%"/>
    <param name="graph-legend"      value="%sensor-description%"/>
    <param name="graph-lower-limit" value="10"/>
    <param name="graph-upper-limit" value="80"/>
    <param name="vertical-label"  value="degrees Celsius"/>
  </template>

</datasources>

</configuration>