I have been trying to come up with a way to monitor if a
temporary file has existed longer than 6 hours. The puppetd lock
files usually exist for a minute or two, but sometimes will end
up staying either because puppetd died or someone put in a lock
to stop puppet from running for a while. In most cases, this
should be done in 1-4 hours so I thought a trigger like this
would work:
{Template Core Linux:vfs.file.time[/var/lib/puppet/state/puppetdlock].fuzzytime(28800,5)}=0
but it gets triggered almost every time that puppet runs versus
when the file has been around longer than 6 hours. What should I
look at to accomplish this?
temporary file has existed longer than 6 hours. The puppetd lock
files usually exist for a minute or two, but sometimes will end
up staying either because puppetd died or someone put in a lock
to stop puppet from running for a while. In most cases, this
should be done in 1-4 hours so I thought a trigger like this
would work:
{Template Core Linux:vfs.file.time[/var/lib/puppet/state/puppetdlock].fuzzytime(28800,5)}=0
but it gets triggered almost every time that puppet runs versus
when the file has been around longer than 6 hours. What should I
look at to accomplish this?