Hi
Currently running v4.4.10, and stumbled upon some issue related to triggers using the swap pused item.
We have a trigger like this:
It works fine for servers that have swap, however, for servers that do not have swap, it fails the calculation, because the "system.swap.size[,pused]" item becomes unsupported, with the info: Cannot be calculated because swap file size is 0.
I tried getting around it by defining a preprocessing step to that item, to match against the regex [0-9]+, with custom on fail to set value to 100. However, it does not work.
I would like to know if there is a solution for this other than having different templates for servers that do not have swap.
Cheers
Currently running v4.4.10, and stumbled upon some issue related to triggers using the swap pused item.
We have a trigger like this:
Code:
{OS Linux server - P:vm.memory.size.used.min({$T_SYSTEM_SHORT})}>={$MEMORY_HIGH} and {OS Linux server - P:system.swap.size[,pused].min({$T_SYSTEM_SHORT})}>={$SWAP_MEDIUM}
I tried getting around it by defining a preprocessing step to that item, to match against the regex [0-9]+, with custom on fail to set value to 100. However, it does not work.
I would like to know if there is a solution for this other than having different templates for servers that do not have swap.
Cheers
Comment