Last Folder created
Posted: Mon Apr 11, 2016 9:43 am
hi friends.
I will try to explain.
I have a folder on which every day must be created a folder named with date format Year-month-day (2016-04-11 for today)
So i am able to check if this folder is or not created https://support.nagios.com/forum/viewto ... =7&t=34056
But i would like to get which is the last folder, that was created if folder for today have not been created.
In my example I suppose that last folder is 2016-04-08, and i get via nrpe that 2016-04-11 not exist. How can i get via nrpe last folder was created???
Is possible to do all in only one check. So at the same time get last folder created and that exist or not folder for today????
Thanks in advance
I wanna do it with check_files included in NSClient 0.4.3
I will try to explain.
I have a folder on which every day must be created a folder named with date format Year-month-day (2016-04-11 for today)
So i am able to check if this folder is or not created https://support.nagios.com/forum/viewto ... =7&t=34056
But i would like to get which is the last folder, that was created if folder for today have not been created.
In my example I suppose that last folder is 2016-04-08, and i get via nrpe that 2016-04-11 not exist. How can i get via nrpe last folder was created???
Is possible to do all in only one check. So at the same time get last folder created and that exist or not folder for today????
Thanks in advance
I wanna do it with check_files included in NSClient 0.4.3