check_winfile

8 posts / 0 new
Last post
DeepakPitti
Offline
Last seen: 8 years 8 months ago
Joined: 27.11.2012 - 06:08
check_winfile

Hi, I have installed Check_winfile in my environment to verify my backup files are properly created on time. On review of your plugin, it really helps a lot and best suits for IT administration. I am really thanks to you all guys who created and supported this plugin. i have few doubts to clarified; 1. I have backup job running on my server which takes backup and stored on specific path with current date Example: 21-11-2012. i wanted to verify the folder in specific path or not. 2. In the backup folder, no of files to be checked in-case if that count decrease less or equal to 100 prompt for Warning and reaches 99 shows as critical. Whether is it possible to modify those settings and incorporate it. Let me know if you need any input over this. thanks!! Regards, Deepak.

itefix
Offline
Last seen: 2 days 1 hour ago
Joined: 01.05.2008 - 21:33
Thanks for your feedback.

Thanks for your feedback. Current version of check_winfile uses regular expressions on targets and can not deliver what you want. However, as we talk about file monitoring, it is absolutely a good idea to extend target match based on date and time elements in names.

We are going to extend check_winfile with pattern match in files. At the same time, we can also introduce the feature above.

No ETA (Estimated Time of Arrival) however.

DeepakPitti
Offline
Last seen: 8 years 8 months ago
Joined: 27.11.2012 - 06:08
Thanks for the prompt

Thanks for the prompt response.

 

I am having issue on below filter to find out age of the file is greater than 24 hours, however it shows zero files but we are having all seven files that are created on almost 5 days before.

 

C:\Program Files\NSClient++\modules>check_winfile.exe -t f:\backup --filter "age
 gt -24 hours" --critical 0
FILE OK - 0 files out of 7 to consider |'selected files'=0;;0; 'all files'=7 'de
leted files'=0

 

Please clear me, if im wrong on the query. Thanks in Advance!!

 

Regards,

Deepak.

itefix
Offline
Last seen: 2 days 1 hour ago
Joined: 01.05.2008 - 21:33
Try the

Try the opposite:

check_winfile.exe -t f:\backup --filter "age le -24 hours" --critical 0

 

"gt -24 hours" means file ages MORE RECENT THAN LAST 24 HOURS.

"le -24 hours" means file ages OLDER THAN LAST 24 HOURS.

 

You can also use option --verbose to see progress.

 

 

DeepakPitti
Offline
Last seen: 8 years 8 months ago
Joined: 27.11.2012 - 06:08
WoW!! Thanks for your reponse

WoW!! Thanks for your reponse its working fine for my requirement, kudos to your excellent support and guidance.

i have an another doubt to be clarified here, backup files are stored in this path around 296 files.

i wanted this script to verify the no of files, if it decreases this limit or increases has to be notified.

Do you have any suggesstion over this.. thanks in advance!!

 

Regards,

Deepak.

 

 

 

 

 

itefix
Offline
Last seen: 2 days 1 hour ago
Joined: 01.05.2008 - 21:33
You can try check_winfile

You can try

check_winfile ..... --compare ne --warning 296

This will instruct the plugin to return in warning state if number of files IS NOT EQUAL to 296. You can replace --warning by --critical if you want state as critical.

 

DeepakPitti
Offline
Last seen: 8 years 8 months ago
Joined: 27.11.2012 - 06:08
Kudos to you!! its working

Kudos to you!! its working pretty great!!

i wanted to see today's backups that are created a specific path example: 29-11-2012 Time 9 PM whether its created or not.

Do you have any query to be checked for this constrain???

 

Regards

Deepak.

 

itefix
Offline
Last seen: 2 days 1 hour ago
Joined: 01.05.2008 - 21:33
Maybe it's time to have a

Maybe it's time to have a look at the documentation for which options are available in your case.