Hi there,
We have a host running Ubuntu server that should be generating a file on the first of each month and we would like Zabbix to alert us if the file is older than one month. Annoyingly, months don't have a consistent number of days so I am struggling to build a trigger to alert us if there is a problem.
We are running Zabbix 7.0.4 and the item in question is:
For example if the file is generated on the 1st of February and on the 1st of March if the creation time is still the 1st of February then Zabbix should alert us that something has gone wrong.
I've looked at the docs and see information for time shift in the trigger expression but it contains a warning that "time shift specified in months (M) and years (y) is only supported for trend functions" and I don't think that this is item is using a trend.
Is anyone able to provide advice on building a trigger or is there a more appropriate item key to use in this case other than the unixtime age of the file?
Thank you
We have a host running Ubuntu server that should be generating a file on the first of each month and we would like Zabbix to alert us if the file is older than one month. Annoyingly, months don't have a consistent number of days so I am struggling to build a trigger to alert us if there is a problem.
We are running Zabbix 7.0.4 and the item in question is:
Code:
vfs.file.time[/home/pathto/file.txt]
I've looked at the docs and see information for time shift in the trigger expression but it contains a warning that "time shift specified in months (M) and years (y) is only supported for trend functions" and I don't think that this is item is using a trend.
Is anyone able to provide advice on building a trigger or is there a more appropriate item key to use in this case other than the unixtime age of the file?
Thank you
Comment