Show
Ignore:
Timestamp:
11/07/09 23:31:50 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1257636710 +0000
git-parent:

[eb243ce995835fef0bf9b9b01f491bc3908335f9]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1257636710 +0000
Message:

fixes #213 w/ examples

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit.conf.in

    r65a01d9 rd38990d  
    112112      <switches module="snmp" period="60000"> 
    113113        <config inherit="SwitchPortX"/> 
    114         <switch target="10.80.116.3"> 
    115           <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="1"/> 
    116           <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="2"/> 
    117           <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="3"/> 
    118           <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="4"/> 
     114        <switch target="10.1.2.3"> 
     115          <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="switchport::1"/> 
     116          <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::2"/> 
     117          <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="switchport::3"/> 
     118          <check uuid="4deb0724-ccee-4360-83bc-255e7b9d989d" name="switchport::4"/> 
    119119        </switch> 
    120120      </switches> 
     121      <disk module="snmp" period="60000"> 
     122        <config inherit="disk"><community>test</community></config> 
     123        <check target="127.0.0.1" uuid="16eb9194-cbf4-11de-8fba-031dd96e4057" name="disk::1" /> 
     124      </disk> 
    121125    </dc1> 
    122126    <check uuid="002d58ff-20ff-4db0-9420-782fc1748dc4" module="ssh2" target="10.80.117.2" period="60000" timeout="4000"/> 
     
    129133  <config_templates> 
    130134    <config id="SwitchPort"> 
    131       <oid_description>IF-MIB::ifDescr.%[name]</oid_description> 
    132       <oid_alias>IF-MIB::ifAlias.%[name]</oid_alias> 
    133       <oid_speed>IF-MIB::ifSpeed.%[name]</oid_speed> 
    134       <oid_adminstatus>IF-MIB::ifAdminStatus.%[name]</oid_adminstatus> 
    135       <oid_operstatus>IF-MIB::ifOperStatus.%[name]</oid_operstatus> 
    136       <oid_inoctets>IF-MIB::ifInOctets.%[name]</oid_inoctets> 
    137       <oid_outoctets>IF-MIB::ifOutOctets.%[name]</oid_outoctets> 
    138       <oid_inerrors>IF-MIB::ifInErrors.%[name]</oid_inerrors> 
    139       <oid_outerrors>IF-MIB::ifOutErrors.%[name]</oid_outerrors> 
    140       <oid_indiscards>IF-MIB::ifInDiscards.%[name]</oid_indiscards> 
    141       <oid_outdiscards>IF-MIB::ifOutDiscards.%[name]</oid_outdiscards> 
    142       <oid_inucastpkts>IF-MIB::ifInUcastPkts.%[name]</oid_inucastpkts> 
    143       <oid_outucastpkts>IF-MIB::ifOutUcastPkts.%[name]</oid_outucastpkts> 
    144       <oid_inbcastpkts>IF-MIB::ifInNUcastPkts.%[name]</oid_inbcastpkts> 
    145       <oid_outbcastpkts>IF-MIB::ifOutNUcastPkts.%[name]</oid_outbcastpkts> 
     135      <oid_description>IF-MIB::ifDescr.%[:ccns:name]</oid_description> 
     136      <oid_alias>IF-MIB::ifAlias.%[:ccns:name]</oid_alias> 
     137      <oid_speed>IF-MIB::ifSpeed.%[:ccns:name]</oid_speed> 
     138      <oid_adminstatus>IF-MIB::ifAdminStatus.%[:ccns:name]</oid_adminstatus> 
     139      <oid_operstatus>IF-MIB::ifOperStatus.%[:ccns:name]</oid_operstatus> 
     140      <oid_inoctets>IF-MIB::ifInOctets.%[:ccns:name]</oid_inoctets> 
     141      <oid_outoctets>IF-MIB::ifOutOctets.%[:ccns:name]</oid_outoctets> 
     142      <oid_inerrors>IF-MIB::ifInErrors.%[:ccns:name]</oid_inerrors> 
     143      <oid_outerrors>IF-MIB::ifOutErrors.%[:ccns:name]</oid_outerrors> 
     144      <oid_indiscards>IF-MIB::ifInDiscards.%[:ccns:name]</oid_indiscards> 
     145      <oid_outdiscards>IF-MIB::ifOutDiscards.%[:ccns:name]</oid_outdiscards> 
     146      <oid_inucastpkts>IF-MIB::ifInUcastPkts.%[:ccns:name]</oid_inucastpkts> 
     147      <oid_outucastpkts>IF-MIB::ifOutUcastPkts.%[:ccns:name]</oid_outucastpkts> 
     148      <oid_inbcastpkts>IF-MIB::ifInNUcastPkts.%[:ccns:name]</oid_inbcastpkts> 
     149      <oid_outbcastpkts>IF-MIB::ifOutNUcastPkts.%[:ccns:name]</oid_outbcastpkts> 
    146150    </config> 
    147151    <config id="SwitchPortX"> 
    148       <oid_description>IF-MIB::ifName.%[name]</oid_description> 
    149       <oid_alias>IF-MIB::ifAlias.%[name]</oid_alias> 
    150       <oid_speed>IF-MIB::ifSpeed.%[name]</oid_speed> 
    151       <oid_adminstatus>IF-MIB::ifAdminStatus.%[name]</oid_adminstatus> 
    152       <oid_operstatus>IF-MIB::ifOperStatus.%[name]</oid_operstatus> 
    153       <oid_inoctets>IF-MIB::ifHCInOctets.%[name]</oid_inoctets> 
    154       <oid_outoctets>IF-MIB::ifHCOutOctets.%[name]</oid_outoctets> 
    155       <oid_inerrors>IF-MIB::ifInErrors.%[name]</oid_inerrors> 
    156       <oid_outerrors>IF-MIB::ifOutErrors.%[name]</oid_outerrors> 
    157       <oid_indiscards>IF-MIB::ifInDiscards.%[name]</oid_indiscards> 
    158       <oid_outdiscards>IF-MIB::ifOutDiscards.%[name]</oid_outdiscards> 
    159       <oid_inucastpkts>IF-MIB::ifHCInUcastPkts.%[name]</oid_inucastpkts> 
    160       <oid_outucastpkts>IF-MIB::ifHCOutUcastPkts.%[name]</oid_outucastpkts> 
    161       <oid_inbcastpkts>IF-MIB::ifHCInBroadcastPkts.%[name]</oid_inbcastpkts> 
    162       <oid_outbcastpkts>IF-MIB::ifHCOutBroadcastPkts.%[name]</oid_outbcastpkts> 
     152      <oid_description>IF-MIB::ifName.%[:ccns:name]</oid_description> 
     153      <oid_alias>IF-MIB::ifAlias.%[:ccns:name]</oid_alias> 
     154      <oid_speed>IF-MIB::ifSpeed.%[:ccns:name]</oid_speed> 
     155      <oid_adminstatus>IF-MIB::ifAdminStatus.%[:ccns:name]</oid_adminstatus> 
     156      <oid_operstatus>IF-MIB::ifOperStatus.%[:ccns:name]</oid_operstatus> 
     157      <oid_inoctets>IF-MIB::ifHCInOctets.%[:ccns:name]</oid_inoctets> 
     158      <oid_outoctets>IF-MIB::ifHCOutOctets.%[:ccns:name]</oid_outoctets> 
     159      <oid_inerrors>IF-MIB::ifInErrors.%[:ccns:name]</oid_inerrors> 
     160      <oid_outerrors>IF-MIB::ifOutErrors.%[:ccns:name]</oid_outerrors> 
     161      <oid_indiscards>IF-MIB::ifInDiscards.%[:ccns:name]</oid_indiscards> 
     162      <oid_outdiscards>IF-MIB::ifOutDiscards.%[:ccns:name]</oid_outdiscards> 
     163      <oid_inucastpkts>IF-MIB::ifHCInUcastPkts.%[:ccns:name]</oid_inucastpkts> 
     164      <oid_outucastpkts>IF-MIB::ifHCOutUcastPkts.%[:ccns:name]</oid_outucastpkts> 
     165      <oid_inbcastpkts>IF-MIB::ifHCInBroadcastPkts.%[:ccns:name]</oid_inbcastpkts> 
     166      <oid_outbcastpkts>IF-MIB::ifHCOutBroadcastPkts.%[:ccns:name]</oid_outbcastpkts> 
     167    </config> 
     168    <config id="disk"> 
     169      <oid_path>UCD-SNMP-MIB::dskPath.%[:ccns:name]</oid_path> 
     170      <oid_device>UCD-SNMP-MIB::dskDevice.%[:ccns:name]</oid_device> 
     171      <oid_total>UCD-SNMP-MIB::dskTotal.%[:ccns:name]</oid_total> 
     172      <oid_avail>UCD-SNMP-MIB::dskAvail.%[:ccns:name]</oid_avail> 
     173      <oid_used>UCD-SNMP-MIB::dskUsed.%[:ccns:name]</oid_used> 
     174      <oid_pctspace>UCD-SNMP-MIB::dskPercent.%[:ccns:name]</oid_pctspace> 
     175      <oid_pctinodes>UCD-SNMP-MIB::dskPercentNode.%[:ccns:name]</oid_pctinodes> 
     176      <oid_errorflag>UCD-SNMP-MIB::dskErrorFlag.%[:ccns:name]</oid_errorflag> 
     177      <oid_errormsg>UCD-SNMP-MIB::dskErrorMsg.%[:ccns:name]</oid_errormsg> 
    163178    </config> 
    164179  </config_templates>