Ad Widget

Collapse

Regexp in Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Valentina
    Junior Member
    • Feb 2019
    • 9

    #1

    Regexp in Trigger

    Hello!
    I have check disk on Oracle. I am following by free space of directory /u01
    On Zabbix I have item: /usr/lib64/nagios/plugins/check_disk -w 20000 -c 10000 -p /u01

    It is working and it back meaning:
    2019-03-04 15:37:34 DISK OK - free space: / 291250 MB (51% inode=99%);| /=269206MB;570456;580456;0;590456
    I took expresion form Nagios (photo in attachments):

    I want to do Trigger. For exampple if free space less 20% than "Severity: Hight"

    But now I see problem on Zabbix (pic="Mistake").
    I tried to compare meaning of Item with 114216(20%). But it is not working.

    I tried to do regexp: \d{2,3}%\s
    Than I can get meanung "51% "

    But than I do expression smth (\d{2,3}%\s{IW_oracle:ssh.run[dbstatus].last()})<20% New Trigger say "Error" and didnt save.

    Please help me with check.

    Thank you very much!

    Valentina.


    Attached Files
Working...