How CM works

Customer Support

+421-2-5465-0242

send email >>

Online support - chat (bottom right)

Monitoring of file changes

Some programs' function can be monitored indirectly by changes of certain files (e.g. their size changes, or date of the last entry into the file, or a certain minimal size may be required). If they change, then it's very likely, that the given process is functional and there's almost no risk of a serious failure.

This method can be used to check function of camera systems, voice records, exports from database. The check will be provided in your adjusted intervals, and already after second execution, if the monitored file hasn't been changed, a message informing about this state will be generated.

Setup of monitoring of changes

View of changed files on CM portal

Notification in errors

Setup of monitoring of changes

The setup is performed through the wizard in C-Monitor Console schedule, choosing the function Files WatchDog.

Launch of wizard for setup of monitoring of file changes

Image: Spustenie wizarda na nastavenie sledovania zmien súborov

After pressing Run, the wizard for setup of the task for monitring of file changes will open. In the first window, define the directories, whose changes you want to check.

Enter path to the directory, whose size changes you want to observe.

Image: Zadáte si cestu k zložke, ktorej zmeny vo veľkosti chcete sledovať

On the next image is an option to more specifically define the changes, which must occur in the directory, for the state to be evaluated as OK. You can define minimal, maximal sizes, by which the directory must change etc.

More detailed setup of the monitored file's change, minimal, maximal change etc.

Image: Detailnejšie nastavenie zmeny sledovaného súboru, minimálna, maximálna zmena a pod.

In the next window, define rules for the monitored files, in our case, we've set a rule that all files in the directory are monitored.

Set rules, which files of the directory are to be checked

Image: Nastavíte si pravidlá, ktoré súbory v zvolenej zložke sa majú kontrolovať

Don't tick the option „Save full script result to C-Descript file (*.sdf) with name specified below.“  in the wizard, unless you fully understand it and want to use it. The same goes for all of the wizard's options - those you don't understand, you should keep on the default values.

Setup of periodic execution of the task

Image: Nastavenie pravidelného spúšťania úlohy

The interval, which you will enter is your required verification period. Notification about failure will be received immediately after the first recognition, that the files were not changed, so define such period, that you can be sure that the change already happened and the check won't run earlier.
Note: The first execution serves to remember the state, and the very execution is carried out after the second launch in order.

The next wizard windows are illustrated and described on the images below.

Setup of the task's name

Image: Nastavenie názvu úlohy

Executing the task under another user

Image: Spúšťanie úlohy pod iným používateľom

The task was successfully added to scheduler, save to confirm changes

Image: Úloha je úspešne pridaná do schedulera, zmeny potvrďte uložením

View of changed files on CM portal

The resulting report of changed files is displayed on CM portal, in the section Presentation and Evaluation -> Presentation -> Zones -> Monitored files. Here you can find overview of settings and also the log file of changed files.

Monitoring of file changes on CM portal

Image: Sledovanie zmien súborov na CM portáli

Notification in errors

In errors (Presentation and Evaluation -> Warnings -> Errors), is information about failures in changes of the monitored files, which for instance notify about malfunction of backup or a camera system.

View of error states of file changes monitoring in Errors

Image: Zobrazenie chybných stavov sledovanie zmien súborov v poruchách
Images: 
Spustenie wizarda na nastavenie sledovania zmien súborovZadáte si cestu k zložke, ktorej zmeny vo veľkosti chcete sledovaťDetailnejšie nastavenie zmeny sledovaného súboru, minimálna, maximálna zmena a pod.Nastavíte si pravidlá, ktoré súbory v zvolenej zložke sa majú kontrolovaťNastavenie pravidelného spúšťania úlohyNastavenie názvu úlohySpúšťanie úlohy pod iným používateľomÚloha je úspešne pridaná do schedulera, zmeny potvrďte uloženímSledovanie zmien súborov na CM portáliZobrazenie chybných stavov sledovanie zmien súborov v poruchách