-
New Feature Request
-
Resolution: Duplicate
-
Major
-
None
-
None
In a rather complex trigger expression LLD Marco is not replaced inside the timeleft function.
Trigger prototype:
{ph-os-filesystems:vfs.fs.size[{#FSNAME},free].last(0)} >= 0 and {ph-os-filesystems:echo[{#FSTYPE}|{#FSNAME}].regexp("^tmpfs\|")} = 0 and {ph-os-filesystems:echo[{#FSTYPE}|{#FSNAME}].regexp("/ceph/osd")} = 0 and ( {$FS_FREE_TIMELEFT_P:"{#FSNAME}"} > 0 and {ph-os-filesystems:vfs.fs.size[{#FSNAME},free].timeleft({$FS_FREE_TIMELEFT_P:"{#FSNAME}"},,0)} < {$FS_FREE_TIMELEFT_P:"{#FSNAME}"} )
Result after discovery:
{myhost.de:vfs.fs.size[/boot,free].last(0)} >= 0 and {myhost.de:echo[ext2|/boot].regexp("^tmpfs\|")} = 0 and {myhost.de:echo[ext2|/boot].regexp("/ceph/osd")} = 0 and ( {myhost.de:vfs.fs.size[/boot,free].timeleft({$FS_FREE_TIMELEFT_P:"{#FSNAME}"},,0)}<{$FS_FREE_TIMELEFT_P:"/boot"} )
Expected result:
{myhost.de:vfs.fs.size[/boot,free].last(0)} >= 0 and {myhost.de:echo[ext2|/boot].regexp("^tmpfs\|")} = 0 and {myhost.de:echo[ext2|/boot].regexp("/ceph/osd")} = 0 and ( {myhost.de:vfs.fs.size[/boot,free].timeleft({$FS_FREE_TIMELEFT_P:"/boot"},,0)}<{$FS_FREE_TIMELEFT_P:"/boot"} )
So in the timeleft function
{$FS_FREE_TIMELEFT_P:"{#FSNAME}"}
wasn't replaced.
- duplicates
-
ZBXNEXT-1667 support lld macros in trigger function parameters
- Closed