Changeset c04dcf560cc5f0df021d665247f1b6d34352c166

Show
Ignore:
Timestamp:
02/24/08 06:11:47 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1203833507 +0000
git-parent:

[ce72dc2cb9539d80628ed5642eaabe6e8bac9f0d]

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

hoy cow, reminded of how not simple SNMP is

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/Makefile.in

    re3c8f10 rc04dcf5  
    1616top_srcdir=@top_srcdir@ 
    1717 
    18 MODULES=ping_icmp.@MODULEEXT@ http.@MODULEEXT@ 
     18MODULES=ping_icmp.@MODULEEXT@ http.@MODULEEXT@ snmp.@MODULEEXT@ 
    1919 
    2020all:    $(MODULES) 
     
    2626        $(CC) $(CPPFLAGS) $(SHCFLAGS) -I$(top_srcdir)/src/serf @SERFCFLAGS@ -c http.c -o $@ 
    2727 
     28snmp.@MODULEEXT@:       snmp.lo 
     29        $(MODULELD) $(LDFLAGS) -o $@ snmp.lo -lnetsnmp 
     30 
    2831.lo.@MODULEEXT@: 
    2932        $(MODULELD) $(LDFLAGS) -o $@ $< 
  • src/sample.conf

    r2656d6c rc04dcf5  
    2424  </logs> 
    2525  <modules directory="./modules"> 
     26<!-- 
    2627    <module image="ping_icmp" name="ping_icmp" /> 
    2728    <http image="http"> 
    2829      <module name="resmon" /> 
    2930      <module name="resmon_part" /> 
    30       <module name="http" />> 
     31      <module name="http" /> 
    3132    </http> 
     33--> 
     34    <module image="snmp" name="snmp" /> 
    3235  </modules> 
    3336  <listeners> 
     
    4750    </consoles> 
    4851  </listeners> 
    49   <checks
     52  <checks max_initial_stutter="5"
    5053    <check uuid="1b4e28ba-2fa1-11d2-883f-b9b761bde3fb" module="ping_icmp" target="10.80.116.4" period="15000" timeout="14000"/> 
    5154    <dc1 timeout="30000" period="60000"> 
     
    7881        </parts> 
    7982      </resmon> 
     83      <switches module="snmp" period="30000"> 
     84        <config> 
     85          <oid_description>IF-MIB::ifDescr.%[name]</oid_description> 
     86          <oid_alias>IF-MIB::ifAlias.%[name]</oid_alias> 
     87          <oid_speed>IF-MIB::ifSpeed.%[name]</oid_speed> 
     88          <oid_adminstatus>IF-MIB::ifAdminStatus.%[name]</oid_adminstatus> 
     89          <oid_operstatus>IF-MIB::ifOperStatus.%[name]</oid_operstatus> 
     90          <oid_inoctets>IF-MIB::ifInOctets.%[name]</oid_inoctets> 
     91          <oid_outoctets>IF-MIB::ifOutOctets.%[name]</oid_outoctets> 
     92          <oid_inerrors>IF-MIB::ifInErrors.%[name]</oid_inerrors> 
     93          <oid_outerrors>IF-MIB::ifOutErrors.%[name]</oid_outerrors> 
     94          <oid_indiscards>IF-MIB::ifInDiscards.%[name]</oid_indiscards> 
     95          <oid_outdiscards>IF-MIB::ifOutDiscards.%[name]</oid_outdiscards> 
     96          <oid_inucastpkts>IF-MIB::ifInUcastPkts.%[name]</oid_inucastpkts> 
     97          <oid_outucastpkts>IF-MIB::ifOutUcastPkts.%[name]</oid_outucastpkts> 
     98          <oid_innucastpkts>IF-MIB::ifInNUcastPkts.%[name]</oid_innucastpkts> 
     99          <oid_outnucastpkts>IF-MIB::ifOutNUcastPkts.%[name]</oid_outnucastpkts> 
     100        </config> 
     101        <switch target="10.80.116.3"> 
     102          <check uuid="1b4e28ba-2fa1-11d2-883f-e9b761bde3fb" name="1" /> 
     103          <check uuid="1b4e28ba-3fa1-11d2-883f-e9b761bde3fb" name="2" /> 
     104          <check uuid="1b4e29ba-3fa1-11d2-883f-e9b761bde3fb" name="3" /> 
     105        </switch> 
     106      </switches> 
    80107    </dc1> 
    81108  </checks>