Zabbix external checks -
i executing external check returns me: ok 1 2 0 8 (this values alter every check)
does knows how can separate values items?
example:
external check status: ok in use: 1 busy: 2 problem: 0 free: 8
as each 1 of above item.
unfortunately, not possible destructure received string value parts using standard zabbix means item types.
however, items vfs.file.regexp[]
back upwards applying regular look , capturing output (see documentation details). in case, write output of script file , create 5 items, approximately follows:
vfs.file.regexp[/tmp/file.txt,^(\w+),,,,\1] vfs.file.regexp[/tmp/file.txt,^\w+ (\w+),,,,\1] vfs.file.regexp[/tmp/file.txt,^\w+ \w+ (\w+),,,,\1] vfs.file.regexp[/tmp/file.txt,^\w+ \w+ \w+ (\w+),,,,\1] vfs.file.regexp[/tmp/file.txt,^\w+ \w+ \w+ \w+ (\w+),,,,\1]
zabbix
No comments:
Post a Comment