Hello everyone,
Everyone knows it, it always happens that we have to monitor a file size on a system.
This is not difficult in itself, you create a template with a macro and assign it to a system.
However, it can happen that you have to monitor several files on a system.
It would be good if this could be handled in the same way as with Windows services.
One possibility is to call a discovery script with corresponding item prototypes.
vfs.file.get can unfortunately only handle one file - which makes sense in principle.
vfs.dir.get can unfortunately only check one folder - which basically makes sense.
Does anyone have an idea of how to implement this with on-board resources or know a suitable template?
If not, I would create a Powershell script here which can be "fed" with one or more file paths via a macro.
Target would be to create a macro with the path names at host/template level.
{$FILE.MONITORING} = "C:\sqlpath\file1.mdf", "c:\anotherpath\whatever.db"
Everyone knows it, it always happens that we have to monitor a file size on a system.
This is not difficult in itself, you create a template with a macro and assign it to a system.
However, it can happen that you have to monitor several files on a system.
It would be good if this could be handled in the same way as with Windows services.
One possibility is to call a discovery script with corresponding item prototypes.
vfs.file.get can unfortunately only handle one file - which makes sense in principle.
vfs.dir.get can unfortunately only check one folder - which basically makes sense.
Does anyone have an idea of how to implement this with on-board resources or know a suitable template?
If not, I would create a Powershell script here which can be "fed" with one or more file paths via a macro.
Target would be to create a macro with the path names at host/template level.
{$FILE.MONITORING} = "C:\sqlpath\file1.mdf", "c:\anotherpath\whatever.db"
Comment