As suggested, I am trying to modify a "copy" of the Dartware Cisco probe to 
also check for the switch status values and set the "down" alarm if a stack 
member is down.

I am trying to use the checkbox value, so that people can indicate what stack 
members should be checked.

I keep getting these errors in the event logs when I try  to update the probes..

Any tips would be appreciated.

Thanks,

Steve


---------------Extracted from event log

---------------End of extraction


---------------Probe I am working on...

---------------End of Probe$ cat com11/16 15:57:32  dbug  
com.epicsystems.fwsm.zip: Invalid Probe Name.
11/16 15:57:32  dbug  com.smgtec.snmp.apcpdu.zip: Invalid Probe Name.
11/16 15:57:32  dbug  com.dartware.snmp.example.txt.zip: Invalid Probe Name.
11/16 15:57:32  dbug  com.dartware.snmp.prototype.txt.zip: Invalid Probe Name.
11/16 15:57:32  dbug  upsbundle.zip: Invalid Probe Name.
11/16 15:57:32  dbug  com.dartware.snmp.bestpowerups.txt.zip: Invalid Probe 
Name.
11/16 15:57:32  dbug  com.ecornell.snmp.cisco.vpn3000.zip: Invalid Probe Name.
11/16 15:57:32  dbug  ca.ubc.snmp.bgp.zip: Invalid Probe Name.
11/16 15:57:32  dbug  com.dartware.snmp.traffic.zip: Invalid Probe Name.
11/16 15:57:32  dbug  com.rit.snmpv2c.ciscostack: Line 91: Expected digits 0-9 
in "($(stack1. [<<<] status} != 2) and (${Check Stack number 1} == "true")"
11/16 15:57:32  dbug  com.rit.snmpv2c.ciscostack: Line 92: Expected digits 0-9 
in "($(stack2. [<<<] status} != 2) and (${Check Stack number 2} == "true")"
11/16 15:57:32  dbug  com.rit.snmpv2c.ciscostack: Line 93: Expected digits 0-9 
in "($(stack3. [<<<] status} != 2) and (${Check Stack number 3} == "true")"
11/16 15:57:32  dbug  com.rit.snmpv2c.ciscostack: Line 94: Expected digits 0-9 
in "($(stack4. [<<<] status} != 2) and (${Check Stack number 4} == "true")"
11/16 15:57:32  dbug  com.rit.snmpv2c.ciscostack: Line 95: Expected digits 0-9 
in "($(stack5. [<<<] status} != 2) and (${Check Stack number 5} == "true")"
11/16 15:57:32  dbug  com.rit.snmpv2c.ciscostack: Line 96: Expected digits 0-9 
in "($(stack6. [<<<] status} != 2) and (${Check Stack number 6} == "true")"
11/16 15:57:32  dbug  com.rit.snmpv2c.ciscostack: Line 97: Expected digits 0-9 
in "($(stack7. [<<<] status} != 2) and (${Check Stack number 7} == "true")"
11/16 15:57:32  dbug  com.rit.snmpv2c.ciscostack: Line 98: Expected digits 0-9 
in "($(stack8. [<<<] status} != 2) and (${Check Stack number 8} == "true")"
11/16 15:57:32  dbug  com.rit.snmpv2c.ciscostack: Line 99: Expected digits 0-9 
in "($(stack9. [<<<] status} != 2) and (${Check Stack number 9} == "true")"
11/16 15:57:33  ****  Probes reloaded: 0 new, 0 updated, 1 probe with 
errors..rit.snmpv2c.ciscostack
<!-- 
        SNMPv2c - Cisco (com.rit.snmpv2c.ciscostack)
        NOTE: This was coppied from the Dartware snmpv2c.cisco probe
        Copyright (c) 2002 Dartware, LLC. All rights reserved.
        Thanks to S. Erde and W. Schley for initial implementation.
-->

<header>
        type                    =       "custom-snmp"
        package                 =       "com.rit"
        probe_name              =       "snmpv2c.ciscostack"
        human_name              =       "SNMP - Cisco Stack (v2c)"
        version                 =       "1.1"
        address_type            =       "IP,AT"
        port_number             =       "161"
        
        flags                   =       "SNMPv2c"
        
</header>


<description>

²GB³SNMP - Cisco Stack (v2c)²P³

This probe monitors the CPU and Memory utilization and stack status of a Cisco 
switch using SNMPv2c.

²i³CPU Busy - Alarm²p³ is the ALARM threshold for CPU utilization. If the 
average percentage of CPU usage over a 1 minute interval exceeds this 
threshold, the device will enter the Alarm state.

²i³CPU Busy - Warning²p³ is the WARNING threshold for CPU utilization. If the 
average percentage CPU usage over a 1 minute interval exceeds this threshold, 
the device will enter the Warning state.

²i³Low Memory - Alarm²p³ is the ALARM threshold for the amount of free memory 
remaining (in bytes). If the free memory drops below this threshold, the device 
will enter the Alarm state.

²i³Low Memory - Warning²p³Êis the WARNING threshold for the amount of free 
memory remaining (in bytes). If the free memory drops below this threshold, the 
device will enter the Warning state.

</description>

<parameters>

"CPU Busy - Alarm"      = "90"
"CPU Busy - Warning"    = "80"
"Low Memory - Alarm"    = "1000"
"Low Memory - Warning"  = "5000"
"Check Stack number 1"  = "true"  //Default value is "true"
"Check Stack number 2"  = "false" //Default value is "false"
"Check Stack number 3"  = "false" //Default value is "false"
"Check Stack number 4"  = "false" //Default value is "false"
"Check Stack number 5"  = "false" //Default value is "false"
"Check Stack number 6"  = "false" //Default value is "false"
"Check Stack number 7"  = "false" //Default value is "false"
"Check Stack number 8"  = "false" //Default value is "false"
"Check Stack number 9"  = "false" //Default value is "false"

