This is probably something simple. I need to monitor the modified time/date stamp on a folder on a Windows 2008 server. How can I pull this into Zabbix? I see a key for file date/time, but not folder. Any ideas?
Ad Widget
Collapse
need to monitor modified date/time on folder
Collapse
X
-
problem with vfs.file.time
I have created a trigger like this:
{server:vfs.file.time[path to file, modify].now(0)}-{server:vfs.file.time[path to file, modify].last(0)}>1800
and the trigger shows an error "Evaluation failed for function {server:vfs.file.time[path to file, modify].last(0)}
any ideas?Comment
-
Maybe would be better try to use diff or change function?
Similar as in default linux template for a file.Comment
-
Thanks for your reply, I have tried both diff and change and those don't work either.
I dug a little more this morning and realized the items don't show up in Monitoring | Latest data. I also checked Monitor | Overview and the items show up, but there is no data. The folder I am trying to check the time on is on a Windows 2008R2 server.
The set up on the items is as follows:
Type: Zabbix agent
Key: vfs.file.time[path to folder ,modify]
Type of information: numeric(unsigned)
Data Type: Decimal
units: seconds
Update interval: 30
Keep history: 90
Keep trends: 365
Status: active
Store value: as is
Show value: as is
The status of the items are active and there are no errors, but I also see no data.
Any ideas?
Thanks in advance,
RickLast edited by RLobb; 14-06-2013, 20:10.Comment
-
New problem. I have the item and trigger working, but the modified time is not updating unless I actually view the folder in Windows explorer. This is true also if I view the folder in the command prompt. The modified date only changes if I view the folder list from Windows Explorer. Any ideas?Comment
-
{vfs.file.time[/PATH_TO_FILE_OR_DIR,modify].fuzzytime(7200)}=0
trigger checks
that the timestamp of file/directory is not older than 7200s (2h)Comment
-
Working fine for me
:
Item:
---------
DocsWork: /home/docs/work modify timestamp (unix style)
vfs.file.time[/home/docs/work,modify]
Trigger:
---------
Work directory is not recreated during last 48h
{hostname:vfs.file.time[/home/docs/work,modify].fuzzytime(172800)}=0Comment
Comment