KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Alerts: Comparing the results of two tests

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list
View previous topic :: View next topic  
Author Message
FLynch



Joined: 18 Jun 2002
Posts: 75
Location: London UK

PostPosted: Thu Aug 07, 2003 10:13 am    Post subject: Reply with quote

Hi,

I have 2 ODBC tests which query a replicated database held on two physically seperate servers. The ODBC query is a simple "SELECT COUNT" to check the same number of rows are on each database (and hence the replication is working)

Is it possible to set up an alert if the values on the tests start to differ?

Thanks
Fergus
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Aug 08, 2003 2:00 am    Post subject: Reply with quote

I see 2 solutions:

1) create 2 tests, setup one test as Master for another (to synchronize time execution), assign "advanced" action to the dependant test. use logical expression to start action, something like "('%::TestA::Status%'=='%::TestB::Status%') and ('%::TestA::Reply%'<>'%::TestB::Reply%')"

2) use some stored procedure to calculate difference between databases, and setup single ODBC test to retrieve that value

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
FLynch



Joined: 18 Jun 2002
Posts: 75
Location: London UK

PostPosted: Mon Aug 11, 2003 2:01 pm    Post subject: Reply Reply with quote

Thanks, I'll give option 1 a go!

Cheers
Fergus
Back to top
View user's profile Send private message
FLynch



Joined: 18 Jun 2002
Posts: 75
Location: London UK

PostPosted: Sat Nov 01, 2003 12:25 pm    Post subject: Reply with quote

Hi,

I've been sucessfully using expressions to compare the results of two tests and set off an alert if they are different.

Is it possible to use expressions to set the dependant test status to "Bad" using the same technique ?

Many Thanks
Fergus
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Nov 03, 2003 4:36 pm    Post subject: Reply with quote

Yes, you may use logical expression. If result of the expression is true, test will be performed. If result is False, OtherwiseStatus will be used.
If you want to use this method for your task with 2 ODBC test, you will need to create 3rd test.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index