</parameters>

<snmp-device-variables>
        -- TYPE can be one of:  DEFAULT, PER-SECOND, PER-MINUTE, TOTAL-VALUE. 
        -- Use DEFAULT for string and integer values.
        
        -- MIB Variable --              ---     OID ---                         
        --- TYPE ---    --- LEGEND ---
        
        -- Reference: <ftp://ftp.cisco.com/pub/mibs/v1/OLD-CISCO-CPU-MIB.my>

        lcpu.busyPer,           1.3.6.1.4.1.9.2.1.56.0,         INTEGER,        
        "CPU Busy % (For last 5 Seconds in Scheduler)"
        lcpu.avgBusy1,          1.3.6.1.4.1.9.2.1.57.0,         INTEGER,        
        "1 Minute Average of CPU Busy %"
        lcpu.avgBusy5,          1.3.6.1.4.1.9.2.1.58.0,         INTEGER,        
        "5 Minute Average of CPU Busy %"

        -- Reference: <ftp://ftp.cisco.com/pub/mibs/v1/OLD-CISCO-MEMORY-MIB.my>
        lmem.freeMem,           1.3.6.1.4.1.9.2.1.8.0,          INTEGER,        
        "Free Memory in Bytes"

        -- Ref: 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.4.1.9.5.1.3.1.1.10>

        stack1.status,          1.3.6.1.4.1.9.5.1.3.1.1.10.1,   INTEGER,        
        "Operational status of stack instance 1"
        stack2.status,          1.3.6.1.4.1.9.5.1.3.1.1.10.2,   INTEGER,        
        "Operational status of stack instance 2"
        stack3.status,          1.3.6.1.4.1.9.5.1.3.1.1.10.3,   INTEGER,        
        "Operational status of stack instance 3"
        stack4.status,          1.3.6.1.4.1.9.5.1.3.1.1.10.4,   INTEGER,        
        "Operational status of stack instance 4"
        stack5.status,          1.3.6.1.4.1.9.5.1.3.1.1.10.5,   INTEGER,        
        "Operational status of stack instance 5"
        stack6.status,          1.3.6.1.4.1.9.5.1.3.1.1.10.6,   INTEGER,        
        "Operational status of stack instance 6"
        stack7.status,          1.3.6.1.4.1.9.5.1.3.1.1.10.7,   INTEGER,        
        "Operational status of stack instance 7"
        stack8.status,          1.3.6.1.4.1.9.5.1.3.1.1.10.8,   INTEGER,        
        "Operational status of stack instance 8"
        stack9.status,          1.3.6.1.4.1.9.5.1.3.1.1.10.9,   INTEGER,        
        "Operational status of stack instance 9"

</snmp-device-variables>

<snmp-device-thresholds>

        alarm:          ${lcpu.avgBusy1} > ${CPU Busy - Alarm}
        alarm:          ${lmem.freeMem} < ${Low Memory - Alarm}
        warning:        ${lcpu.avgBusy1} > ${CPU Busy - Warning}
        warning:        ${lmem.freeMem} < ${Low Memory - Warning}
        down:           ($(stack1.status} != 2) and (${Check Stack number 1} == 
"true")
        down:           ($(stack2.status} != 2) and (${Check Stack number 2} == 
"true")
        down:           ($(stack3.status} != 2) and (${Check Stack number 3} == 
"true")
        down:           ($(stack4.status} != 2) and (${Check Stack number 4} == 
"true")
        down:           ($(stack5.status} != 2) and (${Check Stack number 5} == 
"true")
        down:           ($(stack6.status} != 2) and (${Check Stack number 6} == 
"true")
        down:           ($(stack7.status} != 2) and (${Check Stack number 7} == 
"true")
        down:           ($(stack8.status} != 2) and (${Check Stack number 8} == 
"true")
        down:           ($(stack9.status} != 2) and (${Check Stack number 9} == 
"true")

</snmp-device-thresholds>

<snmp-device-display>

²B5³Cisco Device Information²0P³
  ²4³CPU Percent Busy:²0³ ${lcpu.busyPer} % ²3IG³(of last 5 seconds)²P0M³
  ²4³Avg. CPU % Busy:²0³  ${lcpu.avgBusy1} % ²3IG³(1 min.)²P0M³, 
${lcpu.avgBusy5} % ²3IG³(5 min.)²P0M³
  ²4³Available Memory:²0³ ${lmem.freeMem} bytes
²B5³Cisco Device Stack Status²0P³
  \2624\263Stack Switch #1 :\2620\263 ${stack1.status}
  \2624\263Stack Switch #2 :\2620\263 ${stack2.status}
  \2624\263Stack Switch #3 :\2620\263 ${stack3.status}
  \2624\263Stack Switch #4 :\2620\263 ${stack4.status}
  \2624\263Stack Switch #5 :\2620\263 ${stack5.status}
  \2624\263Stack Switch #6 :\2620\263 ${stack6.status}
  \2624\263Stack Switch #7 :\2620\263 ${stack7.status}
  \2624\263Stack Switch #8 :\2620\263 ${stack8.status}
  \2624\263Stack Switch #9 :\2620\263 ${stack9.status}
 
</snmp-device-display>
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]

Reply via email to