Hello,
New user Zabbix, I can not build my test on a file that contains a variable in the name.
Let me explain, I must make a check in a directory on the last file that begins with Mon_fichier_Test* -*.xml (example: Mon_fichier_Test-20160720-124117.xml
If this file is more than 40 mins, I create an alert.
I can perform well in my test file defines hard:
vfs.file.time [app /../../Mon_fichier_Test-20160720-124117.xml ,change]
But when I try to do my test taking into account the variable:
vfs.file.time [app /../../Mon_fichier_Test-*.xml,change]
I get an error message: No such file or directory .
Using the following command , although I seem to get the last file that begins with Mon_fichier_Test*-*.xml
ls -t Mon_fichier_Test * | head -1
Someone can help me ?
Thanking you in advance for your help .
Regards,
New user Zabbix, I can not build my test on a file that contains a variable in the name.
Let me explain, I must make a check in a directory on the last file that begins with Mon_fichier_Test* -*.xml (example: Mon_fichier_Test-20160720-124117.xml
If this file is more than 40 mins, I create an alert.
I can perform well in my test file defines hard:
vfs.file.time [app /../../Mon_fichier_Test-20160720-124117.xml ,change]
But when I try to do my test taking into account the variable:
vfs.file.time [app /../../Mon_fichier_Test-*.xml,change]
I get an error message: No such file or directory .
Using the following command , although I seem to get the last file that begins with Mon_fichier_Test*-*.xml
ls -t Mon_fichier_Test * | head -1
Someone can help me ?
Thanking you in advance for your help .
Regards,