Hello,
I'll start giving the context:
Im running my zabbix server on version 7.0.5, rocky linux 9 (vm)
The folder that i need to monitore is in a windows server r2012
Theres a OCR system, so everyday i need to check if a paste at E:\xxx\xxx\yyyy\mm\dd has been created.
I tried creating custom scripts and adding them as powershell in userparameter at the zabbix-agent.cfg in the monitored vm but it didnt work, also tried the vfs.dir.size and similar functions but as the folder is big (over 20gb) these commands always timeout, even when i changed the default timeout from 3 to 10 in the same cfg file.
The ways that i tried was:
1- Checking folder size (timeout error due to big archives)
2- Checking the date of the folder in the last X days (timeout)
3- Checking if in the day (today) the paste (yyyy mm dd) was created (theres a error when i created the item and when i try to create the trigger, it seems im not using the correct commands)
4- By last, tried creating the script by the way 3 but also added a log folder returning 0 when the paste is there and 1 and theres isnt there, but looks like zabbix cant read it, or if it can im not doing by the correct way.
Did u guys have some better or simple idea that works? This folder is important and would be a big time saver if it was auto-monitored by zabbix.
TL;DR: i need to monitore a folder with big files checking if the last folder created was created today, and if not sending an alert to dashboard.
Thanks for your time.
------
Errors that i got trying to create the item and trigger in zabbix panel;
Cannot add trigger
I'll start giving the context:
Im running my zabbix server on version 7.0.5, rocky linux 9 (vm)
The folder that i need to monitore is in a windows server r2012
Theres a OCR system, so everyday i need to check if a paste at E:\xxx\xxx\yyyy\mm\dd has been created.
I tried creating custom scripts and adding them as powershell in userparameter at the zabbix-agent.cfg in the monitored vm but it didnt work, also tried the vfs.dir.size and similar functions but as the folder is big (over 20gb) these commands always timeout, even when i changed the default timeout from 3 to 10 in the same cfg file.
The ways that i tried was:
1- Checking folder size (timeout error due to big archives)
2- Checking the date of the folder in the last X days (timeout)
3- Checking if in the day (today) the paste (yyyy mm dd) was created (theres a error when i created the item and when i try to create the trigger, it seems im not using the correct commands)
4- By last, tried creating the script by the way 3 but also added a log folder returning 0 when the paste is there and 1 and theres isnt there, but looks like zabbix cant read it, or if it can im not doing by the correct way.
Did u guys have some better or simple idea that works? This folder is important and would be a big time saver if it was auto-monitored by zabbix.
TL;DR: i need to monitore a folder with big files checking if the last folder created was created today, and if not sending an alert to dashboard.
Thanks for your time.
------
Errors that i got trying to create the item and trigger in zabbix panel;
Cannot add trigger
- Invalid parameter "/1/expression": incorrect expression starting from "VMSRV003:folder.check.last=0
Comment