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

Report showing tests less than 99% OK

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Reports
View previous topic :: View next topic  
Author Message
thomasschmeidl



Joined: 15 Apr 2006
Posts: 166
Location: Germany, Bavaria

PostPosted: Sun Jan 07, 2007 7:23 am    Post subject: Report showing tests less than 99% OK Reply with quote

Hi everybody,

which is the easiest way to define a report (in style of standard html report) that shows only tests with an %AliveRatio% <99%?

Cheers

Thomas
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Mon Jan 08, 2007 3:19 am    Post subject: Re: Report showing tests less than 99% OK Reply with quote

thomasschmeidl wrote:
which is the easiest way to define a report (in style of standard html report) that shows only tests with an %AliveRatio% <99%?


You may use Custom HTML Reports: http://www.ks-soft.net/hostmon.eng/mframe.htm#profiles.htm#CustomHTML

You just should specify JavaScript inside the body of report that checks %AliveRatio% variable.

Test Items section should be like this:
Code:
<SCRIPT type="text/javascript">
  var test_alive_ratio = '%AliveRatio%';
  if (test_alive_ratio < '99 %')
     document.write('%TestName%, %Reply%, etc.<BR>');
</script>


Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Mon Jan 08, 2007 12:12 pm    Post subject: Reply with quote

I am sorry, probably, would be better to use following script:
Code:
<SCRIPT type="text/javascript">
  var test_alive_ratio_str = '%AliveRatio%';
  var test_alive_ratio = parseInt(test_alive_ratio_str.replace(' %',''));
  if (test_alive_ratio < 99)
     document.write('%TestName%, %Reply%, etc.<BR>');
</script>


Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
thomasschmeidl



Joined: 15 Apr 2006
Posts: 166
Location: Germany, Bavaria

PostPosted: Thu Jan 18, 2007 1:02 am    Post subject: Reply with quote

THanx

Thomas
Back to top
View user's profile Send private message
thomasschmeidl



Joined: 15 Apr 2006
Posts: 166
Location: Germany, Bavaria

PostPosted: Wed Mar 21, 2007 6:20 pm    Post subject: Reply with quote

I see, it's much easier now using the views introduced in 6.70

Great feature!
Back to top
View user's profile Send private message
johnm



Joined: 01 Apr 2005
Posts: 117

PostPosted: Wed Apr 04, 2007 1:00 pm    Post subject: Reply with quote

thomasschmeidl, not sure I follow. Why do you say it is easier, can you expand on this?
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Apr 04, 2007 1:18 pm    Post subject: Reply with quote

It is really easier to create such type of report, because version 6.70+ offers Views: http://www.ks-soft.net/hostmon.eng/mframe.htm#testlist.htm#ViewsList
You may create a View wich display test items that match some criteria ( http://www.ks-soft.net/hostmon.eng/mframe.htm#testlist.htm#view_criteria ), like "Alive ratio > N%", "Reply > N", etc. and generate report for the view: http://www.ks-soft.net/hostmon.eng/mframe.htm#testlist.htm#view_reports
So, you do not need to use JavaScript and "Custom" report now.

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
johnm



Joined: 01 Apr 2005
Posts: 117

PostPosted: Wed Apr 04, 2007 2:49 pm    Post subject: Reply with quote

ah, good point. I didn't see the "Generate" button. If it was any larger it would be a window.

Thanks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Reports 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