Hi

I have written a module for our DSLAMS we use and I have run into a small 
problem.

If the DSLAM is alarming in a critical state (ie a card has died) and the DSLAM 
is rebooted (DOWN/UP notification).  Once the DSLAM comes back online, it 
remains in a critical state, even though its meeting all the clear conditions. 
The condition field is blank, which in theory means that its not matching any 
critical states, and from what I can tell, it should be matching all clear 
states.

This only happens if the DLAMS is rebooted while in a critical state. If it's 
in a clear state and rebooted, then it's not a problem.

I can't paste the whole module as the mailing list complains about it being too 
big, but here are my alarm points.  Do I need to also have an device-threshold 
section too?

<snmp-device-alarmpoints>
        CPUUsage:  clear        (${system.cpu10} < ${CPU Busy - Warning})       
        "Warning - High 10 Minute CPU Average"
        Memory:    clear        (${system.freemem} > ${Low Memory - Warning})   
"Warning - Low Memory"
        CardTemp1: clear        ((${shePhysCardTemperatureCurrent1} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent1} != 255))       
"Warning Tempature - Card 1"
        CardTemp2: clear        ((${shePhysCardTemperatureCurrent2} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent2} != 255))       
"Warning Tempature - Card 2"
        CardTemp3: clear        ((${shePhysCardTemperatureCurrent3} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent3} != 255))       
"Warning Tempature - Card 3"
        CardTemp4: clear        ((${shePhysCardTemperatureCurrent4} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent4} != 255))       
"Warning Tempature - Card 4"
        CardTemp5: clear        ((${shePhysCardTemperatureCurrent5} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent5} != 255))       
"Warning Tempature - Card 5"
        CardTemp6: clear        ((${shePhysCardTemperatureCurrent6} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent6} != 255))       
"Warning Tempature - Card 6"
        CardTemp7: clear        ((${shePhysCardTemperatureCurrent7} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent7} != 255))       
"Warning Tempature - Card 7"
        CardTemp8: clear        ((${shePhysCardTemperatureCurrent8} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent8} != 255))       
"Warning Tempature - Card 8"
        CardTemp9: clear        ((${shePhysCardTemperatureCurrent9} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent9} != 255))       
"Warning Tempature - Card 9"
        CardTemp10: clear       ((${shePhysCardTemperatureCurrent10} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent10} != 255))     
"Warning Tempature - Card 10"
        CardTemp11: clear       ((${shePhysCardTemperatureCurrent11} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent11} != 255))     
"Warning Tempature - Card 11"
        CardTemp12: clear       ((${shePhysCardTemperatureCurrent12} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent12} != 255))     
"Warning Tempature - Card 12"
        CardTemp13: clear       ((${shePhysCardTemperatureCurrent13} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent13} != 255))     
"Warning Tempature - Card 13"
        CardTemp14: clear       ((${shePhysCardTemperatureCurrent14} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent14} != 255))     
"Warning Tempature - Card 14"
        CardTemp15: clear       ((${shePhysCardTemperatureCurrent15} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent15} != 255))     
"Warning Tempature - Card 15"
        CardTemp16: clear       ((${shePhysCardTemperatureCurrent16} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent16} != 255))     
