The logrt.count documentation has the example:
with the description:
This description seems incorrect: the pattern "^logfile[0-9]{1,3}$" is for matching files in the log directory, and the description seems to say it's used for matching within log files.
Also, the "regexp" parameter is left blank. In this case does `logrt.count` return the number of file matches, or the number of lines in the files (or something else)?
So my question is, is this example valid and if so, should the description be something like:
or
Thanks in advance!
Code:
logrt.count["/home/zabbix/logs/^logfile[0-9]{1,3}$",,,100]
this item will count the number of matches for the pattern "^logfile[0-9]{1,3}$" in log files in the "/home/zabbix/logs" directory.
Also, the "regexp" parameter is left blank. In this case does `logrt.count` return the number of file matches, or the number of lines in the files (or something else)?
So my question is, is this example valid and if so, should the description be something like:
this item will count the number of _files_ matching the pattern "^logfile[0-9]{1,3}$" in the "/home/zabbix/logs" directory.
this item will count the number of _lines in files_ matching the pattern "^logfile[0-9]{1,3}$" in the "/home/zabbix/logs" directory.
Comment