Ad Widget

Collapse

Trigger Expression Limit?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jbm
    Junior Member
    • Jan 2010
    • 3

    #1

    Trigger Expression Limit?

    I'm trying to create a trigger which will be used for an image item in a map to indicate that there is a problem with one or more of a group of ~10 servers. This involves creating a trigger with around 30 expressions, linked with an OR. I've found I'm able to enter the expression as:

    {server01:icmppingsec[,,,,,].last(0)}=0 | {server01:ssh.last(0)}=0 | {server01:ssh.run[load01,,,].last(0)}>10 |
    {server02:icmppingsec[,,,,,].last(0)}=0 | {server02:ssh.last(0)}=0 | {server02:ssh.run[load01,,,].last(0)}>10 |
    {server03:icmppingsec[,,,,,].last(0)}=0 | {server03:ssh.last(0)}=0 | {server03:ssh.run[load01,,,].last(0)}>10 |
    {server04:icmppingsec[,,,,,].last(0)}=0 | {server04:ssh.last(0)}=0 | {server04:ssh.run[load01,,,].last(0)}>10 |
    {server05:icmppingsec[,,,,,].last(0)}=0 | {server05:ssh.last(0)}=0 | {server05:ssh.run[load01,,,].last(0)}>10 |
    {server06:icmppingsec[,,,,,].last(0)}=0 | {server06:ssh.last(0)}=0 | {server06:ssh.run[load01,,,].last(0)}>10 |
    {server07:icmppingsec[,,,,,].last(0)}=0 | {server07:ssh.last(0)}=0 | {server07:ssh.run[load01,,,].last(0)}>10 |
    {server08:icmppingsec[,,,,,].last(0)}=0 | {server08:ssh.last(0)}=0 | {server08:ssh.run[load01,,,].last(0)}>10 |
    {server09:icmppingsec[,,,,,].last(0)}=0 | {server09:ssh.last(0)}=0 | {server09:ssh.run[load01,,,].last(0)}>10 |
    {server10:icmppingsec[,,,,,].last(0)}=0 | {server10:ssh.last(0)}=0 | {server10:ssh.run[load01,,,].last(0)}>10

    and then click 'Toggle input method' and the expressions show up correctly, lettered A-^. However when I save the trigger and go back to look, unly A-U have been saved, a total of 20 expressions. Is there a hard limit on the number of expressions in a trigger, and if so, anyone know where it could be modified in code?
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    do you still see full expression if using standard edit field ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • jbm
      Junior Member
      • Jan 2010
      • 3

      #3
      richlv,

      Before saving the expression, I can switch back and forth between the input methods and all checks show up. After saving, I only get the 20 expressions in the list/checkbox view, and in the standard / textbox view, the full expression is cut off at the same point.

      Comment

      • jbm
        Junior Member
        • Jan 2010
        • 3

        #4
        Looks like it is a hard limit:

        mysql> desc triggers;
        +-------------+---------------------+------+-----+---------+-------+
        | Field | Type | Null | Key | Default | Extra |
        +-------------+---------------------+------+-----+---------+-------+
        | triggerid | bigint(20) unsigned | NO | PRI | 0 | |
        | expression | varchar(255) | NO | | | |
        | description | varchar(255) | NO | | | |
        | url | varchar(255) | NO | | | |
        | status | int(11) | NO | MUL | 0 | |
        | value | int(11) | NO | MUL | 0 | |
        | priority | int(11) | NO | | 0 | |
        | lastchange | int(11) | NO | | 0 | |
        | dep_level | int(11) | NO | | 0 | |
        | comments | blob | NO | | NULL | |
        | error | varchar(128) | NO | | | |
        | templateid | bigint(20) unsigned | NO | | 0 | |
        | type | int(11) | NO | | 0 | |
        +-------------+---------------------+------+-----+---------+-------+
        13 rows in set (0.01 sec)

        Comment

        Working...