I am working to make a modified version of the  snmpv2c.cisco probe.

I have added check box parameters for the 9 possible  members of a
switch stack.

I have added the SNMP OID to check.

What I would like to do now, is only display and  alarm for the stack
parameters that had been checked, but I can no find any type  of
conditional options for the custom probe.  The following are examples
of the  logic I am trying to use.

NOTE: not all code is shown...

<parameters>
"stack1[true,false]" = "false" //default
"stack2[true,false]" = "false" //default
.
"stack9[true,false]" = "false" //default
</parameters>

snmp-device variables would check the OID for each possible stack
number 1-9 and set "stack1_val" to the response, since some of these
may not respond if that stack number is not provisioned, I then set
"stack1_status" to "stack1_val + 0" so that I don't really change the
response of the ones that did respond.

What I am trying to do next, is this type of logic, but I don't know
how to configure the "if" type logic in the custom probe. (Note that 2
means the stack module is OK)

// only make it critical if the value is not 2 and the parameter was
checked (TRUE)

critical:   If  ( ($stack1_status != 2) and ($stack1) )

It would also be nice in the snmp-device-display section, if I only
displayed the status for the stack numbers that had been checked.

Any advice/suggestions would be appreciated.


Thanks,

Steve
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]

Reply via email to