-
Type:
Incident report
-
Resolution: Won't fix
-
Priority:
Major
-
None
-
Affects Version/s: 2.4.3
-
Component/s: Agent (G)
-
None
-
Environment:Linux zabbix2-4-FE 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64 GNU/Linux
Debian GNU/Linux 7 \n \l
Hi !
I can't get the specified output when I try :
zabbix_agentd -t vfs.file.regexp[/etc/passwd,"^zabbix:.:([0-9]+)",,,,\1]
vfs.file.regexp[/etc/passwd,^zabbix:.:([0-9]+),,,,1] [s|1]
root@zabbix2-4-FE:~# cat /etc/passwd
zabbix:x:1001:1001::/home/zabbix:/bin/sh
Example in the documentation at https://www.zabbix.com/documentation/2.2/manual/config/items/itemtypes/zabbix_agent
My goal is monitoring read-only file system with the command
zabbix_get -s 127.0.0.1 -k vfs.file.regexp[/etc/mtab,"ext (.*) ",,,,] or best with zabbix_agentd -t vfs.file.regmatch[/etc/mtab,"ext?.[(|)|\,]rw[ |(|)|\,]."] (but comma in regexp is not supported (bug ?))