Consider the following calculated item in a low level discovery for file systems:
Calculate free space:
last("vfs.fs.size[{#FSNAME},total]") - last("vfs.fs.size[{#FSNAME},used]")
Now, I realize I could just query the agent directly for this value, but I'm trying to minimize the number of checks being performed. I already know the total and used for a volume, getting free is a simple calculation.
The problem is that it takes a few cycles for the active agent to fully discover and populate the items required for the calculation. The item is getting marked as not supported because there is no last value for those items when it runs the first time.
Any way around this?
Calculate free space:
last("vfs.fs.size[{#FSNAME},total]") - last("vfs.fs.size[{#FSNAME},used]")
Now, I realize I could just query the agent directly for this value, but I'm trying to minimize the number of checks being performed. I already know the total and used for a volume, getting free is a simple calculation.
The problem is that it takes a few cycles for the active agent to fully discover and populate the items required for the calculation. The item is getting marked as not supported because there is no last value for those items when it runs the first time.
Any way around this?
Comment