Hi,
I want to monitor the number of entries (files and folders) in /etc. To do so, I have an item with that key: vfs.dir.count[/etc,,^\..+\.sw?$,,,0,,,,] The regex ^\..+\.sw?$ should prevent swap files generated by vim from getting counted.
However:
Do I misunderstand the documentation at https://www.zabbix.com/documentation...#vfs.dir.count - or is it really a bug?
Both server and agent2 have version 7.0.16
I want to monitor the number of entries (files and folders) in /etc. To do so, I have an item with that key: vfs.dir.count[/etc,,^\..+\.sw?$,,,0,,,,] The regex ^\..+\.sw?$ should prevent swap files generated by vim from getting counted.
However:
Code:
root@zabbix-server:/etc# zabbix_get -s localhost -k 'vfs.dir.count[/etc,,^\..+\.sw?$,,,0,,,,]' 250 root@zabbix-server:/etc# ls -A1 | wc -l 250 root@zabbix-server:/etc# touch .test.swp root@zabbix-server:/etc# ls -A1 | wc -l 251 root@zabbix-server:/etc# zabbix_get -s localhost -k 'vfs.dir.count[/etc,,^\..+\.sw?$,,,0,,,,]' 251
Both server and agent2 have version 7.0.16
Comment