Hi,
I need to monitor the modification time of a file which contains [] (square brackets) in its name. This seems not to work, nor do I appear able to use wild cards in the filename definition in a call such as:
[root@servera /]# zabbix_agentd -t "vfs.file.time[/tmp/sample[file].txt]"
vfs.file.time[/tmp/sample[file] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t "vfs.file.time[/tmp/sample?file?.txt]"
vfs.file.time[/tmp/sample?file?.txt] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t "vfs.file.time[/tmp/sample*file*.txt]"
vfs.file.time[/tmp/sample*file*.txt] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t vfs.file.time[/tmp/sample*file*.txt]
vfs.file.time[/tmp/sample*file*.txt] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t vfs.file.time[/tmp/sample?file?.txt]
vfs.file.time[/tmp/sample?file?.txt] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t vfs.file.time[/tmp/sample[file].txt]
vfs.file.time[/tmp/sample[file] [m|ZBX_NOTSUPPORTED]
[root@servera /]# ls -al /tmp/sample?file?.txt
-rw-r--r-- 1 root root 0 2009-04-14 15:20 /tmp/sample[file].txt
[root@servera /]#
Has anyone any suggestions? I can easily use a UserParameter to monitor this file, but it seems a bit silly when the functionality is almost present in the code.
rts
I need to monitor the modification time of a file which contains [] (square brackets) in its name. This seems not to work, nor do I appear able to use wild cards in the filename definition in a call such as:
[root@servera /]# zabbix_agentd -t "vfs.file.time[/tmp/sample[file].txt]"
vfs.file.time[/tmp/sample[file] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t "vfs.file.time[/tmp/sample?file?.txt]"
vfs.file.time[/tmp/sample?file?.txt] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t "vfs.file.time[/tmp/sample*file*.txt]"
vfs.file.time[/tmp/sample*file*.txt] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t vfs.file.time[/tmp/sample*file*.txt]
vfs.file.time[/tmp/sample*file*.txt] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t vfs.file.time[/tmp/sample?file?.txt]
vfs.file.time[/tmp/sample?file?.txt] [m|ZBX_NOTSUPPORTED]
[root@servera /]# zabbix_agentd -t vfs.file.time[/tmp/sample[file].txt]
vfs.file.time[/tmp/sample[file] [m|ZBX_NOTSUPPORTED]
[root@servera /]# ls -al /tmp/sample?file?.txt
-rw-r--r-- 1 root root 0 2009-04-14 15:20 /tmp/sample[file].txt
[root@servera /]#
Has anyone any suggestions? I can easily use a UserParameter to monitor this file, but it seems a bit silly when the functionality is almost present in the code.
rts
Comment