View previous topic :: View next topic |
Author |
Message |
leo1631
Joined: 27 Apr 2006 Posts: 55
|
Posted: Fri Aug 27, 2010 2:44 am Post subject: help |
|
|
hi!
I can't find a way to do this,help me please:
At the first hour when both of two ping tests are bad, I think it ok and only send alarm. If this lasts for more time, I think it bad and begin to statistac bad time.
I made a new test depends on those two ping tests dead, but when using "normal status" for first hour ,"suggestedstatus" do not work correctly.
thanks |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Aug 27, 2010 11:08 am Post subject: |
|
|
Quote: | At the first hour when both of two ping tests are bad, I think it ok and only send alarm. If this lasts for more time, I think it bad and begin to statistac bad time. |
Not sure I understand you.
Do you want to see Bad status when host does not respond and start Bad actions but calculate statistics like test has "Ok" status?? This is impossible
Regards
Alex |
|
Back to top |
|
|
leo1631
Joined: 27 Apr 2006 Posts: 55
|
Posted: Sun Aug 29, 2010 10:34 pm Post subject: sorry for my poor English |
|
|
there are two hosts. what I want is:
when HM found that both two hosts do not respond , at the first hour, I want to see "ok" or "normal" status. if these two hosts do not respond over 1 hour, I want to see bad status. statistics just the same as status above. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Aug 30, 2010 1:40 pm Post subject: |
|
|
You may use "Use Normal status" option and %FailureIteration% variable in expression. E.g. if test is performed every 3 minutes, you may use expression like %FailureIteration%<20
Question is: what status do you want to set when just 1 of these 2 hosts does not respond?
Regards
Alex |
|
Back to top |
|
|
leo1631
Joined: 27 Apr 2006 Posts: 55
|
Posted: Mon Aug 30, 2010 7:37 pm Post subject: |
|
|
KS-Soft wrote: | Question is: what status do you want to set when just 1 of these 2 hosts does not respond?
|
I think everything is ok.
KS-Soft wrote: | You may use "Use Normal status" option and %FailureIteration% variable in expression. E.g. if test is performed every 3 minutes, you may use expression like %FailureIteration%<20
|
I create a new test which ping a ip address doesn't exist (127.0.0.0) ,depends on those two hosts "dead" status, "Use Normal status" and "%FailureIteration%<20". It seems alright at first, but when this new test's status changes from bad to ok, "%FailureIteration%"variable doesn't reset. Then when both of two hosts do not response again, "Use Normal status" and "%FailureIteration%<20" do not work correctly.
How should I do? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Aug 31, 2010 11:19 am Post subject: |
|
|
Question is: what status do you want to set when just 1 of these 2 hosts does not respond?
Probably you don't need 3rd dependant test at all?
Regards
Alex |
|
Back to top |
|
|
leo1631
Joined: 27 Apr 2006 Posts: 55
|
Posted: Tue Aug 31, 2010 8:49 pm Post subject: |
|
|
KS-Soft wrote: | Question is: what status do you want to set when just 1 of these 2 hosts does not respond?
Probably you don't need 3rd dependant test at all?
Regards
Alex |
I want to set "ok" status. and I need to calculate statistics every month. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Sep 01, 2010 4:09 pm Post subject: |
|
|
Then I think you may accomplish this without using additional dependant test item.
E.g. if you have TestA and TestB then you may use the following expressions:
TestA) Use Normal status if ('%SuggestedSimpleStatus%'=='DOWN') and (('%FailureIteration%'<20) or ('%::TestB::FailureIteration%'<20))
TestB) ('%SuggestedSimpleStatus%'=='DOWN') and (('%FailureIteration%'<20) or ('%::TestA::FailureIteration%'<20))
Note: you may need to change 20 to some other number depending on test execution frequency
Regards
Alex |
|
Back to top |
|
|
leo1631
Joined: 27 Apr 2006 Posts: 55
|
Posted: Thu Sep 02, 2010 1:54 am Post subject: |
|
|
perfect!
thank you very much! |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Sep 02, 2010 1:43 pm Post subject: |
|
|
You are welcome
Regards
Alex |
|
Back to top |
|
|
|