I have a job on my server that can create dump files everyday with current date of day such as follow name in /home path
dump-20230212.tar.gz
It will create this dump file every day . Now I want to create an item that can check the file has created or not . in some forums they said at the first step we need to create a discovery rule type script that returns [{"{#DATE}":"YYMMDD"}] (with YYYY,MM,DD calculated in javascript from the current date) . Would you please help me how can do it ?
I know first step we have to get current date and in the next step I think have to use vfs.dir.count
dump-20230212.tar.gz
It will create this dump file every day . Now I want to create an item that can check the file has created or not . in some forums they said at the first step we need to create a discovery rule type script that returns [{"{#DATE}":"YYMMDD"}] (with YYYY,MM,DD calculated in javascript from the current date) . Would you please help me how can do it ?
I know first step we have to get current date and in the next step I think have to use vfs.dir.count
Comment