Good Morning (as of the time I wrote this)
I am looking to create a bar graph which displays the age of a battery in a UPS. The batteries are replaced every 5 years as part of a preventative maintenance plan. There are over 150 UPS's being monitored.
They are all APC Units.
I created a UDP to the following OID "1.3.6.1.4.1.318.1.1.1.2.1.3" which returns a date in the following format 01/30/09.
I know that there are 1825 days in 5 years (not counting leap years). I know that 993 days have passed between the date the battery was installed and today (10/20/2011) which means that the battery is 54.4% of the way thru its life. I want that 54.4% in a bar graph on all my APC device pages. I have tried to get the Transform Results to work for me but I only know how I would programatically get the answer, I cant figure out Transform Results.
The formula would look something like this (using SQL datediff)
((DateDiff({upsBasicBatteryLastReplaceDate}, Now()))/1825)*100
but Transform Results balks with the DateDiff. I dont have to use Transform Results to get what I want, I'll try anything to figure this one out.
Thanks in advance
Zach