Ad Widget

Collapse

Help building complex expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agpritchett
    Junior Member
    • Nov 2014
    • 3

    #1

    Help building complex expression

    Hi all,
    I'm trying to build a complicated expression for filesystem monitoring.

    In essence, we have a bunch of aix servers (if you're not familiar, pretend it's linux). Each of these servers have the standard filesystems (/, /usr, /var, /tmp, etc). There are some filesystems which are shared among the servers (/software, and /oracle for example). One of the things we want to use zabbix for is to monitor the filesystems free space. Which works no problem, but if /software fills up, we don't want to get triggers for multiple servers. This is the expression that we've determined, but it doesn't seem to work:

    ({host.name1}=SGM141 & {Template OS AIX:vfs.fs.size[/oracle,pused].last()} > 90)
    |
    ({host.name1}=SGM141 & {Template OS AIX:vfs.fs.size[/software,pused].last()} > 90)
    |
    {Template OS AIX:vfs.fs.size[/,pused].last()}>90
    |
    {Template OS IX:vfs.fs.size[/usr,pused].last()}>90
    |
    {Template OS AIX:vfs.fs.size[/var,pused].last()}>90
    |
    {Template OS AIX:vfs.fs.size[/tmp,pused].last()}>90
    |
    {Template OS IX:vfs.fs.size[/opt,pused].last()}>90

    So, in essence what I'm trying to do is say that for all systems, monitor all the filesystems, and for SGM141, monitor /oracle and /software.

    I can't seem to get zabbix to allow this, though, as it keeps telling me that I have an error in my expression.

    Can anyone point me in the right direction?

    Thanks!
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    The macro {HOST.NAME<1-9>} is unfortunatelly not supported in Trigger expressions. See Macros supported by location

    Comment

    Working...