Ad Widget

Collapse

eventlog[MSA] with srt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • -pat-
    Junior Member
    • Sep 2006
    • 13

    #1

    eventlog[MSA] with srt

    hello,

    I have in my eventLog:

    Timestamp Local time Source Severity Value
    [2006.Sep.19 10:50:37] 2006.Sep.19 10:53:04 Storage Agents Warning External Array Accelerator Status Change. The array accelerator board attached to the external controller in I/O slot 2 of array "SGM04511GZ" has a new status of 4. (Accelerator status values: 1=other, 2=notConfigured, 3=enabled, 4=tmpDisabled, 5=permDisabled) [SNMP TRAP: 16017 in CPQFCA.MIB]
    [2006.Sep.19 10:50:37] 2006.Sep.19 10:53:04 Storage Agents Warning External Array Accelerator Status Change. The array accelerator board attached to the external controller in I/O slot 1 of array "SGM04511GZ" has a new status of 4. (Accelerator status values: 1=other, 2=notConfigured, 3=enabled, 4=tmpDisabled, 5=permDisabled) [SNMP TRAP: 16017 in CPQFCA.MIB]
    [2006.Sep.19 10:50:37] 2006.Sep.19 10:53:04 Storage Agents Information External Array Physical Drive Status Change. The physical drive in port 4, bay 13 on array "SGM04511GZ" has a new status of 3. (Drive status values: 1=other, 2=unconfigured, 3=ok, 4=threshExceeded, 5=predictiveFailure, 6=failed) [SNMP TRAP: 16016 in CPQFCA.MIB]
    [2006.Sep.19 10:50:32] 2006.Sep.19 10:52:56 Storage Agents Warning External Array Logical Drive Status Change. Logical drive number 20 on array "SGM04511GZ" has a new status of 14. (Logical Drive status values: 1=other, 2=ok, 3=failed, 4=unconfigured, 5=recovering, 6=readyForRebuild, 7=rebuilding, 8=wrongDrive, 9=badConnect, 10=overheating, 11=shutdown, 12=expanding, 13=notAvailable, 14=queuedForExpansion) [SNMP TRAP: 16022 in CPQFCA.MIB]


    How I Can make Expression for triggers with in my line char ' " : ( ) - : and Function str ?

    Error in zabbix 1.1.1:
    Expression [{localhost:eventlog[MSA].srt(has a new status of 14. (Logical Drive status values: 1=other, 2=ok, 3=failed, 4=unconfigured, 5=recovering, 6=readyForRebuild, 7=rebuilding, 8=wrongDrive, 9=badConnect, 10=overheating, 11=shutdown, 12=expanding, 13=notAvailable, 14=queuedForExpansion))}] does not match to [server:key.func(param)]

    I tested \: \' \" \: \( \) \- \:

    Regards,

    -Pat-
    Last edited by -pat-; 26-09-2006, 10:56.
  • -pat-
    Junior Member
    • Sep 2006
    • 13

    #2
    In include/config.inc.php function validate_simple_expression($expression), ligne 660

    oulanbator:/opt/zabbix/frontends_php# diff /root/zabbix-1.1.2/frontends/php/include/config.inc.php include/config.inc.php
    660,661c660,663
    < if (eregi('^\{([0-9a-zA-Z\_\.-]+)\[]\[0-9a-zA-Z\_\*\/\.\,\:\(\)\+ -]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$', $expression, $arr))
    < {
    ---
    > // if (eregi('^\{([0-9a-zA-Z\_\.-]+)\[]\[0-9a-zA-Z\_\*\/\.\,\:\(\)\+ -]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$', $expression, $arr))
    > //Patch
    > if(eregi('^\{([0-9a-zA-Z\_\.-]+)\[]\[0-9a-zA-Z\_\*\/\.\,\:\(\)\+ -]+)\.([a-z]{3,11})\(([\(\)\'=:#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$', $expression, $arr))
    > {

    Already problem with char ".


    Regards,

    -Pat-

    Comment

    Working...