I'm trying to configure an alert to tell me when our UPS load goes over a certain percent. We have many UPS's that are different manufacturers and sizes and I don't want to write an alert for each one.
So, I poll them all for their maximum load capacity and then I poll them for their current load. I wrote a transform to calculate their load percentage.
I want to write an alert to fire when the load percentage goes over 80 percent and then another for 90 percent.
So I have an alert the fires when all apply:
Poller Name is equal to LoadPercent
Rate is great than or equal to 80
I'm not sure if "Rate" is the correct attribute, so during testing I set the alert action to send me an email and tell me the name of the poller and the rate to verify I'm using the correct data.
The email message is configured as such:
CustomPollers.Description = ${CustomPollers.Description}
AssignmentName = ${AssignmentName}
CustomPollerStatus.Rate = ${CustomPollerStatus.Rate}
CustomPollerStatus.Status = ${CustomPollerStatus.Status}
When I test fire the alert, the email comes through looking like:
CustomPollers.Description = The indication of the capacity remaing in the UPS system's batteries.
AssignmentName = BatteryStatus
CustomPollerStatus.Rate = 2
CustomPollerStatus.Status = batteryNormal(2)
As you can see, it's not pulling any information about my Transform poller, but rather a random poller or maybe the first custom poller assigned to that node? Because of this, I'm not confident that I'm checking the correct poller to fire the alert, nor do I know how to make the alert email relevant to the alert.
I've written lots of alerts, but never for a custom poller.
Any advice?