Ad Widget

Collapse

DELL Compellent Trigger for traps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbixx
    Member
    • Jul 2012
    • 71

    #1

    DELL Compellent Trigger for traps

    Hello i will create a template for the dell compellnt.
    the compellning is sendig traps to zabbix server.

    this is a large storage with over 420 Disk!

    one trap for examble for bad (defekt disk looks like this (is exacktly this)

    aim catching this trap over trap fallback!

    Code:
    03:46:49 2014/10/17 PDU INFO:
      notificationtype               TRAP
      version                        0
      receivedfrom                   UDP: [14x.xx.xx.xxx]:12907->[14x.xx.xx.xxx]
      errorstatus                    0
      messageid                      0
      community                      public
      transactionid                  13034
      errorindex                     0
      requestid                      0
    VARBINDS:
      DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (729387439) 84 days, 10:04:34.39
      SNMPv2-MIB::snmpTrapOID.0      type=6  value=OID: Dell-Vendor-MIB::dell.11000.2000.500.1.251.0.202
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.10.0 type=66 value=Gauge32: 24008
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.9.0 type=4  value=STRING: "13,1,36"
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.14.1.2.384 type=66 value=Gauge32: 384
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.14.1.3.384 type=66 value=Gauge32: 2
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.14.1.4.384 [B][SIZE="6"]type=4  value=STRING: "13-09"[/SIZE][/B]
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.14.1.5.384 type=2  value=INTEGER: 2
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.14.1.6.384 type=4  value=STRING: "[SIZE="6"][B]BadRegionsPresent[/B][/SIZE] uAllocs unbou"
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.15.1.4.13 type=4  value=STRING: "Enclosure - 13"
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.41.0 type=4  value=STRING: "Disk 405 SN: 9XG4435S failed [BadRegionsPresent] and is ready to be removed"
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.40.0 type=4  value=STRING: "Disk is Down: Schedule disk replacement."
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.45.1.2.384 type=66 value=Gauge32: 384
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.43.0 type=2  value=INTEGER: 2
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.29.1.8.1 type=4  value=STRING: "14x.xx.xxx.xxx"
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.29.1.11.1 type=4  value=""
      Dell-Vendor-MIB::dell.11000.2000.500.1.2.29.1.12.1 type=66 value=Gauge32: 128
      SNMP-COMMUNITY-MIB::snmpTrapAddress.0 type=64 value=IpAddress: 14x.xx.xx.xxx
      SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 type=4  value=STRING: "public"
      SNMPv2-MIB::snmpTrapEnterprise.0 type=6  value=OID: Dell-Vendor-MIB::dell.11000.2000.500.1.251
    my Idea was to catch this event by searching for text

    Code:
    {DELL_COMPELLENT_24008:snmptrap.fallback.str([SIZE="6"][B]type=4  value=STRING: "13-19[/B][/SIZE]")}=1 & {DELL_COMPELLENT_24008:snmptrap.fallback.str(health code change: [SIZE="6"][B]BadRegionsPresent[/B][/SIZE])}=1 & {TRIGGER.VALUE}=0 | {TRIGGER.VALUE}=1
    but a have to create this trigger more than 1000 times :-(

    how to do this with script i dont want click ant edit more than trigger!!! SOS

    if tis template is ready i can share this for the comunity!

    reg. zabbix
    Last edited by zabbixx; 03-06-2015, 23:25.
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    That depends why you have to do what a thousand times.
    Generally I'd suggest to take a look at the Zabbix API and/or Low-Level-Discovery - as the case may be

    Comment

    • zabbixx
      Member
      • Jul 2012
      • 71

      #3
      Originally posted by BDiE8VNy
      That depends why you have to do what a thousand times.
      Generally I'd suggest to take a look at the Zabbix API and/or Low-Level-Discovery - as the case may be
      hey thx for the api ))))

      i will look in to later, i have now a javascript that make new forms data, so i only need to press submit 1000 times ))))

      dont know why the javascript submit() funktion dont works.

      Comment

      • zabbixx
        Member
        • Jul 2012
        • 71

        #4
        juhu submit() function works in InternetExplorer ))))

        see scripshots
        Attached Files

        Comment

        • zabbixx
          Member
          • Jul 2012
          • 71

          #5
          Hello Again :-)

          we get new Shelves to our compellent (new 72 Disks)
          that are again 144 new Triggers!!!!

          maybe is there some posibility to Regex the snmp trap item ?

          The problem is: I want a email alert with the exactly index of the disk.


          for example i want to know if the disk 13-09 has bad sectors i look to the snmptrap.fallback and search there for strings (trigger Expresion)

          this trigger let the Admin know that exactly this thisk is failed
          Code:
          Dell-Vendor-MIB::dell.11000.2000.500.1.2.14.1.4.384 type=4  value=STRING: "13-09"
          and 
          Dell-Vendor-MIB::dell.11000.2000.500.1.2.14.1.6.384 type=4  value=STRING: "BadRegionsPresent uAllocs unbou"
          the same happens if compellet rebuilds the raid an the disk is ready for replasment!

          this trigger let the Admin know that the disk can be replaced
          Code:
          type=4  value=STRING: "13-09"
          and 
          ReadyForRemovalCalled
          so i need 2 Triggers For 1 Disk!


          is there a posibility to create one triger for all the disk, and finde out exatcly the index of the failed disk ?
          Last edited by zabbixx; 03-06-2015, 23:40.

          Comment

          • zabbixx
            Member
            • Jul 2012
            • 71

            #6
            Here is the script that can create the triggers for you



            PS: there a a bug, you canot manage more than 1000 trigger in the gui

            Comment

            • zabbixx
              Member
              • Jul 2012
              • 71

              #7
              Help my to create a template for DELL Compellent
              or just exchange you expereance whit this storage here

              Comment

              Working...