Hi,
I have the following problem that I am trying to solve without much success until now. I have some log files that have their names changed once they reach a certain size limit. Then logging is shifted into another file. So, using zabbix items like log and vfs.file.time isn't possible if I want data about the current file.
What I tried to first creating an item to get the current file name. Then I configured log and vfs.file.time items using the macro {host:file_name_item.last(0)} as file name parameter. This didn't work. is it supposed to work?
I thought about using a symbolic link to the current file. But this would require a script to update the link regularly.
Any ideas how to tackle this problem using zabbix only. Thanks in advance.
Ibrahim
I have the following problem that I am trying to solve without much success until now. I have some log files that have their names changed once they reach a certain size limit. Then logging is shifted into another file. So, using zabbix items like log and vfs.file.time isn't possible if I want data about the current file.
What I tried to first creating an item to get the current file name. Then I configured log and vfs.file.time items using the macro {host:file_name_item.last(0)} as file name parameter. This didn't work. is it supposed to work?
I thought about using a symbolic link to the current file. But this would require a script to update the link regularly.
Any ideas how to tackle this problem using zabbix only. Thanks in advance.
Ibrahim
Comment