Looking at the template "Template_APC_Battery" trigger I see this:
Disaster Template_APC_Battery:APC: Run Time Remaining Critical Level - PC_5000 {APC_5000:upsAdvRunTimeRemaining. last( 0 ) }<5
High Template_APC_Battery:APC: Run Time Remaining Low - APC_5000 {APC_5000:upsAdvRunTimeRemaining. last( 0 ) }<10
I create a new trigger that sum the value in key "upsAdvRunTimeRemaining" of 2 UPS:
{APC_5000:upsAdvRunTimeRemaining. last( 0 )}+{APC_5000S:upsAdvRunTimeRemaining. last( 0 ) }<120
I force a hight value of minutes for check that the trigger change status to "PROBLEM" but the trigger show me always "OK"
So I discover that the item have the parameter units set to "s" aka seconds instead the template trigger seem thinking in minutes (I don't really think a server shudown in 5 seconds :| )...
I set so "<7200" (120*60sec) and not the problem is triggered, I set that the value a little below my sum real value and the trigger is OK...
Is correct? Is the template buggy?
Disaster Template_APC_Battery:APC: Run Time Remaining Critical Level - PC_5000 {APC_5000:upsAdvRunTimeRemaining. last( 0 ) }<5
High Template_APC_Battery:APC: Run Time Remaining Low - APC_5000 {APC_5000:upsAdvRunTimeRemaining. last( 0 ) }<10
I create a new trigger that sum the value in key "upsAdvRunTimeRemaining" of 2 UPS:
{APC_5000:upsAdvRunTimeRemaining. last( 0 )}+{APC_5000S:upsAdvRunTimeRemaining. last( 0 ) }<120
I force a hight value of minutes for check that the trigger change status to "PROBLEM" but the trigger show me always "OK"
So I discover that the item have the parameter units set to "s" aka seconds instead the template trigger seem thinking in minutes (I don't really think a server shudown in 5 seconds :| )...
I set so "<7200" (120*60sec) and not the problem is triggered, I set that the value a little below my sum real value and the trigger is OK...
Is correct? Is the template buggy?
Comment