Hello all,
I've recently built a template that monitors several ZFS pools that I manage, and all is good except I'm trying to figure out if there is a way to override the unit of measure for a given item that gets displayed when the trigger is activated. Let me clarify...
One item in the template reflects the amount of allocated space on my ZFS pool (in bytes). The item uses the "B" unit, and reports as "102.06 GB" on the "latest data" page. I also have another item that shows the current health of the pool (i.e. "ONLINE", "DEGRADED", etc).
If the health of the pool is anything BUT online, it triggers an alarm. Well, in the alarm, I want details on the array (like the amount of allocated space on that pool). Well, it prints, but I get the value in bytes (i.e. 109581049856) instead of something that is more human readable like "102.06 GB"
I'm wondering if there is a way to print macros in alert messages in an alternate unit of measure? Oh... and by the way, I'm passing these values to the message field in the action by way of {TRIGGER.DESCRIPTION}. If there's a better way, I'm all ears.
Thanks!!
I've recently built a template that monitors several ZFS pools that I manage, and all is good except I'm trying to figure out if there is a way to override the unit of measure for a given item that gets displayed when the trigger is activated. Let me clarify...
One item in the template reflects the amount of allocated space on my ZFS pool (in bytes). The item uses the "B" unit, and reports as "102.06 GB" on the "latest data" page. I also have another item that shows the current health of the pool (i.e. "ONLINE", "DEGRADED", etc).
If the health of the pool is anything BUT online, it triggers an alarm. Well, in the alarm, I want details on the array (like the amount of allocated space on that pool). Well, it prints, but I get the value in bytes (i.e. 109581049856) instead of something that is more human readable like "102.06 GB"
I'm wondering if there is a way to print macros in alert messages in an alternate unit of measure? Oh... and by the way, I'm passing these values to the message field in the action by way of {TRIGGER.DESCRIPTION}. If there's a better way, I'm all ears.
Thanks!!
Comment