"Warning Tempature - Card 16"
        CardTemp17: clear       ((${shePhysCardTemperatureCurrent17} < ${Card 
Temperature - Minor}) && (${shePhysCardTemperatureCurrent17} != 255))     
"Warning Tempature - Card 17"
        CardState1: clear       ((${shePhysCardAdminState1} == 1) && 
((${ShePhysAvailabilityStateType1} == 1) && (${shePhysCardOperState1} == 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState2: clear       ((${shePhysCardAdminState2} == 1) && 
((${ShePhysAvailabilityStateType2} == 1) && (${shePhysCardOperState2} == 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState3: clear       ((${shePhysCardAdminState3} == 1) && 
((${ShePhysAvailabilityStateType3} == 1) && (${shePhysCardOperState3} == 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState4: clear       ((${shePhysCardAdminState4} == 1) && 
((${ShePhysAvailabilityStateType4} == 1) && (${shePhysCardOperState4} == 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState5: clear       ((${shePhysCardAdminState5} == 1) && 
((${ShePhysAvailabilityStateType5} == 1) && (${shePhysCardOperState5} == 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState6: clear       ((${shePhysCardAdminState6} == 1) && 
((${ShePhysAvailabilityStateType6} == 1) && (${shePhysCardOperState6} == 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState7: clear       ((${shePhysCardAdminState7} == 1) && 
((${ShePhysAvailabilityStateType7} == 1) && (${shePhysCardOperState7} == 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState8: clear       ((${shePhysCardAdminState8} == 1) && 
((${ShePhysAvailabilityStateType8} == 1) && (${shePhysCardOperState8} == 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState9: clear       ((${shePhysCardAdminState9} == 1) && 
((${ShePhysAvailabilityStateType9} == 1) && (${shePhysCardOperState9} == 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState10: clear      ((${shePhysCardAdminState10} == 1) && 
((${ShePhysAvailabilityStateType10} == 1) && (${shePhysCardOperState10} == 1))) 
  "Critial - Card 1 in unavaliable state"
        CardState11: clear      ((${shePhysCardAdminState11} == 1) && 
((${ShePhysAvailabilityStateType11} == 1) && (${shePhysCardOperState11} == 1))) 
  "Critial - Card 1 in unavaliable state"
        CardState12: clear      ((${shePhysCardAdminState12} == 1) && 
((${ShePhysAvailabilityStateType12} == 1) && (${shePhysCardOperState12} == 1))) 
  "Critial - Card 1 in unavaliable state"
        CardState13: clear      ((${shePhysCardAdminState13} == 1) && 
((${ShePhysAvailabilityStateType13 == 1) && (${shePhysCardOperState13} == 1)))  
  "Critial - Card 1 in unavaliable state"
        CardState14: clear      ((${shePhysCardAdminState14} == 1) && 
((${ShePhysAvailabilityStateType14 == 1) && (${shePhysCardOperState14} == 1)))  
  "Critial - Card 1 in unavaliable state"
        CardState15: clear      ((${shePhysCardAdminState15} == 1) && 
((${ShePhysAvailabilityStateType15} == 1) && (${shePhysCardOperState15} == 1))) 
  "Critial - Card 1 in unavaliable state"
        CardState16: clear      ((${shePhysCardAdminState16} == 1) && 
((${ShePhysAvailabilityStateType16} == 1) && (${shePhysCardOperState16} == 1))) 
  "Critial - Card 1 in unavaliable state"
        CardState17: clear      ((${shePhysCardAdminState17} == 1) && 
((${ShePhysAvailabilityStateType17} == 1) && (${shePhysCardOperState17} == 1))) 
  "Critial - Card 1 in unavaliable state"

       CPUUsage:  critical     (${system.cpu10} > ${CPU Busy - Critical})      
"Critical - High 10 Minute CPU Average"
        Memory:    critical     (${system.freemem} < ${Low Memory - Critical})  
"Critical - Low Memory"
        CardState1: critical    ((${shePhysCardAdminState1} == 1) && 
((${ShePhysAvailabilityStateType1} != 1) || (${shePhysCardOperState1} != 1)))   
   "Critial - Card 1 in unavaliable state"
        CardState2: critical    ((${shePhysCardAdminState2} == 1) && 
((${ShePhysAvailabilityStateType2} != 1) || (${shePhysCardOperState2} != 1)))   
   "Critial - Card 2 in unavaliable state"
        CardState3: critical    ((${shePhysCardAdminState3} == 1) && 
((${ShePhysAvailabilityStateType3} != 1) || (${shePhysCardOperState3} != 1)))   
   "Critial - Card 3 in unavaliable state"
        CardState4: critical    ((${shePhysCardAdminState4} == 1) && 
((${ShePhysAvailabilityStateType4} != 1) || (${shePhysCardOperState4} != 1)))   
   "Critial - Card 4 in unavaliable state"
        CardState5: critical    ((${shePhysCardAdminState5} == 1) && 
((${ShePhysAvailabilityStateType5} != 1) || (${shePhysCardOperState5} != 1)))   
   "Critial - Card 5 in unavaliable state"
        CardState6: critical    ((${shePhysCardAdminState6} == 1) && 
((${ShePhysAvailabilityStateType6} != 1) || (${shePhysCardOperState6} != 1)))   
   "Critial - Card 6 in unavaliable state"
        CardState7: critical    ((${shePhysCardAdminState7} == 1) && 
((${ShePhysAvailabilityStateType7} != 1) || (${shePhysCardOperState7} != 1)))   
   "Critial - Card 7 in unavaliable state"
        CardState8: critical    ((${shePhysCardAdminState8} == 1) && 
((${ShePhysAvailabilityStateType8} != 1) || (${shePhysCardOperState8} != 1)))   
   "Critial - Card 8 in unavaliable state"
        CardState9: critical    ((${shePhysCardAdminState9} == 1) && 
((${ShePhysAvailabilityStateType9} != 1) || (${shePhysCardOperState9} != 1)))   
   "Critial - Card 9 in unavaliable state"
        CardState10: critical   ((${shePhysCardAdminState10} == 1) && 
((${ShePhysAvailabilityStateType10} != 1) || (${shePhysCardOperState10} != 1))) 
  "Critial - Card 10 in unavaliable state"
        CardState11: critical   ((${shePhysCardAdminState11} == 1) && 
((${ShePhysAvailabilityStateType11} != 1) || (${shePhysCardOperState11} != 1))) 
  "Critial - Card 11 in unavaliable state"
        CardState12: critical   ((${shePhysCardAdminState12} == 1) && 
((${ShePhysAvailabilityStateType12} != 1) || (${shePhysCardOperState12} != 1))) 
  "Critial - Card 12 in unavaliable state"
        CardState13: critical   ((${shePhysCardAdminState13} == 1) && 
((${ShePhysAvailabilityStateType13} != 1) || (${shePhysCardOperState13} != 1))) 
  "Critial - Card 13 in unavaliable state"
        CardState14: critical   ((${shePhysCardAdminState14} == 1) && 
((${ShePhysAvailabilityStateType14} != 1) || (${shePhysCardOperState14} != 1))) 
  "Critial - Card 14 in unavaliable state"
        CardState15: critical   ((${shePhysCardAdminState15} == 1) && 
((${ShePhysAvailabilityStateType15} != 1) || (${shePhysCardOperState15} != 1))) 
  "Critial - Card 15 in unavaliable state"
        CardState16: critical   ((${shePhysCardAdminState16} == 1) && 
((${ShePhysAvailabilityStateType16} != 1) || (${shePhysCardOperState16} != 1))) 
  "Critial - Card 16 in unavaliable state"
        CardState17: critical   ((${shePhysCardAdminState17} == 1) && 
((${ShePhysAvailabilityStateType17} != 1) || (${shePhysCardOperState17} != 1))) 
  "Critial - Card 17 in unavaliable state"
</snmp-device-alarmpoints>

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

Reply via email to